semantic-xhtml-design-principles: Difference between revisions
Jump to navigation
Jump to search
JamesCraig (talk | contribs) (→Semantic XHTML Design Principles: adding links) |
No edit summary |
||
Line 9: | Line 9: | ||
## Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited. | ## Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited. | ||
# Use the most accurately precise semantic XHTML building block for each object etc. | # Use the most accurately precise semantic XHTML building block for each object etc. | ||
# Otherwise use a generic structural element (e.g. <code> | # Otherwise use a generic structural element (e.g. <code> | ||
Revision as of 11:39, 28 May 2007
Semantic XHTML Design Principles
XHTML is built on XML, and thus XHTML-based formats can be used not only for convenient display presentation, but also for general-purpose data exchange. In many ways, XHTML-based formats exemplify the best of both HTML and XML worlds. However, when building XHTML-based formats, it helps to have a guiding set of principles.
- Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported standards by reference. Avoid restating constraints expressed in the source standard. Informative mentions are ok.
- For types with multiple components, use nested elements with class names equivalent to the names of the components.
- Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
- Use the most accurately precise semantic XHTML building block for each object etc.
- Otherwise use a generic structural element (e.g.