How to understand HTML5 semantics?
Posted Jun 16, 2020 • 1 min read
The previous structure of
DIV + CSS, and the code was difficult to understand. In order to change this situation, it was proposed to make HTML semantic.
For example:paragraphs are marked with
p and titles are marked with
- More Provincial Code:Fewer HTML codes. A clearer DOM structure is conducive to writing css and js;
- More beneficial to
SEO**:can improve the effective crawling of search engines and increase the flow of the website;
- Readability:If unfortunately the website's
CSS style is lost, the clear structure still makes your page more readable;
- Interoperability:Semantic HTML code makes it easier for your team to maintain.