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 atp
h1
h2
h3
h4
h5
h6
div
pre
address
ins
del
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" />
name
property is not allowed to use elements other than form, it must be used id
.
target
is not a valid attribute. Praise, the past is more stupid.
img
There 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.