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 [2026/11/03 08:46] 186.244.138.50 old revision restored (2026/08/04 09:30) |
notes:html_cheat_sheet [2026/11/04 18:00] (current) 47.79.207.195 old revision restored (2026/10/06 13:16) |
||
|---|---|---|---|
| Line 163: | Line 163: | ||
| * keyboard events: onkeydown, onkeypress, onkeyup | * keyboard events: onkeydown, onkeypress, onkeyup | ||
| * mouse events: onclick, ondblclick, onmousedown, | * mouse events: onclick, ondblclick, onmousedown, | ||
| + | |||
| + | ==== XHTML ==== | ||
| + | * XHTML is a stricter and cleaner replacement for HTML defined as an XML format. | ||
| + | * XHTML requires elements to be closed, properly nested and lowercase. | ||
| + | * 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=" | ||
| + | * id replaces the name attribute, xml:lang replaces lang but both should be used for compatibility. | ||
| + | * There are three XHTML variations | ||
| + | * Strict - No presentational attributes allowed <code html> | ||
| + | < | ||
| + | PUBLIC " | ||
| + | " | ||
| + | * Transitional - Presentational attributes allowed but no frames <code html>< | ||
| + | PUBLIC " | ||
| + | " | ||
| + | * Frameset - Allows presentational attributes and frames <code html> | ||
| + | < | ||
| + | PUBLIC " | ||
| + | " | ||
| + | |||
| + | |||