In order to make our website better crawled and included by search engines and obtain higher traffic more naturally, the semantics of website tags becomes particularly important. The so-called label semantics refers to the meaning of the label.
In order to better understand the semantics of tags, first look at the following example:
1 <table> 2 <tr> 3 <td>娱乐项目</td> 4 <td>项目支出</td> 5 </tr> 6 <tr> 7 <td>聚餐</td> 8 <td>200元</td> 9 </tr> 10 </table>
The above code clearly does not use semantics In order to make its structure clearer, the correct approach is as follows:
<table> <caption>支出统计</caption> <thead> <tr> <th>娱乐项目</th> <th>项目支出</th> </tr> </thead> <tbody> <td>聚餐</td> <td>200元</td> </tbody> </table>
Among them,
Yes, the purpose of semantic tags is to be friendly to search engines. With good structure and semantics, our web page content will naturally be easily crawled by search engines. This approach complies with search engine retrieval rules. , the website promotion can save a lot of effort, and it is more maintainable because the structure is clear and very easy to read. This is also an important step in search engine optimization (SEO). Of course, there is much more to SEO than that. To learn more about SEO, you can go to:
http://baike.baidu .com/link?url=f_v0cbvzTIxhwKNaJtdd-qGjGMefJww4ko9pJaZj4rJArylR_dpUZsobKKLlMKBi
http://www.seoxuetang.com/
Back to business, so what we have to do is to semanticize our HTML tags and attributes. Such as:
p Semantics: Division (separated)
span Semantics: Span (range)
ol Semantics: Ordered List (sorted list)
ul Semantics: Unordered List (unordered list)
li Semantics: List Item (List Item)
1.
2.
Paragraph mark, if you know
as a paragraph, you will no longer use < br/> to break lines, and there is no need for
to distinguish paragraphs from paragraphs. The text in
3., and
< ;b> The label semantics is "bold"
The label semantics is "emphasis"
The label semantics is "stronger emphasis" and em is in italics by default Indicated, strong is indicated in bold.
When we know the semantics of these three tags, it is easy to decide which one to use to emphasize important keywords when doing SEO. Use and for emphasis, and use them purely in bold. .
4. tag,
tag,
So when it comes to list items, you should use
, | ,
|
---|