HTML - Entity/Symbol

In HTML, "entity" is a fancy name for "symbol". Some symbols as copyright, trademark and many others, some of them are available on your keyboard, need a special writing.

  • Start with the ampersand sign -&
  • After that we will write the name of the sign - copy
  • At the end a semicolon - ;
Copyright

Use © to make - © - Copyright Symbol

 


Multiple spaces and <>

As I said in the lesson about paragraphs, a browser will recognize a single space, indifferent of how many you put in a HTML code. But there is a entity which can be introduced to show more then one space.

<p> In this phrase there had been introduced &nbsp;&nbsp;&nbsp;&nbsp; more spaces.<p>

Display

In this phrase there had been introduced      more spaces.

 

To make commands in HTML you use the "more" and "less" symbols.For being showed
in the browser you should use a entity.

<p>
Less then- &lt; <br/>
More then- &gt; <br />
Head tag - &lt;head&gt;
</p>

Display

Less then- <
More then- >
Head tag - <head>

 

Now take a break and practice a bit with this symbols. A bigger list of these you find it HERE. As you will observe in this table, it can be used as well a numerical value replacing the standard name of the symbol.