What are the benefits of semantic HTML structure?

What are the benefits of semantic HTML structure?

one:

1. Semantic tags are just HTML, there is no semantics in CSS. HTML is tags, CSS is attributes.

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

3. HTML tags themselves are meaningful. Such as p---paragraph, li---list, img---image, but some are non-semantic, such as div---division, and cannot represent the attributes and presentation styles of the content in the div tag.

4. HTML5 adds semantic tags such as <header><footer><nav><article> based on HTML and the development habits of most people and the general website page display format.

5. My personal understanding is that HTML is XML with defined attributes. Semantic HTML can make the page structure clearer, write less CSS and JS, and be more conducive to SEO.

two:

Search engine crawlers also rely on markup to determine the context and weight of individual keywords.

In the past you may not have considered search engine crawlers to be “visitors” to your website, but now they are actually extremely valuable users. Without them, search engines will not be able to index your website, and then regular users will have a hard time coming over.

6. It is very important that your pages are easy for crawlers to understand, because crawlers will largely ignore the markup used for presentation and only pay attention to the semantic markup.

Therefore, if the page's title is tagged with , instead of , then the page may be ranked lower in the search results.

The above brief discussion on the benefits of semantic HTML structure is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  Methods of adaptive web design (good access experience on mobile phones)

>>:  This article takes you to explore NULL in MySQL

Recommend

Detailed explanation of the processing of the three Docker Nginx Logs

Because colleagues in the company need Nginx log ...

Detailed tutorial for downloading and installing mysql8.0.21

Official website address: https://www.mysql.com/ ...

Detailed explanation of the usage of compose function and pipe function in JS

Table of contents compose function Array.prototyp...

Detailed explanation of MySQL Workbench usage tutorial

Table of contents (I) Using Workbench to operate ...

Use pure JS to achieve the secondary menu effect

This article example shares the specific code of ...

How to install Django in a virtual environment under Ubuntu

Perform the following operations in the Ubuntu co...

Introduction to Spark and comparison with Hadoop

Table of contents 1. Spark vs. Hadoop 1.1 Disadva...

Summary of special processing statements of MySQL SQL statements (must read)

1. Update the entire table. If the value of a col...

WeChat Mini Programs Implement Star Rating

This article shares the specific code for WeChat ...

VMware15.5 installation Ubuntu20.04 graphic tutorial

1. Preparation before installation 1. Download th...

Cross-browser development experience summary (I) HTML tags

Add a DOCTYPE to the page Since different browser...

CentOS6.8 uses cmake to install MySQL5.7.18

Referring to the online information, I used cmake...

How to set up the terminal to run applications after Ubuntu starts

1. Enter start in the menu bar and click startup ...

win10 mysql 5.6.35 winx64 free installation version configuration tutorial

mysql 5.6.35 winx64 free installation version con...