Interactive online courses HTML Academy
2026-03-09 12:29 Diff

You wanted to list the tags in the new text. And you also wanted to make sure that they looked the same in the browser as they do in the code. Take <h1> or <p>, for example. This is not an easy task.

Some of the characters in HTML are reserved, meaning that the browser will interpret them as HTML code. For example, any text after the less than sign (<) in the browser will be interpreted as a tag and will not be displayed on the page.

How can special characters (such as, for example, the greater than and less than signs) be used in the page text like normal characters? In order to do this, you should replace them with mnemonic characters.

Mnemonics are special codes that begin with an ampersand (&) and end with a semicolon (;). For example, the less than sign can be inserted into a page using the &lt; (less than) mnemonic name, where as the greater than sign is represented by the &gt; (greater than) mnemonic name:

&lt;ul&gt; &lt;/ul&gt;

This code is displayed in the browser as follows:

<ul>
</ul>

There are many other mnemonic names for special characters. For example: &copy;, &laquo;, &raquo;, &sect;. The complete list of mnemonic names is presented on a special page.