An example Analysis of HTML semantic tags
Xiaobian to share with you HTML semantic tag example analysis, I believe most people do not know how, so share this article for your reference, I hope you read this article after a great harvest, let us go to understand it!
1. Semantic tags: HTML is used exclusively for page results, so when using html tags, focus on the semantics of the tag, not its style.
2. Title tags: h2--h7 There are six levels of titles
From h2 to h7, h2 is the most important and h7 is the least important.
H2 is second only to the title tag in importance on a web page, and there is usually only one h2 on a page.
h2--h4 is more commonly used, h5--h7 is rarely used
Title tags are block elements, and elements that occupy an exclusive line in the page are called block elements.
3. hgroup tag is used to group tags. A group of related titles can be placed into hgroup at the same time.
4. The p-tag identifies a paragraph & a block element in the page
5. The em tag is used to indicate an emphasis on semantic intonation, and elements that do not monopolize a line in the page are called inline elements.
6. Strong means emphasis, important content!
7. blockquote means a long quote
8.q represents a short reference
9.br tag means newline in page
ps: The garbled code problem is due to the use of UTF-8 to resolve GBK, so garbled code will appear.
Solution: UTF-8 at the bottom of the page, select to reopen by coding, select GBK
The above is "HTML semantic tag sample analysis" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!