Home > Article > Web Front-end > Tips for optimization when making web pages
We all know that many web designers use DIV and CSS to layout web pages. This is beneficial to the SEO of web pages. So how to optimize your own web pages? Let me introduce it to you today.
Normally, SEOers like to make a website down to the smallest detail. In terms of web design, sometimes when communicating with designers, they usually ask: Why does SEO require web designers to use DIV+CSS to layout web pages? What are the benefits? In fact, what SEOs consider is how to make the content of the web page better for search engines to crawl the content of the web page, and make it easier to evaluate the quality of the web page content. This is beneficial to Ranking. This is the most basic purpose of SEOs. Of course, the benefits of CSS+DIV are not limited to this. The following is a detailed analysis:
SEO is mainly through the structure, tags, layout, etc. of the website Optimization in all aspects makes it easier for search engines such as Google to search the content of the website, and allows each web page of the website to obtain higher scores in search engines such as GOOGLE, thereby obtaining better rankings. What impact does DIV CSS web page layout have on SEO? Code simplification
Use DIV+CSS layout to simplify the page code. I believe everyone who knows XHTML knows this. There are two direct benefits brought by code streamlining: First, it improves spider crawling efficiency and can crawl the entire page in the shortest time, which has certain benefits for the collection quality; second, because it can crawl efficiently, it will be affected by spiders. I like it, this will be beneficial to the number of collections.
The nesting problem of tablesMany articles on how to promote websites say that search engines generally do not crawl tables with more than three levels of nesting. There has been no official confirmation from the search engine. The results of several of my experiments are not fully available, but according to the current situation, the spider crawls the table layout page, and when encountering multiple levels of nested tables, it will skip the nested content or directly abandon the entire page.
Using Table layout, in order to achieve a certain visual effect, multiple tables have to be applied. If the nested table contains core content, and the spider skips this section when crawling and does not capture the core of the page, the page becomes a similar page. Too many similar pages in a website will affect rankings and domain trust.
The DIV+CSS layout basically does not have such problems. From a technical point of view, XHTML does not require too much nesting when controlling styles.
Although this has not been confirmed, it is still recommended that friends who use Table layout should try not to use multi-layer table nesting when designing. SEOers have explained this in the article, and I believe they are not. There is no basis for it.
Speed issue
DIV+CSS layout reduces page code compared to Table layout, and the loading speed is greatly improved, which is very beneficial when crawling by spiders. Too much page code may cause crawling timeout, and spiders will think that the page is inaccessible, affecting inclusion and weight.
On the other hand, real SEOers are not just pursuing inclusion and ranking. Fast response speed is the basis for improving user experience, which is very beneficial to the entire search engine optimization and marketing.
The impact of CSS on rankings
The DIV+CSS layout based on the XTHML standard will generally be as complete as possible after the design is completed to pass
W3Cverification. So far, no search engine has stated that its ranking rules will favor websites or pages that comply with W3C standards, but it turns out that websites that use XTHML Schema generally have good rankings. This may be controversial, but Le Sishu himself maintains this view. Anyone with objections can compare and observe more than three groups of websites with basically the same quality. I think this situation may not be a ranking rule. The most likely reason is that when spiders crawl websites, the above differences lead to different inclusion quality.
After all, Liao is better than nothing. It is recommended that friends who build or revise a website, if the technology permits, it is better to choose DIV+CSS layout
I believe it After reading these cases, you have mastered the methods. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Related reading:
Answers to questions about camel case naming and JSBoolean values, relational operators in JS, Detailed explanation and examples of logical operatorsSummary of the front-end js framework and explanation of its usesThe above is the detailed content of Tips for optimization when making web pages. For more information, please follow other related articles on the PHP Chinese website!