17 Renovation Standard

Source: Internet
Author: User
Tags file size html tags lowercase valid
Standard

This article is written for those who understand HTML but are unaware of the XHTML checksum, without a clear understanding of separation semantics and performance.

Separation of semantics and expression

The meaning of HTML is never used in performance, but formatting text and developers find ways to manipulate the layout. With a strong CSS, it is not long to use HTML presentation style, semantic (HTML) can be completely separated from the performance (CSS).

There are many advantages to doing this, such as significantly reducing file size, there is a more convenient than a single page to control the entire site elasticity of the main style, improve page availability.

In this context, it means that you are not manifesting in HTML. tags such as font or properties such as bgcolor no longer can be used. Even img the border attributes in XHTML 1.1 are not valid. These are not the problem, the use of CSS can do better than HTML, HTML to do to the CSS can be done, HTML can not be done by CSS.

This not only takes away the performance of HTML, but the application of semantics means the proper application of explicit HTML tags. For example h1 , h2 you have to use the title-you're not only using CSS to control larger fonts.

A good guide is to see that if you have a visual browser with the default style, there is no style document to perform well.

tables are not used for layout -tables are designed to represent tabular data. This is a bit difficult for web designers who used tables before, because it subverts the traditional HTML structure. This approach greatly reduces the size of the page and enhances the usability of the code.

Label

All tags in XHTML must be lowercase letters and closed. Then do not turn off the label as br and img must use "/" to close yourself, for example <br /> . Note that there should be a space.

tags need to appear in pairs, elements may be nested together, such as <strong><em>this</em></strong> not<strong><em>this</strong></em>

The body of the document must start atph1h2h3h4h5h6divpreaddressinsdel

Property

All properties must also be lowercase letters, and their values are in quotation marks.

Minimizing properties is not allowed, for example <input type="checkbox" checked /> , the previous minimized attribute must now give the same value as the property name, such as<input type="checkbox" checked="checked" />

nameproperty is not allowed to use elements other than form, it must be used id .

targetis not a valid attribute. Praise, the past is more stupid.

imgThere must be a alt property inside.

Availability of

Enhancing the usefulness of Web pages it goes without saying that this is not a sermon, and that in the future it has real benefits as the Web user ages to increase the sensory ability. Usability is not only beneficial for disabled users, but is also easier for most users of minor injuries (primarily in visual terms).

More and more legal issues such as the U.S. ' Section 508 ' Enforce certain availability, in the UK, government websites must reach the ease of use. How often does such a law involve a commercial site, just like a building?

If you follow the above method, your webpage already has the very good usability. Here are more ease-of-use, and they're not difficult.







Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.