Inserting Special Characters

Special characters are characters that are not included on a standard English keyboard. Examples include letters with accent marks over them, as in résumé, or an ownership symbol such as © or ™. In HTML, these special characters are referred to as entities, and they are created by using codes beginning with an ampersand (&), followed by an entity name or an entity number, and ending with a semicolon. The entity names and entity numbers both represent the same thing; you can use either one.

In addition to the non-keyboard symbols, certain other symbols must be created as entities in HTML because they have a specific meaning in HTML. The most common are the ampersand (&), the greater than sign (>), and the less than sign ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.