Is an unordered list... When you see the content, think about what label can better describe it, and what label is used.
What are the benefits of semantic HTML structure?
We know the tags added to HTML5, such
And Html is developing towards a more robust semantic HTML structure. xhtml2 is not advanced in html5. this is also a cause of the death of xhtml2, this also shows that the semantic HTML structure is the development trend of html.
1. Clear structure of the page when the style is removed or lost:
Html itself is not shown, we can see that it is bold, the font size is 2em, bold;It is bold. Do not think this is the performance of html. In fact, the default html css style is working, therefore, removing or losing styles makes the page display a clear structure, which is not an advantage of semantic HTML structure. However, all browsers have default styles, the purpose of the default style is to better express the semantics of html. It can be said that the default style of the browser is inseparable from the semantic HTML structure.
2. The screen reader (if a visitor has a visual fault) will "read" Your webpage based on your tag..
For example, if you use a semantic tag, the screen reader will "spell your words one by one" instead of trying to complete its pronunciation.
3. devices such as PDAs and mobile phones may not be able to render webpages like normal computer browsers (usually because these devices have weak support for CSS ).
Using semantic tags ensures that these devices render webpages in a meaningful way. Ideally, the task of watching a device is to render the webpage in line with the conditions of the device.
Semantic tags provide the required information for devices, saving you from considering all possible display conditions (including existing or future devices ). for example, a mobile phone can choose to display a text section marked with a title in bold. the palm may be displayed in a relatively large font. either way, once you mark the text as the title, you can be sure that the reading device will display the page according to its own conditions.
4. Search engine crawlers also rely on tags to determine the weights of context and keywords.
In the past, you may not have considered that search engine crawlers are also website "visitors", but now they are actually extremely valuable users. without them, the search engine will not be able to index your website, and then the average user will be very sad to visit.
5. Whether your page is easy to understand is very important for crawlers, because crawlers ignore the tags used for presentation, rather than semantic tags.
Therefore, if the title of the page file is marked rather than, the page may be positioned at the back of the search result. in addition to improving ease of use, semantic tagging is conducive to correct use of CSS and JavaScript, because it provides many "hooks" to apply the style and behavior of pages.
SEO mainly depends on the content of your website and external links.
6. easy team development and maintenance
W3C has set a good standard for us. Everyone in the team follows this standard, which can reduce many differentiated things, facilitate development and maintenance, improve development efficiency, and evenImplement modular Development.
If you have different opinions, please leave a message to discuss them.
Thanks to ghost Brother, milk tea, Xiaozhi, stealing rice, Caspar, and css forest groups.