|
home—lects—exams—hws
breeze (snow day)
There are also entities. —, …. An entity represents an atomic2 piece of information: often a single glyph/fancy-charcater, but in theory you could use an entity for a logo or a motto.
There are five entities that are common to any xml (not just html/xhtml):
For example, you might want to give a “name” attribute to every mention of an indian-tribe in your document. But the tribe-names are just regular text, so there isn't a natural a or cite or tag to use. Instead we can put them in a span tag:
This has no effect on mark-up. span and div are commonly used to apply a class attribute to a section of a page (andThe <span name="clan">Catawba tribe</span> and the <span name="clan">Powhatan Confederacy</span> each roamed the part of the earth now known as “Virginia”.
1
In practice, you don't need to avoid all five characters — it's enough to just avoid &,
and avoid < followed by non-whitespace.
Also the term “pc-string” is not quite that standard use of "parsed character".
↩
2 That's “atomic information” as in it can't be divided into sub-chunks, not “atomic information” like “the iron atom has 26 protons”. ↩
home—lects—exams—hws
breeze (snow day)
©2011, Ian Barland, Radford University Last modified 2012.Feb.06 (Mon) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |