June 2006
Intermediate to advanced
1344 pages
42h 52m
English
When marking up text, certain characters or symbols (e.g., <) may be difficult to embed directly into an XHTML document. Some keyboards do not provide these symbols, or the presence of these symbols may cause syntax errors. For example, the markup
<p>if x < 10 then increment x by 1 </p>
results in a syntax error because it uses the less-than character (<), which is reserved for start tags and end tags such as <p> and </p>. XHTML provides character entity references (in the form &code;) for representing special characters. We could correct the previous line by writing
<p>if x < 10 then increment x by 1</p>
which uses the character entity reference < for the less-than symbol.
Figure F.9 demonstrates ...
Read now
Unlock full access