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 Heading</h1>
<h2> . . . </h2>
<h3> . . . </h3>
<h4> . . . </h4>
<h5> . . . </h5>
<h6>Smallest Heading</h6>
<p>This is a paragraph.</p>
<br> (break line)
<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> (section quoted from another source)
<cite> (title of a work)
<del> (deleted text)
<ins> (inserted text)
<sub> (subscript text)
<sup> (superscript text)
Links
Regular link: <a href="http://www.example.com/">Link text</a>
Image link: <a href="http://www.example.com/"><img decoding="async" src="URL" alt="replacement text"></a>
Email link: <a href="mailto:[email protected]">Send e-mail</a>
Bookmark:
<a id="tips">Tips section</a>
<a href="#tips">Jump to the tips section</a>
Images
<img decoding="async" loading="lazy" src="URL" alt="replacement text" height="42" width="42">
Styles/Sections
<style type="text/css">
h1 {color:red;}
p {color:blue;}
</style>
<div>Block-level element in the document</div>
<span>Inline element 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>
Tables
<table border="1">
<tr>
<th>Table Header</th>
<th>Table Header</th>
</tr>
<tr>
<td>Table Data</td>
<td>Table Data</td>
</tr>
</table>
Iframe
<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
< equivalent to <
> equivalent to >
© equivalent to ©