HTML4 Cheat Sheet
by Dave Child (DaveChild) via cheatography.com/1/cs/17/
HTML4 Document Outline
HTML4 Text (cont)
<!DOCTYPE>
Version of (X)HTML
<address>
Address
<table>
Table
<html>
HTML document
<pre>
Pre-formatted text
<caption>
Caption
<head>
Page information
<dfn>
Definition
<thead>
Table header
<body>
Page contents
<code>
Code
<tbody>
Table body
<cite>
Citation
<tfoot>
Table footer
<del>
Deleted text
<colgroup>
Column group
<ins>
Inserted text
<col>
Column
<sub>
Subscript
<tr>
Table row
<sup>
Superscript
<th>
Header cell
<bdo>
Text direction
<td>
Table cell
HTML4 Comments
<!-- Comment Text -->
HTML4 Page Information
HTML4 Tables
<base>
Base URL
<meta>
Meta data
<title>
Title
HTML4 Lists
<link>
Relevant resource
<ol>
Ordered list
<img>
Image
<style>
Style resource
<ul>
Unordered list
<map>
Image Map
<script>
Script resource
<li>
List item
<area>
Area of Image Map
<dl>
Definition list
<dt>
Definition term
<dd>
Term description
HTML4 Document Structure
HTML4 Images
HTML4 Objects
<h1> to <h6>
Headings
<div>
Page section
<span>
Inline section
HTML4 Forms
<p>
Paragraph
<form>
Form
<br>
Line break
<fieldset>
Collection of fields
class
style
<hr>
Horizontal rule
<legend>
Form legend
id
title
<label>
Input label
Core Attributes may not be used with base,
<input>
Form input
<select>
Drop-down box
<optgroup>
Group of options
<option>
Drop-down options
<textarea>
Large text input
<button>
Button
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
<object>
Object
<param>
Parameter
HTML4 Core Attributes
head, html, meta, param, script, style or title
elements.
HTML4 Language Attributes
dir
lang
Language Attributes may not be used in base,
br, frame, frameset, hr, iframe, param or script
elements.
By Dave Child (DaveChild)
Published 19th October, 2011.
Sponsored by Readability-Score.com
cheatography.com/davechild/
Last updated 12th February, 2015.
Measure your website readability!
www.addedbytes.com
Page 1 of 2.
https://readability-score.com
HTML4 Cheat Sheet
by Dave Child (DaveChild) via cheatography.com/1/cs/17/
HTML4 Keyboard Attributes
accesskey
tabindex
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
By Dave Child (DaveChild)
Published 19th October, 2011.
Sponsored by Readability-Score.com
cheatography.com/davechild/
Last updated 12th February, 2015.
Measure your website readability!
www.addedbytes.com
Page 2 of 2.
https://readability-score.com