Special Characters of HTML5

HTML5, Web Development / Monday, July 30th, 2018
(Last Updated On: July 30, 2018)

HTML5 Special Characters:

Here we will learn about HTML5 Special Characters. You have seen that there are certain characters that have special meaning in HTML code. For example, the “<” and “>” characters delimit tags. If you want to display such characters on the web page, you have to take care that the characters are not interpreted and are displayed literally. To display the “<” character, it can be specified as “&lt”. The “&” interprets the “lt” as the “<” symbol and displays it. But now what if you want to display the  & symbol itself? Simply writing “&” in the code will not display it. But first, let us see how to display some special characters.

Consider the example shown in below and also look at Table.

Special Character

The special characters shown in the example are some of the most frequently used characters displayed on web pages. Each of the special characters can be displayed by using its character sequence after the “&”. These can be seen in the following Table.

Special Character Character Symbol Description
&lt; Less-than symbol
&gt; Greater-than symbol
& &amp; Ampersand
&quot; Quotation Mark
  &nbsp; Blank space
à &agrave; small a, grave accent
À &Agrave; capital A, grave accent
Ñ &Ntilde; capital N, tilde
ü &uuml; umlaut small u
Ü &Uuml; umlaut capital U
&#144; Delta
¼ &#188; One Fourth
½ &#189; Half

The browser will display your text in a steady stream unless you tell it to do so otherwise with line breaks. It will reduce any amount of white space to a single space. If you want more spaces, you must use the space character (&nbsp;). If you hit Return (or Enter) while you are typing, the browser will interpret that as a space unless there is already a space there.


Leave a Reply

Your email address will not be published. Required fields are marked *