Site Tools


Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:html_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:html_cheat_sheet [2026/07/19 22:56]
51.77.210.64 old revision restored (2008/08/14 05:22)
notes:html_cheat_sheet [2026/07/24 16:43] (current)
84.255.184.65 old revision restored (2026/07/06 11:37)
Line 31: Line 31:
 ==== HTML Components ==== ==== HTML Components ====
   * HTML documents are text files consisting of HTML elements.   * HTML documents are text files consisting of HTML elements.
-  * HTML elements are defined using HTML tags. [[http://www.w3schools.com/tags/ref_byfunc.asp | HTML Tag Reference]].+  * HTML elements are defined using HTML tags.
   * HTML tags contain the element name surrounded by angle brackets (** < > **).   * HTML tags contain the element name surrounded by angle brackets (** < > **).
   * HTML tags normally come in pairs - the **start tag**(<p>) and the **end tag** (</p>).   * HTML tags normally come in pairs - the **start tag**(<p>) and the **end tag** (</p>).
Line 38: Line 38:
   * Attribute values should always be either single or double-quoted.   * Attribute values should always be either single or double-quoted.
   * Element and attribute names are not sensitive but lowercase names are recommended and required in XHTML.   * Element and attribute names are not sensitive but lowercase names are recommended and required in XHTML.
-  * [[http://www.w3schools.com/tags/ref_standardattributes.asp | Standard attributes]] valid for most elements include: class, id, title, style, lang.+  * Standard attributes valid for most elements include: class, id, title, style, lang.
  
 ==== Formatting Tags ==== ==== Formatting Tags ====
Line 124: Line 124:
   * Common character entities include: &gt; , &lt; , &nbsp; (space), &quot; , &apos; .   * Common character entities include: &gt; , &lt; , &nbsp; (space), &quot; , &apos; .
   * Other common symbols include: cent ¢, pound £, yen ¥, euro €, copy ©, times ×, div ÷, reg ®, sect §   * Other common symbols include: cent ¢, pound £, yen ¥, euro €, copy ©, times ×, div ÷, reg ®, sect §
-  * Non-standard letters and other characters can be displayed url-encoded using [[http://www.w3schools.com/html/html_urlencode.asp | hexadecimal format]] e.g. %20. 
  
-==== HTML Head ==== +==== Advanced HTML ====
-  * The head element of a page is not displayed. It contains information about the document. +
-  * It may only contain the following tags: base (base url for links), link (external resources e.g.style-sheets), meta, title, style, and script.+
   * Example style declaration in head <code html>   * Example style declaration in head <code html>
 <head> <head>
Line 136: Line 133:
   </style>   </style>
 </head> </code> </head> </code>
 +  * <div> and <span> are used to group elements to format them with a style. <div> also divides a page into sections.
 +  * The head element of a page is not displayed. It may only contain the following tags: base (base url for links), link (external resources e.g.style-sheets), meta, title, style, and script.
   * Examples of the meta tag <code html>   * Examples of the meta tag <code html>
 <meta name="keywords" content="HTML, DHTM" /> <meta name="keywords" content="HTML, DHTM" />
Line 142: Line 141:
 <meta http-equiv="refresh" content="5" /> <meta http-equiv="refresh" content="5" />
 </code>   </code>  
- 
-==== Advanced HTML ==== 
- 
-  * <div> and <span> are used to group elements to format them with a style. <div> also divides a page into sections. 
   * A simple script in a webpage <code html>   * A simple script in a webpage <code html>
 <body>  <body> 
Line 156: Line 151:
  </body> </code>  </body> </code>
   * An object element with child param elements can also be used to embed content.   * An object element with child param elements can also be used to embed content.
-  * accesskey (character) and tabindex (integer) attributes can be used to make a page keyboard-friendly. 
  
-  * Events allow scripts to be registered for certain user actions. There are four types of events : +
-    * window events are only valid in a body or frameset element: onload, onunload. +
-    * form element events: onchange, onselect, onreset, onsubmit, onblur, onfocus +
-    * keyboard events: onkeydown, onkeypress, onkeyup +
-    * mouse events: onclick, ondblclick, onmousedown, onmousemove, onmouseup, onmouseover, onmouseup+
notes/html_cheat_sheet.1784527000.txt.gz · Last modified: 2026/07/19 22:56 by 51.77.210.64