HTML5 Learning (2) Semantic

What is semantic?

1. Each HTML element has a specific meaning, for example:

a elements: Hyperlink, p elements: Paragraph

2. All of the elements regardless of the display of results

Element content to show the effect of the page, should be decided by CSS.

Because the browser with a default CSS style, so each element has some default styles.

Choose what elements, depending on the meaning of the content, instead of displaying the results.

Why semantic?

1. In order to search engine optimization (SEO)

Every so often, the search engine will crawl the entire page source code from the Internet

2. In order to better understand web browser

Such as reading mode. Voice mode

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11531292.html