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/09/13 16:12] 47.79.207.65 old revision restored (2026/09/04 14:04) |
notes:html_cheat_sheet [2026/09/16 06:36] (current) 2.51.163.142 old revision restored (2026/08/02 14:17) |
||
|---|---|---|---|
| Line 120: | Line 120: | ||
| ==== Character Entities ==== | ==== Character Entities ==== | ||
| - | * A character entity represents a single character. [[http:// | + | * A character entity represents a single character. [[http:// |
| * It consists of an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;) (e.g. <). | * It consists of an ampersand (&), an entity name or a # and an entity number, and finally a semicolon (;) (e.g. <). | ||
| * Common character entities include: > , < , (space), " , ' . | * Common character entities include: > , < , (space), " , ' . | ||
| 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 " | ||
| + | " | ||
| + | |||
| + | |||