One of the most important recommendations of HTML 4.0 is the separation of structure and style.
With style sheets, you can separate the structure of a web page from its design. As a result, you can control a document’s presentation in ways HTML can’t.
Deprecated Tags
Deprecated refers to those HTML tags and attributes that should be phased out in favor of style sheets.
Good pages to look up depracated tags http://www.codehelp.co.uk/html/deprecated.html and
http://www.w3.org/TR/html4/index/elements.html
Is it too early to use some of the new HTML 4.0 elements and attributes?
Yes and no. If you know who your audience is (intranet) it’s probably fine. If you are going to have an audience that’s using many different browsers then no.
Is it a good idea to avoid using deprecated tags?
Yes
If I use deprecated tags will my pages break?
No, not in today’s browsers but in the future.
What does it mean to separate style and structure, and why is it important?
Means to define the presentation of structural elements outside the code as often as possible. This is done with CSS.
Advantages of CSS
XHTML (Extensible hypertext markup language)
XHTML is a strict version of HTML that shares the requirements of well-formedness with the “meta-languages” XML (Extensible Markup Language) and SGML (Standard Generalized markup language).
Advantages of XHTML
Why?
Because of the future hand held devices, appliances and other electronics will make more use of the internet.
XHTML Utilities
-W3 offers a utility called “Tidy” that you can use to clean up your code without having to pour through it all and change the code to conform to XHTML.
“Tidy GUI” is a windows version of the program.
So how do you transform HTML to XHTML?
Use XForms
For
To what extent should you write code that conforms with the HTML 4.0 Spec?
As much as possible to ensure that your pages load correctly
How important is it to break old HTML habits and conform to XHTML?
For your pages to load correctly on future browsers and devices more and more you will need to follow the current standards.
