HTML Cheat Sheet

Basic HTML

<!DOCTYPE>
<html>
<head>
<body>
Version X(HTML)
HTML Document
Page Information
Page Contains

Links

<a href="">
<a href="mailto:">
<a href="name">
<a href="#name">
Page Link
E-Mail link
Anchor Internal
Internal Link

Comments

<!--comments-->
/* comments */
/* comments */
HTML
CSS
JavaScript

Images and Image Maps

<img/>
<area/>
<map>
Image
Area of Image Map
Image Map

Page Information

<meta>
<base>
<title>
<link>
<style>
<script>
Meta Information
URL Base
Title
Relative Link
Style CSS
Script JavaScript

Document Structure

<h1> to <h6>
<p>
<br>
<hr>
<div>
<span>
Heading
Paragraph
Line Break
Horizontal Line
Division Section
Inline Section

Text Markup

<address>
<b>
<em>
<code>
<strong>
<pre>
<del>
<ins>
<sub>
<sup>
<bdo>
<italic>
Address
Bold
Emphasize
Computer Code
Strong
Preformated
Delete
Insert
Subscript
Superscript
Text Direction
Italic

Forms

<form>
<fieldset>
<legend>
<label>
<input>
<select>
<optgroup>
<option>
<button>
<textarea>
Form
Border Field
Form Legend
> Input Label
Form Input
Drop-down box
Group of options
Drop-down options
Button
Large Textarea

Table

<table>
<thead>
<tbody>
<tfoot>
<caption>
<tr>
<th>
<td>
<colgroup>
<col>
Table
Table Header
Table Body
Table Footer
Caption
Table Row
Table Header
Table Data
Column Group
Column

List

<ol>
<ul>
<dd>
<dt>
<dd>
Order List
Unorder List
Definition List
Definition Teams
Definition Define

Window Events

onload
onunload

Dynamic Attributes

class
id
style
title

Keyboard Events

onkeydown
onkeypress
onkeyup

Mouse Events

onclick
ondblclick
onmousedown
onmouseup
onmousemove
onmouseout
onmouseover

Empty Elements

<area />
<base />
<br />
<hr />
<col />
<param />
<img />
<input />
<link />