by webmaster on Sat Nov 20, 2004 4:06 pm
The new "version" of HTML is called XHTML. XHTML will load faster than HTML because its easier for the browers to load it.
The main thing with XHTML is that all tags must have an ending. If the tag doesn't have any ending, the brower will look for the ending while reading the rest of the code, and it will be slower to load.
Most of the tags in HTML already have ending tags, for example <b></b> or <td></td>
But there is some tags that don't have any ending, like: <p> <br> or <img>
A correct HTML img tag should look like:
<img src="weee.jpg">
A correct XHTML tag should look like:
<img src="weee.jpg" alt="Decription of the image" />
The <br> tags should be <br /> and the <p> tags should be <p />
The alt="" text in the <img> tag is for browers with no image support, and for the search engines (if you are interested to be ranked high on for example google)
Change thoose things and the validation-site will look better.