In addition to the tags defined by W3C, W3C also provides the verification function to enable the Web Page Maker to check whether all the tags comply with W3C regulations. Preface W3C not only defines various label rules, but also provides verification functions, let the web page producer check whether all web pages comply with W3C rules on how to comply with W3CXHTML1.0 standard. In addition to specifying various labels, W3C also provides the verification function, let the web page makers check whether they comply with W3C rules.
Preface
In addition to the tags defined by W3C, W3C also provides the verification function to enable the web page producer to check whether all the tags comply with W3C rules.
How to fulfill W3C XHTML1.0 standard webpage
Currently, XHTML1.0 and HTML4.01 are commonly used.
Since XHTML1.0 evolved from HTML4.01, it is almost a modified version of HTML4.01.
From a strict perspective, XHTML1.0 is relatively strict.
Although the rules of XHTML1.0 and HTML4.01 are very similar, because XHTML1.0 is a revised version of the latter
The rules of the former will certainly be stricter than those of HTML4.01.
Errors that are easy to occur
1. All labels must be in lower case.
Error: <BODY> <br/> correct: <ptml> <title> <body> <br/> 2. all attributes in the volume must have a value and double quotation marks or single quotation marks are not allowed. <br/> error: link <br/> correct: link <br/> if no attribute value exists, you must repeat the attribute as the value. For example, <br/> error: <frame noresize> <br/> correct: <frame noresize = "noresize"> <br/> 3. all tags must be paired. If not paired, add/at the end. <br/> error: <li> Mickey <li> Minnie <li> Bruto <br/> correct: <li> Mickey </li> <li> Minnie </li> <li> Bruto </li> <br/> error: <br> <br/> correct: <br/> 4. minimum tags to be included in a webpage <br/> <ptml> <br/> <pead> <br/> <meta http-equiv = "Content-Type" content = "text /html; charset = big5 "/> <br/> <title> title
Content
Note: Generally, Chinese webpages are big5 encoded and the following lines must be added:AndBetween:
5. To display [<] [>] [&], enter other values
For example, if you want to display <> In a webpage, you must enter:
<>
To display & on the webpage
Error :&
Correct :&
6. The order of marking cannot be disordered.
Error:
Text
Correct:
Text
7. The annotated text cannot contain ----
Error:
Correct:
8. The image marking must contain comments.
Annotation text is the text that appears when you move the mouse pointer to the image:
Error:
Correct:
8. Add the XHTML1.0 file header to the first line
General webpage:
Framework page:
Verify
W3C provides webpage or upload verification. Enter the URL
If it fails, a red alarm is reported, and an error is reported.
W3C standard validation webpage: http://validator.w3.org/
Postscript
At this point, have you tried to paste other people's websites for verification?
Because most web pages are made for IE users, almost none of them are completely passed through W3C, As long as IE can be properly displayed.
If you have tried to paste any page on my webpage, it should pass verification.
Take the instructor's teaching webpage as an example. Except for the homepage, most of them do not pass
The first row of the left-side menu does not contain double quotation marks:
Error: aux1 = inse (foldersTree, gFld ("Chinese Input "))
Correct: aux1 = insmedium (foldersTree, gmedium ("Chinese Input "))
Basic webpage creation-01 do not add comments to the image volumes in HTML (the error 8th is easy to see)
Does it really need to comply with W3C regulations? Complying with W3C rules can make your webpage browsed in any browser is the same
For example, if someone is using web pages for IE, there may be a lot of different designs when using Firefox for browsing.
So try to comply with W3C rules!