Home >Web Front-end >HTML Tutorial >What are the semantic HTML structures for website optimization?

What are the semantic HTML structures for website optimization?

php中世界最好的语言
php中世界最好的语言Original
2018-01-22 10:48:001614browse

This time I will bring you semanticwhat are the HTML structures for optimizing the website, what are the notesof the semantic HTML structure, the following are practical cases, Let’s take a look.

1:

1. Semantic tags are just HTML, and CSS does not have semantics. HTML is tags and CSS is attributes.

2. Semantic tag resume is based on the documented page. The web page is regarded as a document. The D (document) in the DOM and the document used in writing js are It has been clearly told to us that the computer treats the page as a document, and we can also classify the page as a type of document.

3. HTML tag itself has meaning. Such as p---paragraph, li---list, img---image, but some are unsemantic, such as p---pision, which cannot represent the attributes and presentation style of the content in the p tag.

4. Based on HTML, HTML5 adds semantic tags such as

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn