SEO is a science that involves a wide range of things. When doing SEO, many friends tend to focus on some external things, such as external links, or advertising, etc., while ignoring some of the internal things of their own websites. Today I will talk to you about some things in HTML layout. I hope it will be helpful to you, and you are welcome to discuss it together.
1. Write good HTML structure
A good HTML document structure is beneficial to both search engines and coders (slicers or programmers). Recall that the reason why people abandoned the TABLE (table) layout is because using the TABLE layout produced a lot of redundant code, and in order to achieve a certain visual effect, only multiple tables can be applied. So if you use DIV+CSS layout, but your HTML document is too deeply nested or has too many redundant codes, it is basically no different from a table layout. Here I recommend a website written by a foreign expert. You can refer to his document structure Zengarden (Cicada Wing Garden) and it will appear in Baidu.
2. Use your LOGO skillfully
Many friends like to insert an IMG tag as the logo of the website. I personally think it is a waste of resources. Why do you say this? Because search engines now almost ignore the ALT attribute of the IMG tag. There is also the fact that search engines attach great importance to the first part of a website's HTML. Here I will give you an example to teach you how to use your LOGO skillfully. Let's open Sohu's website to view its source file and find that its LOGO is not using The picture inserted by the IMG tag is defined like this:
HTML part
<h1><a href=http://www.sohu.com title="Sohu-China's largest portal">Sohu</a></h1>
CSS part
h1 {text-indent:-5000px;display:block;width:143px;height:67px;float:left;margin:0 auto;}
h1 a {width:143px;height:67px;float:left;background:url(../images/logo.gif) no-repeat;overflow:hidden;}
Many people may ask why it is an H1 tag? Does this count as cheating? This is not officially stated by the search engine as cheating, and a large website like Sohu does this, so we can just face it, and I have used this trick many times, and I have not found any problems so far.
3. Place H tags appropriately
Friends who have SEO experience know this. H1~H6 tags are good for website optimization, yes, but if your H tags are abused, they will not only have no benefit to SEO, but will be demoted or even destroyed. For example, let’s take a piece of news as an example. Personally, I recommend placing the title in the H1 tag. A short description of about 50 words can be placed in the H2 tag. In addition, an auxiliary keyword related to the title can be added to the H2 tag to set it off. H3 Tags can be used as subtitles in news content. Like H2, you can also add some keyword modifications, but the proportion must be controlled. H4, like H3, works better when used together.
4. Combination of aesthetics and website optimization
At present, doing HTML layout in China is often the biggest headache for artists or slicing personnel, because the domestic operating system can display very few fonts on web pages. The most commonly used one is Song Dynasty, but many designers use it in website design. It is normal to use some artistic fonts in your manuscript. But sadly, domestic browsers only support Song font and some rarely used bold and italic fonts. What should I do? Friends who have slicing experience immediately think of slicing pictures. Yes, this is the most common method, but what if these things using artistic fonts are very useful for SEO? The author used a trick that many friends have not noticed, which is to embed fonts, or just add the code directly according to the old rules:
CSS part
@font-face {font-family:'flagwindRegular';src:url('/DBFNT0.eot');}
#navigation li{font:normal 15px 'Microsoft Yahei','flagwindRegular';}
Carefully observe the font definition of my #navigation. First, it is Microsoft Yahei, and then the content in the single quotation mark is the font name I customized above. I won’t go into details about custom embedded fonts here. You can search it on Baidu. It is very simple and you can learn it in minutes.
I have written so much. My writing is poor and this is my first time submitting. Whether it can pass the review is a question. However, what I said is based on my 7 years of experience in website building. If there is anything wrong, please feel free to comment. Paizhuan, if it passes the review, try to write as many practical things as possible.
This article was originally created by Flagwind Network ( www.flagwind.com ), a Shenzhen website construction company. Please do not delete the original author's copyright information when forwarding, thank you!
Thanks to Shenzhen Qifeng Network for the contribution