In addition to setting out various label regulations, W3C also provides a verification function to allow web page creators to check whether they actually comply with W3C regulations.
ForewordIn addition to setting out various tag regulations, W3C also provides a verification function to allow web page creators to check whether they actually comply with W3C regulations
How to achieve W3C XHTML1.0 standard web pageCurrently, the most commonly used ones are XHTML1.0 and HTML4.01
Since XHTML1.0 evolved from HTML4.01, It is almost a revised version of HTML4.01
If you look at it from a strict perspective, XHTML1.0 is more stringent
Although the rules of XHTML1.0 and HTML4.01 are very similar, since XHTML1.0 is the later The revised version
The former’s regulations will of course be stricter than those of HTML4.01
Common mistakes
1. All tags must be lowercase
Error:
Correct:
2. All attributes in tags must have values and double quotes or single quotes cannot be omitted
Error: Link
Correct: Link
If there is no attribute value, the attribute must be repeated as the value, such as:
Error:
Correct:
3. All tags must be in pairs, if not Pairs need to be added/at the end
Incorrect: Mickey
Minnie
Pluto
Correct:
Mickey
Minnie
Boo Ruto
Wrong:
Correct:
4. Minimum tags that a web page must contain
Title
Content
Note: Usually Chinese web pages are encoded in big5 , you need to add the following line between and :
5. If you want to display [