HTML checklist: check your HTML

We use this document for checking our results after- Determine Links style through styles of (td {}, td a
any HTML cutting. I hope that it'll help for new{}, td a:hover {}). a:hover must redefine only
and experienced developers.changed atttributes.
Structure and Visualization- Determine background color for <body>
- Do not use <font> element.- Split declarations to groups (fonts, tables, text
- Move arrangement attributes (align, valign, width,blocks, divs)
height) to CSS.- Determine geometrical dimensions in percents or
- Do not use tables except showing table data. Usingpixels.
tables for visual formatting is acceptable in complex- All colors values must be as short as possible and in
situations only. Max table nesting can not be greathigh case (#FFF instead of #ffffff).
than 3.- All tags and attributes names must be in low case.
- Move attribute "background" to CSS.- All margins and indents must be defined for all
- Design of input fields and buttons must be writtenbrowsers.
as class in CSS.- All classes and identifiers must be named logically
- Style table must be written as external file andwith one naming convention.
linked using <link>Structure
- All images related to design (not content) move to
block with style {background: transparent1. Use title, description and keywords in header.
url("gif") no-repeat;}2. All elements with closing tags must have it (ideally,
HTML codeuse XHTML 1.0 Transitional/Strict).
- If table cell contains only image with width and3. Use alt attribute for <image>. If image
height, then don't use these attributes for cell.don't have semantic meaning, alt must be
- Use minimum cols and rows for tables.empty.
- All <image> elements must have4. Use comments before main blocks.
"width" and "height"5. Use standard tags for creating text structure
attributes.(<h1>-<h4>, <p>, <ul>, <il>,
- All <image> elements, which are not links,<li> and so one).
don't have "border" attribute.6. Vertical and Horizontal menus must be defined
- All attributes values must be placed in doubleusing <li>.
quotes.7. Don't use <b> and <i>. Use
- All tags and attributes names must be in low case.<strong> and <em>.
CSS code8. Blocks must be placed in document in the
- Unique elements must have "id"descending order of importance. Blocks location can
attribute, which is used for style. Repeated elementsbe defined using CSS.
must use classes.