What are the benefits of the semantic HTML structure to the layout?

Source: Internet
Author: User
In this chapter we will talk to you about the benefits of the semantic HTML structure to the layout. Small series feel very good, now share to everyone, also for everyone to make a reference.

One:

1. Semantic tags are just html,css and there is no semantics. HTML is a tag, and CSS is a property.

2. Semantic label resume on the basis of the document page, the Web page as a document, D (document) in the DOM and in writing JS is used in the document has been very clear to tell us that the computer will be the page as an document, We can also classify pages as one of the document's.

3. The HTML tag itself is meaningful. such as P---paragraph,li---list,img---image but some are non-semantic such as div---Division does not represent the contents of the div tag and the expression style.

4. HTML5 on the basis of the delivery of HTML based on most people's development habits and general Web page presentation form, added a semantic label

such as

5. Personal understanding is that HTML is a well-defined attribute of XML, semantic HTML can make the page structure clearer, write less CSS and JS, and more conducive to SEO.

Two:

Search engine crawlers also rely on tags to determine the context and weights of individual keywords.

In the past you may not have considered search engine crawlers to be the site's "visitors", but now they are actually extremely valuable users. Without them, the search engine will not be able to index your site, and then the average user will be very difficult to come over to visit.

It is important that your page is easily understood by crawlers, because the crawler largely ignores markup for performance and only focuses on semantic tagging.

Therefore, if the title of the page file is marked instead of, then the location of the page in the search results may be compared.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.