How to pass W3C verification? _HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:43:39
Original
1761 people have browsed it

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.
Foreword
In 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 page
Currently, 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 [
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template