HTML Tags Cheat Sheet

This page has the basics. For more advanced topics, see:
Tables
Lists
Slideshows


Here we go!


Bold:

<strong>This text is bold</strong>

This text is bold


Italics (emphasis):

<em>This text is italicized</em>

This text is italicized


Header:

<h1>This text is a header</h1>

This text is a header



Center:

<center>This text is centered</center>

This text is centered



Line Break:

<br>

Drupal removes empty lines, use this tag to force an empty line. You do not have to close this tag after using it.


Indent:

<dd>This text is indented</dd>
This text is indented



External Link:

<a href=http://www.google.com>Google</a>

Google


External Link in a new window:

<a target=_blank href=http://www.google.com>Google</a>

Google


Internal Link by name:

<a href=chs>High School</a>

High School


Internal Link by node number:

<a href=node/6>High School</a>

High School


E-mail link:

<a href=mailto:bill [dot] gates [at] microsoft [dot] com>Send mail to Bill</a>

bill [dot] gates [at] microsoft [dot] com (Send mail to Bill)



Division (used to apply special formatting to a particular section):

<div align="right">
This text is right aligned
</div>
This text is right aligned



Using tags together:

<h1><center>Centered Header Text</center></h1>

Centered Header Text