Euro symbol in HTML

If we are making a website where monetary amounts have to appear, it is very possible that we will need to insert the euro currency (€). Especially if you are developing a website within the European Economic Community (EU), since within it the euro is its official currency.

In this case you must know several things. The representation of the euro can be done in several ways:

  • Through its symbol (€)
  • By its official abbreviation EUR

In the case of the symbol we have two methods to carry out its representation within a page HTML.

The first is through its character code, which is 8364. In this case the representation within the web page should be the following:

The euro symbol is €

The other option is to use an entity. The entity of the euro is €. The line of code would be the following:

The euro symbol is €

The result in both cases is the same:

The euro symbol is €

 

Leave a Comment