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 steps and problem solving methods for installing MySQL 8.0.19 on Linux

I recently bought a Tencent Cloud server and buil...

Summary of MySql import and export methods using mysqldump

Export database data: First open cmd and enter th...

Installing Win10 system on VMware workstation 14 pro

This article introduces how to install the system...

Installation and use of mysql mycat middleware

1. What is mycat A completely open source large d...

Example of converting JavaScript flat array to tree structure

Table of contents 10,000 pieces of data were lost...

Application of CSS3 animation effects in activity pages

background Before we know it, a busy year is comi...

Solve the problem that the docker container cannot ping the external network

Today, when I was building a redis environment in...

Vue implements countdown function

This article example shares the specific code of ...

How to solve the problem that Seata cannot use MySQL 8 version

Possible reasons: The main reason why Seata does ...

Html and CSS Basics (Must Read)

(1) HTML: HyperText Markup Language, which mainly...

How to set up scheduled tasks in Linux and Windows

Table of contents Linux 1. Basic use of crontab 2...

Summary of CSS front-end knowledge points (must read)

1. The concept of css: (Cascading Style Sheet) Ad...

Zabbix implements monitoring of multiple mysql processes

Three MySQL instance processes are started on one...

CSS3 clear float method example

1. Purpose Through this article, everyone can und...

Vue3 gets the current routing address

Correct answer Using useRouter : // router path: ...