or   Register or Register today to make and share your own cheat sheets! (Why Join?)

Cheatography Login

Join Us!

Not a Cheatographer? Register here!

Social Media

You can login to or register with Cheatography using your Facebook or Twitter account!

Why Join Cheatography?

Make and share cheat sheets!
Join a great community of Cheatographers and add your very own contributions.

Save your favourites!
Quick access to your most loved cheat sheets.

Fewer ads!
Members see no ads on the site.

Coming soon ...
Requests, ratings and more!

Why Join Cheatography?

Make and share cheat sheets!
Join a great community of Cheatographers and add your very own contributions.

Save your favourites!
Quick access to your most loved cheat sheets.

Fewer ads!
Members see no ads on the site.

Coming soon ...
Requests, ratings and more!

HTML4 Cheat Sheet by DaveChild

3 Comments   |   Add a Comment   |   PDF Download   |   Find:

HTML4 Document Outline

<!D­OCT­YPE> Version of (X)HTML
<ht­ml> HTML document
<he­ad> Page inform­ation
<bo­dy> Page contents

HTML4 Comments

<!-- Comment Text -->

HTML4 Page Information

<ba­se> Base URL
<me­ta> Meta data
<ti­tle> Title
<li­nk> Relevant resource
<st­yle> Style resource
<sc­rip­t> Script resource

HTML4 Document Structure

<h1> to <h6> Headings
<di­v> Page section
<sp­an> Inline section
<p> Paragraph
<br> Line break
<hr> Horizontal rule

HTML4 Links

<a href=""> Page link
<a href="m­ail­to:­"> Email link
<a name="n­ame­"> Anchor
<a href="#­nam­e"> Link to anchor

HTML4 Text

<st­ron­g> Strong emphasis
<em> Emphasis
<bl­ock­quo­te> Long quotation
<q> Short quotation
<ab­br> Abbrev­iation
<ac­ron­ym> Acronym
<ad­dre­ss> Address
<pr­e> Pre-fo­rmatted text
<df­n> Definition
<co­de> Code
<ci­te> Citation
<de­l> Deleted text
<in­s> Inserted text
<su­b> Subscript
<su­p> Supers­cript
<bd­o> Text direction
 

HTML4 Lists

<ol> Ordered list
<ul> Unordered list
<li> List item
<dl> Definition list
<dt> Definition term
<dd> Term descri­ption

HTML4 Forms

<fo­rm> Form
<fi­eld­set> Collection of fields
<le­gen­d> Form legend
<la­bel> Input label
<in­put> Form input
<se­lec­t> Drop-down box
<op­tgr­oup> Group of options
<op­tio­n> Drop-down options
<te­xta­rea> Large text input
<bu­tto­n> Button

HTML4 Tables

<ta­ble> Table
<ca­pti­on> Caption
<th­ead> Table header
<tb­ody> Table body
<tf­oot> Table footer
<co­lgr­oup> Column group
<co­l> Column
<tr> Table row
<th> Header cell
<td> Table cell

HTML4 Images

<im­g> Image
<ma­p> Image Map
<ar­ea> Area of Image Map
 

HTML4 Objects

<ob­jec­t> Object
<pa­ram> Parameter

HTML4 Core Attributes

class style
id title

Core Attributes may not be used with base, 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.

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 onmous­eover
onmous­edown onmouseup
onmous­emove

Favourited by 27 Members:

nschurdell danh chris5marsh CyberTron Kiwidk cjvalotta arnoldobr anomalophobe brentscheidt GaBBBBB Wbbourne mishin sebbu DaveChild donnedslug guslong SoulReverie onitek dttk pedromarban petraeus manjuv.gmit zhaoyidong weevie MrOggy85 webdevo Dranzz

Comments

Scott 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 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.

DaveChild DaveChild, 10:02 28 Nov 11

Quite right, Scott, and thanks for pointing that out. I've fixed the issue.

Add a Comment

Comment:

Contents

HTML4 cheat sheet

Column Content Comments Author Updated
- HTML4 Cheat Sheet DaveChild 1 Mar 12
1 HTML4 Document Outline 0 DaveChild 10 Oct 11
HTML4 Comments 0 DaveChild 10 Oct 11
HTML4 Page Information 0 DaveChild 14 Oct 11
HTML4 Document Structure 0 DaveChild 14 Oct 11
HTML4 Links 0 DaveChild 10 Oct 11
HTML4 Text 0 DaveChild 10 Oct 11
2 HTML4 Lists 0 DaveChild 10 Oct 11
HTML4 Forms 0 DaveChild 14 Oct 11
HTML4 Tables 0 DaveChild 14 Oct 11
HTML4 Images 0 DaveChild 14 Oct 11
3 HTML4 Objects 0 DaveChild 17 Oct 11
HTML4 Core Attributes 0 DaveChild 10 Oct 11
HTML4 Language Attributes 0 DaveChild 10 Oct 11
HTML4 Keyboard Attributes 0 DaveChild 10 Oct 11
HTML4 Events 0 DaveChild 10 Oct 11