Cover | Table of Contents
<a href="example.com"> . . . </a>.<p> . . . </p>.<hr />, <img />, <meta />.<a href="example.com"> . . . </a>.<p> . . . </p>.<hr />, <img />, <meta />.<td colspan="2">.checked="checked"selected="selected"multiple="multiple"a element cannot contain another a element.pre element cannot contain idclassstyletitledirlangxml:lang& and end with ; . The character may be referred to by its Numeric Character Reference (NCR) or a predefined character entity name.&#nnnn; . Hexadecimal values are indicated by an "x": &#xhhhh; . For example, the less-than (<) character could be identified as < (decimal) or < (hexadecimal).< for the less-than symbol. Character entities are predefined in the DTDs of markup languages such as HTML and XHMTL as a convenience to authors because they may be easier to remember than Numeric Character References. ) and carriage return ( ) and are not appropriate for use in HTML documents.<, < ), greater than (<, > ), ampersand (&, & ), and quotation mark (", " )—that are necessary for escaping characters that may be interpreted as markup. XHTML also includes the ' entity that is included in every XML language. In XHTML documents, the ampersand symbol (& ) must always be escaped in attribute values. For better compatibility with XML parsers, authors should use numerical character references instead of named character references for all other character entities.x . For example, the hexadecimal character reference for the less-than symbol is written <.#D4E877#RRGGBB
RR stands for the hexadecimal red value, GG stands for the hexadecimal green value, and BB stands for the hexadecimal blue value.<body link="navy">
black | #000000 | green | #008000 |
silver | #C0C0C0 | lime | #00FF00 |
gray | #808080 | olive | #808000 |
white | #FFFFFF | yellow | #FFFF00 |
maroon | #800000 | navy | #000080 |
red | #FF0000 | blue | #0000FF |
purple | #800080 | teal | #008080 |
fuchsia | #FF00FF | aqua | #00FFFF |
Return to HTML and XHTML Pocket Reference