|
Author:
This is an important question because what have historically been acceptable HTML pages (non standards compliant), will no longer function properly (if at all) as the browser agents become more standards compliant and XML centric.
Coding to standards will ensure that your documents (and applications that use a Web interface) won't fail as the languages for the WWW evolve.
Changes in the industry due to the move towards Web standardization and XML have resulted in the requirement that Web documents:
HTML code has became a mix of structural and style tags interspersed with browser specific markup that often:
The DTD has become more important in the move to standards compliance and XML because it states the rules of that markup language. These rules provide details of each element, their order, what attributes they can take and other markup information, such as, if the element is block-level or in-line.
Validation simplifies HTML/XHTML processing because:
Validation will remove some of the work browsers currently need to do to render a page. As HTML moves into the XML environment, validation will become more important because XML usually requires valid documents.
If you answer yes to #1 then you will need to produce documents that are at a minimum, valid against the XHTML 1.0 strict DTD and include the document character encoding. This would also require all the document's formatting be moved into a Cascading Style Sheet (CSS).
If you answer yes to just #2 then your documents will need to be valid HTML (and I suggest HTML 4.01) or XHTML and include the document's character encoding. If the browsers were XML based then the document would have to validate to XHTML 1.0 Strict with style formatting moved into a CSS.
If the document life span is unknown, but possibly long-term, your design and development will be different from a short-term document. You will need to position the document in a manner that minimizes the amount of work you will need to do if you decide to keep it updated to whatever the current standards are as these standards evolve. Your best bet is XHTML. At a minimum, your documents will be well-formed so they will be easier to update to modular XHTML as the related technologies develop. If you can move most of your display formatting code out of the document and into a CSS the document will be much closer to XML requirements, not to mention you will save time during design, development and in maintenance.
If the document's life span were short then valid HTML 4.01 would probably be sufficient.
Position documents for the future by: