HTML tags should be very familiar to every website programmer. As for the concepts and uses, I won’t go into details here. Here we only talk about some tags that are often talked about in SEO but whose uses are often ignored by programmers. I once discussed HTML tags in an article that are easily overlooked when building a website.
div tag
It can be said that the most popular label in the current era is the love of front-end programmers. It is very popular among Chinese people because it has simple code, improves web page loading efficiency, and facilitates management... This is why many front-end programmers will abuse it, wishing that a web page would be full of divs.
The role of div: web page structure, in the eyes of search engines it only represents the web page level and structure.
table tag
The popularity of div has led to the decline of table, but as a website programmer, please don't ignore it. As the saying goes, "What I am born with must be useful." The task of HTML giving the table tag is to display data.
span tag
As a .net programmer you should pay special attention to this tag, it will be ignored in search engines. As a .net programmer, when you drag and drop controls into the form in VS to display text, please pay attention. If the text you need to put is very important on the web page, please stop this operation (because .net controls are mostly used by < span></span> Including, I will write a special article on .net controls and SEO later). It is recommended to display important content text
to display.
dl dt dd tag
Not many people use these three tags, but they play a big role in SEO. They are similar to <UL><LI>, but sometimes they play a greater role. For example
<dl>
SEO website
<dt>SEO blog</dt>
<dd>The SEO blog is a place where SEOERs write their experiences when learning search engine optimization</dd>
<dt>SEO Forum</dt>
<dd>The SEO forum is a place for SEOERs to communicate when learning search engine optimization</dd>
</dl>
In the above code, if a advancement layer progressive list like this is used, other tags need to be checked in the middle, which further increases the burden on the web page.
b, strong tag
These two are emphasis tags, used to indicate important text in the text content. It has a certain weight in keyword rankings, but don’t abuse it, just let it go.
h1,h2,h3,h4,h5,h6 tags
These six title tags also play some role in keyword ranking, and the weights are deduced in turn. Basic usage uses h1 for page titles and h3 for column titles. I think h1 and h3 are used the most.
a tag
It should be <a href="http://www.xxxx.com.cn">Programmer SEO Series</a> This is the best way to write, instead of adding a class, title or something in the <a> tag Yes, if possible, it would be best not to even let him appear as target. Both Baidu and Google hyperlinks are very important, so the text setting of the a tag must be carefully controlled.
img tag
It should be <img src="/photo/seo.jpg" alt="Programmer Photo" />. It is necessary to write alt in XHTML. Of course, having alt is also very healthy and necessary in the eyes of search engines. Remember that versions after vs2005 will prompt a warning when you do not write alt.