You are on page 1of 1

BRIEF HTML CHEAT SHEET

FORMATTING
<b>BOLD</b> (you may also see <strong>STRONG</strong>)
<i>Italic</i> (you may also see <em>Emphasis</em>)

LAYOUT & SPACING


<p>Paragraph</p>
<br> Line break ("empty," ie non-container tag)
<blockquote>Blockquote</blockquote>
<h1>Header level 1</h1> (biggest) … h2, h3, h4, h5 …
<h6>Header level 6</h6> (smallest)
<hr> ------------------------ Horizontal rule(empty tag)

LINKS
<a href=http://www.whatever.com>Link text</a>
To open in a new window, add target="_blank" Warning: being phased out

IMAGES
<img src="URL or name"> (empty tag)
add height="# of pixels" width="# of pixels" alt="title or name"

LISTS
<ol>
1. this <li>this</li>
2. that <li>that</li>
3. other <li>other</li>
</ol>

<ul>
• this <li>this</li>
• that <li>that</li>
• other <li>other</li>
</ul>

TABLES

<table>
<tr>
<td>1st cell contents</td>
<td>Next column</td>
</tr>
<tr>
<td>1st cell second row</td>
<td>2nd cell second row</td>
</tr>
</table>

All tags must be nested! Wrong: <b><i>Bold and italic</b></i>


Right: <b><i>Bold and italic</i></b>

You might also like