What is front end SEO

Intro:   Full name: search English optimization. Since the search engine, SEO has been born.Significance of existence: in order to improve the number of web pages included in the natural search results of the

Full name: search English optimization. Since the search engine, SEO has been born.

Significance of existence: in order to improve the number of web pages included in the natural search results of the search engine and the ranking position of the optimization behavior. In short, it is hoped that Baidu and other search engines can collect many well-designed websites, and the websites will rank first when others visit.

Category: white hat SEO and black hat SEO. White hat SEO has played a role in improving and standardizing website design, making websites more friendly to search engines and users, and websites can also obtain reasonable traffic from search engines, which is encouraged and supported by search engines. Black hat SEO, using and amplifying the defects of search engine policy to get more users’ access, this kind of behavior is mostly cheating search engine, general search engine companies do not support and encourage. This article aims at white hat SEO, so what can white hat SEO do?

1. Carefully set the title, keyword and description of the website, reflect the positioning of the website, and let the search engine understand what the website does;

2. Website content optimization: the correspondence between content and keywords increases the density of keywords;

3. Reasonably set up the robot.txt file on the website;

4. Generate a search engine friendly website map;

5. Add external links to promote on various websites;

Through the structural layout design of the website and the optimization of the web page code, the front-end page can be understood by both the browser users and the “spider”.

Generally speaking, the less level of the website structure is established, the easier it is to be grabbed by “spiders” and included. Generally, the directory structure of small and medium-sized websites is more than three levels, and “spiders” are reluctant to climb down, “what if they get lost in the dark”. And according to the relevant survey: visitors are likely to leave if they haven’t found the required information after three jumps. Therefore, three-tier directory structure is also the need of experience. To do this, we need to:

1. Control the number of links on the home page

The home page of the website is the place with the highest weight. If there are too few links on the home page, there is no “bridge” and “spider” can’t continue to climb to the inner page, which directly affects the number of websites included. However, the home page links can not be too many. Once there are too many, no substantive links, it is easy to affect the user experience, reduce the weight of the home page of the website, and the collection effect is not good.

Therefore, for small and medium-sized enterprise websites, it is suggested that the home page links should be less than 100. The nature of the links can include page navigation, bottom navigation, anchor text links, etc. note that the links should be based on the user’s good experience and guide the user to obtain information.

2. Flat directory level, try to make “spider” jump 3 times, you can reach any inner page of the website. Flat directory structure, such as: “plant” — & gt; “fruit” — & gt; “apple”, “orange” and “banana”, bananas can be found through level 3.

3. Navigation optimization

The navigation should try to use the text mode, or with the image navigation, but the image code must be optimized. The & lt; img & gt; tag must be added with the “ALT” and “title” attributes to tell the search engine to locate the navigation, so that the user can see the prompt text even if the image fails to display normally.

Secondly, every web page should be added with package navigation. The advantages are: from the perspective of user experience, it can let users know the current position and the position of the current page in the whole website, help users quickly understand the organization form of the website, thus forming a better sense of location, and provide an interface to return to each page, which is convenient for users to operate; for “spider”, it can help users to Spiders “can clearly understand the structure of the website, but also increase a large number of internal links, easy to grasp and reduce the rate of jump out.

4. The structure and layout of the website

Page header: logo and main navigation, as well as user information.

Main body of the page: body on the left, including breadcrumb navigation and body; hot articles and related articles on the right, benefits: keep visitors, let visitors stay more, for spider, these articles belong to related links, enhance page relevance, and also enhance the weight of the page.

Bottom of the page: copyright information and links.

Special attention: paging navigation writing, recommended writing: “homepage 12 3 4 5 6 7 8 9 drop-down box”, so that “spider” can jump directly according to the corresponding page number, and the drop-down box can directly select the page Jump. However, the following writing method is not recommended, “first page, next page, last page”. Especially when the number of pages is very large, “spider” needs to climb down many times to grasp, which will be very tired and easy to give up.

5. Control the size of the page, reduce HTTP requests, and improve the loading speed of the website.

It is better not to exceed 100k for a page. It is too large and the page loading speed is slow. When the speed is very slow, the user experience is not good, and the visitors can not be retained, and once the timeout, the spider will also leave.

1. & lt; title & gt; Title: just focus on the key points, try to put the important keywords first, do not repeat the keywords, and try not to set the same content in the & lt; title & gt; title of each page.

2. & lt; meta keywords & gt; tag: keywords. Just list the important keywords of several pages. Remember to stack them too much.

3. & lt; Meta Description & gt; tag: a web page description needs to be highly generalized. Remember not to be too long. Stack keywords too much. Each page should be different.

4. Tags in & lt; body & gt;: try to make the code semantic, use the right tags in the right places, and do the right things with the right tags. Let read the source code and “spider” at a glance. For example, h1-h6 is used for the title class, and the & lt; NAV & gt; tag is used to set the main navigation of the page, etc.

5. & lt; a & gt; tag: the link in the page should be explained with the “title” attribute to let visitors and “spiders” know. For external links that link to other websites, you need to add the “El =” nofollow “attribute to tell” spiders “not to climb, because once” spiders “climb the external links, they will not come back.

6. Use & lt; H1 & gt; label for body Title: Spiders think it’s the most important. If they don’t like & lt; H1 & gt;, the default style can be set through CSS. Try to use the & lt; H1 & gt; label for the body title and the & lt; H2 & gt; label for the sub title, while the H title label should not be used casually in other places.

7. & lt; BR & gt; label: only used for line wrapping of text content, such as:

< p>

9. & lt; img & gt; should be described using the “ALT” attribute

10. & lt; strong & gt;, & lt; EM & gt; Tags: used when emphasis is needed. ≪ strong & gt; tag can get high attention in search engines. It can highlight keywords and show important content. The effect of & lt; EM & gt; tag emphasis is second only to & lt; strong & gt; tag.

& lt; B & gt;, & lt; I & gt; labels: only used to display effects, and will not have any effect in SEO.

10. Do not use special symbols for text indentation & CSS should be used for setting. Do not use special symbols for copyright Symbols & copy; you can directly use the input method, spell “banquan”, and select serial number 5 to print the copyright symbols).

12. Skillfully use CSS layout to put the HTML code of important content at the front. The content at the front is considered as the most important. Give priority to “spider” to read and grab content keywords.

13. Don’t use js to output important content, because “spider” doesn’t know it

14. Try to use iframe framework as little as possible, because “spiders” generally don’t read the content

15. Use display: none cautiously: for the text content that you do not want to display, you should set Z-index or set it outside the browser display. Because the search engine will filter out the content in display: none.

16. Keep reducing code

17. If JS code operates DOM operation, try to put it before the body end tag and after the HTML code.



1. The labels are open and closed.

2. Avoid redundant code, such as removing space characters.

3. Make rational use of tag semantics.

4. Reasonable nesting rules to avoid embedding block elements in row elements.

5. The title attribute and alt attribute need to be added to the IMG tag.

6. The title attribute needs to be added to the a tag.

7. The optimization of meta tags (the important method of search engine optimization in the past, now is not the key factor, but it can not be ignored) mainly includes: the density of setting keywords of meta description and meta keywords should be moderate, usually 2% – 8%, that is to say, your keywords must appear several times in the page, or within the scope allowed by search engine, to avoid stacking Keyword.

8. & lt; title & gt; page title. The title of the information, the name of the website and related keywords must be listed to avoid heap keywords.

9. Reasonable use of notes.



1. Avoid writing CSS code in tags.

2. If the amount of CSS code is small, it can be written directly in the header. Otherwise, please use the method of external introduction.

3. Do not use the wildcard selector * {margin: 0; padding: 0;} not only because it is a slow and inefficient method, but also because some unnecessary elements reset the outer and inner margins. Please refer to the reset file before the CSS file you defined.

4. CSS code abbreviation can improve your code writing speed and simplify your code quantity, including margin, padding, border, font, background and color value.

5. With CSS inheritance, if more than one child element in a parent element has the same style, the same style can be defined on the element.

6. If multiple elements have the same style, you can define a common class or use the group selector.

7. Use background map merging technology.

8. Appropriate code comments.



1. Adopt the method of external introduction.

2. Reasonable combination of JS code can reduce the pressure on the server.

3. Good JS code habits. For example, reduce page redrawing and the number of lookups on the scope chain.

Related Passages:

Leave a Reply

Your email address will not be published. Required fields are marked *