Cheatography
https://cheatography.com
HTML4 Document Outline
<!DOCTYPE> |
Version of (X)HTML |
<html> |
HTML document |
<head> |
Page information |
<body> |
Page contents |
HTML4 Page Information
<base> |
Base URL |
<meta> |
Meta data |
<title> |
Title |
<link> |
Relevant resource |
<style> |
Style resource |
<script> |
Script resource |
HTML4 Document Structure
<h1> to <h6> |
Headings |
<div> |
Page section |
<span> |
Inline section |
<p> |
Paragraph |
<br> |
Line break |
<hr> |
Horizontal rule |
HTML4 Links
<a href=""> |
Page link |
<a href="mailto:"> |
Email link |
<a name="name"> |
Anchor |
<a href="#name"> |
Link to anchor |
HTML4 Text
<strong> |
Strong emphasis |
<em> |
Emphasis |
<blockquote> |
Long quotation |
<q> |
Short quotation |
<abbr> |
Abbreviation |
<acronym> |
Acronym |
<address> |
Address |
<pre> |
Pre-formatted text |
<dfn> |
Definition |
<code> |
Code |
<cite> |
Citation |
<del> |
Deleted text |
<ins> |
Inserted text |
<sub> |
Subscript |
<sup> |
Superscript |
<bdo> |
Text direction |
|
|
HTML4 Lists
|
Ordered list |
|
Unordered list |
|
List item |
|
Definition list |
|
Definition term |
|
Term description |
HTML4 Forms
<form> |
Form |
<fieldset> |
Collection of fields |
<legend> |
Form legend |
<label> |
Input label |
<input> |
Form input |
<select> |
Drop-down box |
<optgroup> |
Group of options |
<option> |
Drop-down options |
<textarea> |
Large text input |
<button> |
Button |
HTML4 Tables
<table> |
Table |
<caption> |
Caption |
<thead> |
Table header |
<tbody> |
Table body |
<tfoot> |
Table footer |
<colgroup> |
Column group |
<col> |
Column |
<tr> |
Table row |
<th> |
Header cell |
<td> |
Table cell |
HTML4 Images
<img> |
Image |
<map> |
Image Map |
<area> |
Area of Image Map |
|
|
HTML4 Objects
<object> |
Object |
<param> |
Parameter |
HTML4 Core Attributes
Core Attributes may not be used with base, head, html, meta, param, script, style or title elements.
HTML4 Language Attributes
Language Attributes may not be used in base, br, frame, frameset, hr, iframe, param or script elements.
HTML4 Keyboard Attributes
HTML4 Events
Window Events |
onload |
onunload |
Form Events |
onblur |
onreset |
onchange |
onselect |
onfocus |
onsubmit |
Keyboard Events |
onkeydown |
onkeyup |
onkeypress |
Mouse Events |
onclick |
onmouseout |
ondblclick |
onmouseover |
onmousedown |
onmouseup |
onmousemove |
|
Created By
https://aloneonahill.com
Metadata
Favourited By
and 65 more ...
Comments
DaveChild, 10:02 28 Nov 11
Quite right, Scott, and thanks for pointing that out. I've fixed the issue.
Scott, 10:02 28 Nov 11
Sorry to be a pedant, but this cheat-sheet is misleading.
HTML4 doesn't technically allow self closing tags ( <br /> <hr /> etc), whereas XHTML does.
Scott, 10:02 28 Nov 11
Accidentally posted before finishing:
From w3c >>
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
pompisarriba.blogspot. 09:30 12 Oct 15
Esta información me ha serviso de mucho y es de mucho interés la seguiré visitando con frecuencia, gracias
pompisarribajeans 15:35 11 Jan 16
Exeléntes trucos, hay mas de los que me imaginaba ya guarde la pagina me es de mucha utilidad, gracias
gamliel, 18:41 18 Jul 17
Thank u so much Dave, this cheatsheet is so helpful!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by DaveChild