Home  >  Article  >  Web Front-end  >  What are the benefits of semantic HTML structure for layout?

What are the benefits of semantic HTML structure for layout?

青灯夜游
青灯夜游Original
2018-09-08 18:51:251491browse

In this chapter, we will talk to you about the benefits of semantic HTML structure for layout? The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference.

1:

1. Semantic tags are just HTML, and CSS does not have semantics. HTML is tags and CSS is attributes.

2. Semantic tag resume is based on the documented page. The web page is regarded as a document. The D (document) in the DOM and the document used in writing js have already told us very clearly. , the computer treats the page as a document, and we can also classify the page as a type of document.

3. The HTML tag itself is meaningful. Such as p---paragraph, li---list, img---image, but some are unsemantic, such as div---division, which cannot represent the attributes and presentation styles of the content in the div tag.

4. Based on HTML5, HTML5 adds semantic tags

such as

< based on the development habits of most people and the general website page presentation form. footer>
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