How to make your Web page conform to the standards
Source: Internet
Author: User
<span id="Label3"></p><p><p>The following is pasted, feel well written ~ ~ Borrow a bit ~ ~</p></p><p><p>Primer: what is the standard</p></p><p><p>As a Web site technology developers, It is often in their own development perspective to implement the site deployment (reading data and development of convenience, etc.), rather than the site visitors and search engine Perspective. So most of the site in the browsing aspect is not intuitive or convenient, especially now the specifications, but also in most of the site developers Brain Blank. moreover, baidu, google, msn, Yahoo and other professional search engines have their own rules and determine the level of Web page technology, so the site to optimize, optimize the purpose of only one: in line with the standards, in line with the standard spider crawling, more important is in line with the site visitors to browse the convenience and ease of use.</p></p><p><p>To know the standard, it is necessary to first understand what is the "the"?</p></p><p><p>The World Wide Web Consortium, The global World Wide Web Alliance Abbreviation. The main responsibility of the World Wide Web is to determine the future direction of the www, and to develop relevant recommendations (recommendation, because it is a non-governmental organization, is not binding, so only provide recommendations). HTML4.01 Specification Recommendations (HTML4.01 specification Recommendation) are made by the "the". It is also responsible for developing other network language specifications such as Xml,mathml.</p></p><p><p>What is the standard of the web? does your corporate website meet this standard?</p></p><p><p>The current standards have become high-end customer design site of choice, We know that domestic internet users, with more than IE browser, but from the domestic or the World's Internet customers to see, some customers are not using Internet Explorer to browse the content, they will use some other browsing tools such as: Netscape, Mozilla, Firefox,opera and so on, if your website is not based on the standard, users of other browsers will not be able to see your Website. That is, this standard is an international standard, a Web site that complies with this standard, and can use any browser to browse your Website.</p></p><p><p>If your site does not meet this standard, then some customers will not be able to see your business, your products, although this part of the customer is relatively small, but also is a part of the customer, lose any potential customers, for the enterprise, is a loss.</p></p><p><p>Since the birth of html, in the process of continuous development of the agreement, the major browser manufacturers in order to "encourage" people to create Web pages, thus "indulge" the people of all kinds of bad habits. At the same time, they have spared no effort in developing features to add to HTML and related technologies in order to occupy the commanding heights of "standard-setting". so, There is now a messy situation:</p></p><p><p>All kinds of syntax error HTML can get a good "support" of various browsers. If this situation is allowed to develop, our WWW World Wide Web will be a mess in the Future.</p></p><p><p>World Wide Web consortium, an organization responsible for developing and maintaining the many standards and protocols of the World Wide Web that we are familiar with (you can access it through http://www.w3c.org or Http://www.w3.org) On December 24, 1999, on the basis of a previously released version of the HTML4.0, the HTML4.01 was revised and used as a recommended Standard. January 26, 2000, based on HTML4.01, published its XML version XHTML1.0 as a recommended standard (later published XHTML1.1 as the candidate recommendation criteria).</p></p><p><p>How to comply with the specifications?</p></p><p><p>1. Make sure all labels use lowercase letters</p></p><p><p>2. Ensure that all attribute values are enclosed in quotation marks</p></p><p><p>3, to ensure that all pairs of labels appear in the order, the non-aligned label ends with/>, "/" and ">" no space between</p></p><p><p>How to make your site standard up, How to improve the existing site</p></p><p><p>Most of our designers are still building websites in a way that uses traditional table layouts, with a mix of performance and Structure. Learning how to use XHTML+CSS requires a process that makes existing sites compliant with site standards and impossible to one Step. The best way to do this is to step-by-step to achieve the goal of fully complying with site STANDARDS. If you are a novice, or are not familiar with the code, you can follow standard editing tools, such as Dreamweaver MX 2004, which is currently the most complete tool to support CSS STANDARDS.</p></p><p><p>1. Primary Improvement</p></p><p><p> <strong>* Add the correct DOCTYPE to the page</strong></p></p><p><p>Many designers and developers don't know what Doctype,doctype is for. DOCTYPE is a shorthand for document Type. It is used primarily to illustrate what version of XHTML or HTML you are using. The browser interprets the page code according to the DTD (document type Definition) you doctype define. so, If you don't pay attention to setting the wrong doctype, The result will be a surprise to You. XHTML1.0 offers three types of doctype to choose from:</p></p><p><p>(1) Transition Type (transitional)</p></p><p><p>(2) Strict type (Strict)</p></p><p><p>(3) Frame Type (Frameset)</p></p><p><p>For our primary improvement, it is possible to choose a transitional type of Declaration. It can still be compatible with your form layout, performance logo, etc., so that you do not feel too much change, difficult to master.</p></p><p><p>Tip: you are too lazy to enter the above transitional code, you can access the Http://www.macromedia.com/site's homepage, and then view the source code, the head area of the same code copy paste it.</p></p><p><p>* <strong>set a namespace (Namespace)</strong></p></p><p><p>Add the following code directly after the DOCTYPE declaration:</p></p><p><p>A namespace is a detailed dtd,namespace declaration that collects element types and attribute names, allowing you to identify your namespace by pointing to an online address. Just enter the code so you Can.</p></p><p><p>*<strong> to declare your coding language</strong></p></p><p><p>All XHTML documents must declare the encoding language in which they are used in order to be interpreted correctly by the browser and through identity checks. The code is as Follows:</p></p><p><p>The coding language stated here is the Simplified Chinese GB2312, which you can define as BIG5 if you need to make traditional content.</p></p><p><p>*<strong> Write all the labels in lowercase letters</strong></p></p><p><p>XML is sensitive to capitalization, so XHTML is also Case-insensitive. All XHTML elements and attributes must have a lowercase name. otherwise, your document will be verified as Invalid. For example, The following code is not correct:</p></p><p><p><HEAD></HEAD></p></p><p><p>The correct wording is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service