While any HTML that displays in any browser can be considered 'good', it's typically better to try to aim for HTML that is small and efficient. Notably in the days of the first WYSIWYG HTML editors, the editor would fill the resulting HTML with excess FONT, BR, nbsp entities, and other bastardizations of HTML; some found that nice small, text-and-minimal-graphics pages to balloon to 250-400% of their original size when saved by the HTML editor than as opposed to the hand-written stuff. Today's HTML editors are
much better in that regard, but some still use tags that are being depreciated as we speak, such as FONT. In addition, they still place a lot of emphasis on pixel-perfect placement using fixed-width tables (this is a major HTML designer no-no; if you want pixel-perfect, use PDF). It's much better to make use of CSS and styles to format a document, and while I know the editors are capable of that today, I don't necessarily see a lot of designers using that. But the end result of a good CSS design is that your resulting pages will be smaller and more efficient (meaning less time for your end user to download), and it's much easier to change one aspect of an entire site by changing one line in a site-wide style sheet than to edit each document (static or template HTML) to fix it.
And there's actually good reason to split HTML up in some points; it's the usual trick of setting up common elements on pages that can be used by something like SSI or a dynamic template generator. That said, these elements *ought* to be valid HTML or SGML; all open tags are closed before the EOF of the snippet, unlike the example that was at the top of this thread. This way, if using SSI, for example, and there was a problem including this snippet, the layout of the rest of the page would not be drastically affected because it's not waiting for a tag to be open, or a tag previously open to be closed.
(Please note that I'm not trying to put a grudge down on princepawn; just that one that's followed the world of HTML from the start, I just needed to point out certain aspects from his parent node).
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important