Change Font Size:

From HTML to XHTML

This paper has been used to apply to the application HTML web sites, hopes to learn XHTML to make their own websites standardized head.

Many are already familiar with the head of the use of HTML to build Web sites. But now we W3C recommendation is to replace the use of XHTML XHTML. This paper introduced XHTML different from the HTML on some of the rules. To facilitate the station from HTML to XHTML.

From HTML to XHTML is not difficult. HTML XHTML different from the rules are as follows:

1.XHTML document to declare the beginning of DTD.

2. You need for your <html> Tags add a namespace.

And on the DTD namespace Please refer to the content of XHTML Tutorial - head and DTD.

3. Tags and labels all the attributes must be lower case, attribute values can be capitalized.

4. Attribute values must be enclosed in quotation marks up. Single quotation marks are double quotes.

5. Labels must all be closed, and air label is no exception. Close air labelled as follows:

In the HTML <br /> written to <br />. Note that adding a box behind "", and a backslash "/."

6 If you use the strict.dtd. Is the most stringent XHTML, many of the attributes defined appearance will be barred.

For example, if you add links to the picture at the same time to remove the frame. >,They must be achieved through CSS. Can no longer use <img src ="..." border = "0" />, but rather must be achieved through CSS. We recommend you use strict.dtd, give up all the definition of appearance attributes, and the use of fully defined CSS pages appearance.

7. Each picture should provide alt text.

See more Defence between HTML AND XHTML