HTML Quick Reference List


HTML Quick Reference List. You can print it for daily use.


HTML Basic Document

<!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body>Visible Text...</body> </html>

Basic Tags

<h1>Largest Title</h1> <h2> . . . </h2> <h3> . . . </h3> <h4> . . . </h4> <h5> . . . </h5> <h6>Smallest Title</h6> <p>This is a paragraph.</p> <br>(Line Break)<hr>(Horizontal Line)<!--This is a Comment-->

Text Formatting

<b>Bold Text</b> <code>Computer Code</code> <em>Emphasized Text</em> <i>Italic Text</i> <kbd>Keyboard Input</kbd> <pre>Preformatted Text</pre> <small>Smaller Text</small> <strong>Important Text</strong> <abbr>(Abbreviation)<address>(Contact Information)<bdo>(Text Direction)<blockquote>(Part of the document from another source)<cite>(Work Name)<del>(Deleted Text)<ins>(Inserted Text)<sub>(Subscript Text)<sup>(Superscript Text)

Links

Ordinary Link:<a href="http://www.example.com/">Link Text</a>Image Link:<a href="http://www.example.com/"><img src="URL" alt="Replace Text"></a>Email Link:<a href="mailto:webmaster@example.com">Send Email</a>Bookmark:<a id="tips">Hint Section</a> <a href="#tips">Jump to Hint Section</a>

Images

<img src="URL" alt="Replace Text" height="42" width="42">

Styles/Sections

<style type="text/css">
h1 {color:red;} p {color:blue;}
</style> <div>Block Elements in the Document</div> <span>Inline Elements in the Document</span>

Unordered List

<ul> <li>Item</li> <li>Item</li> </ul>

Ordered List

<ol> <li>First Item</li> <li>Second Item</li> </ol>

Definition List

<dl> <dt>Item 1</dt> <dd>Description of Item 1</dd> <dt>Item 2</dt> <dd>Description of Item 2</dd> </dl>

Table

<table border="1"> <tr> <th>Table Title</th> <th>Table Title</th> </tr> <tr> <td>Table Data</td> <td>Table Data</td> </tr> </table>

Frame

<iframe src="demo_iframe.htm"></iframe>

Forms

<form action="demo_form.php" method="post/get"> <input type="text" name="email" size="40" maxlength="50"> <input type="password"> <input type="checkbox" checked="checked"> <input type="radio" checked="checked"> <input type="submit" value="Send"> <input type="reset"> <input type="hidden"> <select> <option>Apple</option> <option selected="selected">Banana</option> <option>Cherry</option> </select> <textarea name="comment" rows="60" cols="20"></textarea> </form>

Entities

&lt;Equivalent to< &gt; Equivalent to>© Equivalent to
Other Extensions