[Home]HtmlisNotLayout

HomePage | RecentChanges | Preferences | Newbie Help

When you look at an HTML document in a browser, you see a layout. However, that is not what HTML really is.

HTML is a series of logical elements that can be used to organize information. One such method of organization is headings. For example...

 <h1>blah</h1>
  <h2>sub-blah</h2>
   <h3>Sub-sub-blah</h3>
   <h3>Sub-sub-blah</h3>
  <h2>sub-blah</h2>
   <h3>Sub-sub-blah</h3>
   <h3>Sub-sub-blah</h3>
 <h1>blah</h1>
  <h2>sub-blah</h2>
   <h3>Sub-sub-blah</h3>
   <h3>Sub-sub-blah</h3>
  <h2>sub-blah</h2>
   <h3>Sub-sub-blah</h3>
   <h3>Sub-sub-blah</h3>

... could be a sample structure of a document (with appropriate paragraphs below the headings). Notice how it looks like an outline. This markup does not have anything to do with presentation (even though headings are usually rendered big 'n bold). Other markup, such as paragraphs, do not exist just to create a double-line break; they exist to contain a paragraph.

Tables are not for layout either. They exist to contain tabular data. A spreadsheet exported to an HTML table would probably be a good use for a table (as long as the program's output contains clean markup). However, Yahoo's use is not.


HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited March 20, 2002 5:30 pm (diff)
Search:

This FAQ is happily hosted by Betadome Digital Media