...

/

Using Reserved Characters and Symbols in HTML

Using Reserved Characters and Symbols in HTML

In this lesson, we will learn the usage of reserved characters and symbols in HTML.

In a few listings, you have already met a strange set of character literals, such as in this snippet:

Press + to interact
<div>
&lt;div&gt; always starts a new block,
<span style="font-weight: bold">
however &lt;span&gt; defines a
logical container for inline text.
</span>
</div>

In those listings I declined to explain what they are, but it is time to get acquainted with them.

There are characters that are reserved in HTML and XHTML. For example, the “<” and “>” signs are reserved, because they are used by the HTML (XHTML) scanner to recognize the beginning and end of tags. However, these ...