Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Now a lot of seoer in SEO has done very well, can be a keyword ranking is very high, but many of them have neglected the relationship between SEO and div refactoring, including professional seoer
We often use in the optimization of H1 and fervent, such as tags, such as H1 title, fervent to emphasize the role, we all know that the contents of these tags are more important to the search engine, which is involved in the issue of XHTML semantics, of course, this is the simplest, Here we look at the list of Huangshan Tourism (www.hssjfc.cn):
So how do we write a list that is more consistent with XHTML semantics? I see a lot of people writing is a color block A is a div,b is a div,c is also a Div, and then three layers of overlapping, I would like to write with CSS How to explain it? Not a bit of semantics, so I suggest this:
<div><ul>
<li>< ul ><li> title a</li><li> content a</li></ul ></li>
<li>< ul ><li> title b</li><li> content b</li></ul ></li>
<li>< ul ><li> title c</li><li> content c</li></ul ></li>
</ul></div>
This seems to be very obvious semantics, the whole is a list, with the UL write, each UL list Li also contains <ul>, this UL can also use DL instead, namely
<li>< dl><dt> topics a</dt><dd> content a</dd></dl></li>
In contrast, I prefer the latter, after all, with a DL than the use of UL semantics more clearly, DT is the problem, DD represents the content.
Next we look at the group Huangshan tourism www.hssjfc.cn list:
Such a list does not fit D with a div,e with a div, and then overlay the two layers, I give you the written advice is:
<dl>
<dt> travel guide </dt>
<dd><ul><li></li><li></li></ul></dd>
</dl>
<dl>
<dt> Tourism Treasure </dt>
<dd><ul><li></li><li></li></ul></dd>
</dl>
Some friends may ask, why <dd> inside also want to nest a UL, but not directly with the DD label it? This is mainly for the simplicity of the code, we will be the contents of DD separate UL write, not only to adapt to the diversity of the list of changes, and DL can be defined as the same, CSS code is a lot simpler, and the semantics are quite clear.
Summary: We often mention in SEO that code needs to be streamlined, correct div refactoring not only can make cumbersome code greatly reduced, while the XHTML semantics is quite clear, we look at the code to see clearly, as a special customer search engine to see the code is also quite clear, nature will give you a good ranking.