HTML - Entities: Advertisements
HTML - Entities: Advertisements
HTML - Entities
Advertisements
Some characters are reserved in HTML and they have special meaning when used in HTML
document. For example, you cannot use the greater than and less than signs or angle
brackets within your HTML text because the browser will treat them differently and will try
to draw a meaning related to HTML tag.
HTML processors must support following five special characters listed in the table that
follows.
Example
If you want to write <div id = "character"> as a code then you will have to write as follows
−
Live Demo
<!DOCTYPE html>
<html>
<head>
<title>HTML Entities</title>
</head>
<body>
<div id = "character">
</body>
https://www.tutorialspoint.com/html/html_entities.htm 1/8
10/20/2018 HTML Entities
</html>
<div id = "character">
There is also a long list of special characters in HTML 4.0. In order for these to appear in
your document, you can use either the numerical codes or the entity names. For example,
to insert a copyright symbol you can use either of the following −
© 2007
or
© 2007
https://www.tutorialspoint.com/html/html_entities.htm 2/8
10/20/2018 HTML Entities
https://www.tutorialspoint.com/html/html_entities.htm 3/8
10/20/2018 HTML Entities
https://www.tutorialspoint.com/html/html_entities.htm 4/8
10/20/2018 HTML Entities
https://www.tutorialspoint.com/html/html_entities.htm 5/8
10/20/2018 HTML Entities
https://www.tutorialspoint.com/html/html_entities.htm 6/8
10/20/2018 HTML Entities
Advertisements
https://www.tutorialspoint.com/html/html_entities.htm 7/8