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

markup validation of doctype _HTML/Xhtml_web page production

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:41:49
Original
1410 people have browsed it

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 .
Related labels:
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
Latest Issues
Why should web pages declare <!DOCTYPE html>
From 1970-01-01 08:00:00
0
0
0
What is the purpose of DOCTYPE?
From 1970-01-01 08:00:00
0
0
0
Where is the last button?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template