0% found this document useful (0 votes)
162 views2 pages

HTML4 Cheat Sheet

This document provides a cheat sheet on HTML4 elements and attributes. It summarizes key HTML4 components for page structure, text formatting, links, images, tables, lists, forms, and events in 1-2 concise sentences. The cheat sheet is published and maintained by Dave Child on cheatography.com.

Uploaded by

E&G
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views2 pages

HTML4 Cheat Sheet

This document provides a cheat sheet on HTML4 elements and attributes. It summarizes key HTML4 components for page structure, text formatting, links, images, tables, lists, forms, and events in 1-2 concise sentences. The cheat sheet is published and maintained by Dave Child on cheatography.com.

Uploaded by

E&G
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML4 Cheat Sheet

by Dave Child (DaveChild) via cheatography.com/1/cs/17/

HTML4 Document Outline HTML4 Text (cont) HTML4 Tables

<!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


HTML4 Comments
<del> Deleted text <colgroup> Column group
<!-- Comment Text --> <ins> Inserted text <col> Column

<sub> Subscript <tr> Table row


HTML4 Page Information
<sup> Superscript <th> Header cell
<base> Base URL
<bdo> Text direction <td> Table cell
<meta> Meta data

<title> Title HTML4 Lists HTML4 Images

<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


HTML4 Document Structure HTML4 Objects
<dt> Definition term
<h1> to <h6> Headings <object> Object
<dd> Term description
<div> Page section <param> Parameter
<span> Inline section HTML4 Forms
<p> Paragraph HTML4 Core Attributes
<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,
HTML4 Links head, html, meta, param, script, style or title
<input> Form input
<a href=""> Page link elements.
<select> Drop-down box
<a href="mailto:"> Email link
<optgroup> Group of options HTML4 Language Attributes
<a name="name"> Anchor
<option> Drop-down options
dir lang
<a href="#name"> Link to anchor
<textarea> Large text input
Language Attributes may not be used in base,
<button> Button br, frame, frameset, hr, iframe, param or script
HTML4 Text
elements.
<strong> Strong emphasis

<em> Emphasis

<blockquote> Long quotation

<q> Short quotation

<abbr> Abbreviation

<acronym> Acronym

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

You might also like