Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to standardize Web thoroughly

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to thoroughly standardize Web, I believe that many inexperienced people do not know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

When it comes to Web standardization, you immediately think of DIV+CSS page layout. The advantages of using DIV+CSS to do page layout at least include the following: for developers, it can reduce development and maintenance costs, for websites, it can reduce server bandwidth consumption, for users, it can improve loading speed, and for search engines, it can be conducive to content indexing.

DIV+CSS is an embodiment of Web standardization. But don't think that all you have to do is to make the site a DIV+CSS representation.

If a web page uses DIV+CSS typesetting, it will have the following web page model.

This web page model is embodied in the web page code as follows:

The content layer is some plain text messages, as well as some non-background pictures.

The structure layer is some html tags, such as,

Wait.

The content of the content layer and structure layer can be seen by search engines.

The presentation layer is the CSS file. In order to make the code invisible to search engines, it is generally called out as a CSS file, such as:

The code in this CSS file is similar to the following. It can also be used as a background with pictures:

Html, body {padding:0px; background-image:url (.. / images/bg.gif);} # logo {width:258px; float:left;}

Above these three layers are some Javascript files responsible for interaction. Also in order to let the search engine can not see the code, it is external.

Change roles and imagine, from the point of view of search engines, how to understand what the page says when a search engine analyzes a web page.

Some so-called search engine crawler simulators (http://tool.chinaz.com/Tools/Robot.aspx) grab all the text from a web page and see what the crawler sees. In fact, this is very unscientific. Because just looking at these words, how does the search engine understand the context, and what else is the key point?

To understand the context and the key points, you must use the html tag in the structure layer. Because these tags express the level of information. For example, it is expressed as a title.

The title in represents an alternative description text for a link. And express the parts that should be paid attention to in the content.

Table-laid-out pages also have these tags, but when expressing information, its nested structure and a large number of code that are ineffective to search engines prevent the expression of information levels.

Even if the DIV+CSS typesetting page, sometimes after a piece of content is not closed, the search engine can not understand the content of the page very well. The nesting structure of div+css typesetting pages is also not friendly.

In addition, many people may blindly pursue keyword density without paying much attention to these tags. In fact, search engines pay more attention to the location of keywords than keyword density. The importance of the search engine to the factors in the site fully mimics the typesetting of newspapers. So, you add a lot of keywords and find that the ranking has gone up, probably not because of the increase in keyword density, but because you happen to add keywords to a more important position.

Some people should have noticed these tags, but because they have not considered the problem from a fundamental point of view, there are many other things that have not been done. For example:

There are many things that can be used in the Web standard, such as text tags, etc., these tags mean that search engines can fully recognize them; in addition, the attribute title can be added not only to tags, but also to tags, etc., if you make a keyword density, you can use it in these tags; bold text can also be used with tags. Even tags have a summary attribute that can add content.

There are also "microformats" that many SEO people have not paid attention to. ("microformat" Wikipedia interpretation. (http://en.wikipedia.org/wiki/Microformat))

Generally speaking, microformat is a kind of structured semantic markup similar to XML. It tries to make it easier for the machine to understand the content on the web. Now this microformat search engine can be read. I use a wordpress program for this blog. If you look at the source code now, you can see a specific application of microformats. Such as:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report