Character encodings in HTML: Difference between revisions

Content deleted Content added
Similar escapes are required for the '<' and '>' characters, encoded as <code>&lt;</code> and <code>&gt;</code> respectively.
as an escape code for character entities
Line 23:
<h2>Character Entity References</h2>
 
In addition to native character encodings, characters can also be encoded as '''HTML entities''', using the encoding format derived from the use of character entities in [[SGML]]. For example, the character &lambda; can be encoded as <code>&amp;lambda;</code>. This use of the '&' character as an [[escape code]] for character entities means that literal '&' characters in HTML need to be encoded as an entity themselves, as <code>&amp;amp;</code>. Similar escapes are required for the '<' and '>' characters, encoded as <code>&amp;lt;</code> and <code>&amp;gt;</code> respectively.
 
''to be continued...''