HTML closing tag problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:00:26
Original
1075 people have browsed it

根据w3c的原则,xml的每个开始标签必须有一个结束标签与之对应,也就是<html>必须要有</html>结束,才是一个完整的元素,除非它是一个自封闭标签,自封闭就是<img src="... " />之类的标签。html是xml的子级,所以也要遵循xml的原则,这是标准。所以,<meta charset=UTF-8> 不加/> 来结束,不符合标准,只适合html 4.0以前的版本,目前大多网站为了seo和多浏览器支持,都采用xhtml标准写法。
Copy after login

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template