HTML4 Cheat Sheet by DaveChild
3 Comments
| Add a Comment
| PDF Download
| Find:
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
<ol>
Ordered list
<ul>
Unordered list
<li>
List item
<dl>
Definition list
<dt>
Definition term
<dd>
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
Favourited by 27 Members:
Comments
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.
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.
Quite right, Scott, and thanks for pointing that out. I've fixed the issue.
Add a Comment
You are posting a reply. Cancel Reply.
Contents
HTML4 cheat sheet
Cheatographer
www.addedbytes.com
More by DaveChild
Cheat Sheet Stats
Tags
Related (shares tags with):
Thumbnail