Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:html_cheat_sheet [2008/08/14 16:47] smthng |
notes:html_cheat_sheet [2008/08/15 02:59] (current) smthng |
||
|---|---|---|---|
| Line 65: | Line 65: | ||
| * <code html> | * <code html> | ||
| < | < | ||
| + | < | ||
| < | < | ||
| < | < | ||
| </ | </ | ||
| * A table with border 0 can be used to format the layout of a page. | * A table with border 0 can be used to format the layout of a page. | ||
| + | * A table can also be in the form: < | ||
| + | * To set attributes of columns in a table, a colgroup with column entries can be used e.g. <code html> | ||
| + | <table border=" | ||
| + | < | ||
| + | <col width=" | ||
| + | <col width=" | ||
| + | </ | ||
| + | </ | ||
| ==== Forms ==== | ==== Forms ==== | ||
| Line 145: | Line 154: | ||
| ==== Advanced HTML ==== | ==== Advanced HTML ==== | ||
| - | * < | + | * < |
| * A simple script in a webpage <code html> | * A simple script in a webpage <code html> | ||
| < | < | ||
| Line 165: | Line 174: | ||
| ==== XHTML ==== | ==== XHTML ==== | ||
| - | * XHTML is a stricter and cleaner | + | * XHTML is a stricter and cleaner |
| * XHTML requires elements to be closed, properly nested and lowercase. | * XHTML requires elements to be closed, properly nested and lowercase. | ||
| - | * Documents must have a DOCTYPE declaration and only a single root element. | + | * Documents must have a DOCTYPE declaration and only a single root element. They must have a head with a title and a body. |
| * Attributes must be lowercase with quoted values and must have values (e.g. checked=" | * Attributes must be lowercase with quoted values and must have values (e.g. checked=" | ||
| * id replaces the name attribute, xml:lang replaces lang but both should be used for compatibility. | * id replaces the name attribute, xml:lang replaces lang but both should be used for compatibility. | ||
| * There are three XHTML variations | * There are three XHTML variations | ||
| - | * Strict - No presentational attributes allowed. <code html> | + | * Strict - No presentational attributes allowed <code html> |
| < | < | ||
| PUBLIC " | PUBLIC " | ||