The most common mistake many website designers make is that when their web pages can be displayed normally under IE, they think that their code is correct, and they often see people complaining that their website ranking is not ideal. If you take a quick look at their website, you will find that the HTML code is full of various errors. Based on such a code, no matter how much effort it takes to optimize the website, the result may be in vain!
In fact, IE is a browser with high fault tolerance for HTML code. - To put it bluntly, although we can have various reasons to attack Microsoft, the efforts made by Microsoft to the change of chirality and usability of its product operations are not to be erased. - The ability to display web pages normally under IE does not mean that there is no problem with the HTML code of the page. It can even be generalized. The ability to display web pages normally under multiple browsers does not mean that the HTML code is completely legal and valid. Which browser must ensure basic fault tolerance functions. Otherwise, it will happen even if the HTML page display is abnormally displayed just because of a point in the network transmission, which still happens frequently today when network bandwidth is still tight.
What is legal and valid HTML codeSimply put, our web page is composed of HTML (Hypertext Markup Language: Hypertext Link Markup Language) elements. Even for dynamic pages such as ASP and PHP, it is also rendered by SERVER to the corresponding HTML element and uploaded to the client; for JavaScript, the client converts it to HTML.
Like other languages, HTML also has its own syntax rules. Spiders in both browsers and search engines are analyzing the content in web page code based on these rules. But many times, even for skilled people, there are still some HTML code errors when building HTML pages, not to mention the HTML redundancy and bloat problem caused by most of the WYSIWYG editors.
If there is no component in the page that violates the HTML standard syntax specification, it can be called legal and valid HTML code.
The importance of legitimate and valid HTML code to SEOTo enable search engines to include our web pages, only on this basis can we talk about website optimization and promotion - the premise is to enable search engine spiders to understand our web files. The basis for search engine Spider to read web pages is HTML specification. Only by analyzing HTML code can Spider determine the content of the web page, and on this basis, the relevance for the corresponding keywords can be determined.
It should be clear that the difference between search engine Spider and browser is that its fault tolerance is much worse than that of browsers. If there is unexplained HTML code in the page code, it may stop reading the page or even crawling within our website. More serious errors may even cause it to discard the content information of other pages on the website that have been collected.
Although major search engines are now trying to improve Spider's fault tolerance so that it will not affect the collection of content when there are general errors in HTML code. But many times, it still happens that a closed tag is missing, causing the content of the entire page to be ignored.
On the other hand, legal and valid HTML can also ensure that the web page can be correctly interpreted under multiple browsers, avoiding the same page being displayed under IE but is seriously deformed under Mozilla (of course, it cannot be completely avoided). This is also of great benefit to improving the usability of the website.
How to verify that HTML code is legal and valid?There are many similar free services on the Internet that can help us verify whether the web code is legal and valid. The most famous of them is W3C HTML Validator, which is a free service project officially launched by W3C (World Wide Web Consortium: World Wide Web Consortium). On its page, you only need to enter the HTML address to be verified or upload an HTML file on the local machine. It will quickly return the verification result, whether it is correct, if there are any errors, and how to improve them.
At the same time, W3C HTML Validator also provides verification services for CSS files.
Do you have to pass W3C verification?The answer to this question is not so absolute.
In theory, legitimate HTML code can enable search engine spiders to collect content information on website pages more easily. But on the other hand, not all HTML code errors will affect Spider's crawling, that is, a small number of HTML errors are acceptable to Spider. So, do you have to pass W3C authentication? 2 pages in total Previous page 12 Next page