Home >Web Front-end >HTML Tutorial >markup validation of doctype _HTML/Xhtml_web page production

markup validation of doctype _HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:41:491377browse

But recently I found that using this method will cause problems, see the code:

Copy the code
The code is as follows:




test page

< ;body>

a





This If the code is tested with w3c markup validation, it is found that it can pass the verification. Because HTML5 verification is still in the experimental stage, no illegal parts are detected.

But if you use, you will find that the verification is not passed.

The reason is that the p tag is special and cannot contain the block tag. It seems that premature use of some experimental features will also cause problems. For safety reasons, it is recommended to use .
Statement:
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