This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
notes:html_cheat_sheet [2026/11/03 11:57] 115.70.50.154 old revision restored (2026/08/03 08:06) |
notes:html_cheat_sheet [2026/11/03 14:02] (current) 47.79.205.225 old revision restored (2026/10/21 03:09) |
||
|---|---|---|---|
| Line 165: | Line 165: | ||
| ==== 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 " | ||