HTML text markup tags

This page presents the basic HTML text markup tags. These tags will suffice for formatting most text documents such as curriculum vitae. You may also wish to consult a shorter list of the most essential tags, or a longer guide to other HTML tags such as image and table tags.

HTML code

Resulting Text

Link tags

<A HREF="relative.html">
a relative link</A>
a relative link
<A
HREF="http://www.lsu.edu/faculty/lray2/html/absolute.html">
an absolute link</A>
an absolute link
<A NAME="name">an anchor</A>
an anchor

Character tags

this is how browsers
treat line breaks
and     spaces   in 
source code
this is how browsers treat line breaks and spaces in source code
<ADDRESS>contact information</ADDRESS>
contact information
<B>bold</B>
bold
<BIG>big</BIG>
big
<BLINK>blink</BLINK>
blink
<MARQUEE>MARQUEE</MARQUEE>
MARQUEE
<CITE>citation</CITE>
citation
<CODE>computer code</CODE>
computer code
<DFN>Defining</DFN> or initial use of term
defining or intial use of term.
<EM>emphasis</EM>
emphasis
<I>italic</I>
italic
<KBD>keyboard entry</KBD>
keyboard entry
<STRIKE>strike out text</STRIKE>
strike out text
<SAMP>sample of text</SAMP>
sample of text
<SMALL>small</SMALL>
small
<STRONG>strong</STRONG>
strong
shift to<SUB>subscript</SUB>
shift tosubscript
shift to<SUP>superscript</SUP>
shift tosuperscript
<TT>teletype</TT>
teletype
<U>underline</U>
underline
<VAR>variable name</VAR>
variable name

Format tags

<BLOCKQUOTE>block quotation</BLOCKQUOTE>
block quotation
forces a <BR>line break
forces a
line break
<DIV ALIGN=LEFT>Section One</DIV>
<DIV ALIGN=CENTER>Section Two</DIV>
<DIV ALIGN=RIGHT>Section Two</DIV>
Section One
Section Two
Section Three
<CENTER>a cheat to center text</CENTER>
a cheat to center text
<HR>

<HR NOSHADE>

<HR WIDTH="50%">

<HR WIDTH="50%" ALIGN="LEFT">

<HR WIDTH="50%" ALIGN="CENTER">

<HR WIDTH="50%" ALIGN="RIGHT">

<HR SIZE="5">

<H1>Header 1</H1>

Header 1

<H2>Header 2</H2>

Header 2

<H3>Header 3</H3>

Header 3

<H4>Header 4</H4>

Header 4

<H5>Header 5</H5>
Header 5
<H6>Header 6</H6>
Header 6
<H5 ALIGN=CENTER>centered heading</H5>
centered heading
<H5 ALIGN=RIGHT>right justified</H5>
right justifed
<P>Paragraph one</P>
<P>Paragraph two</P>

Paragraph one

Paragraph two

<P ALIGN=LEFT>Paragraph one</P>
<P ALIGN=CENTER>Paragraph two</P>
<P ALIGN=RIGHT>Paragraph three</P>

Paragraph one

Paragraph two

Paragraph three

<PRE>
preformatted
       text

honors line breaks and spaces
using fixed width fonts</PRE>
preformatted
       text

honors line breaks and spaces
using fixed width fonts
<DIR>Directory List</DIR>
Directory List

List tags

<UL>
<LI>first list item
<LI>second list item
</UL>
  • first list item
  • second list item
<UL TYPE=SQUARE>
<LI>first list item
<LI>second list item
</UL>
  • first list item
  • second list item
<UL TYPE=CIRCLE>
<LI>first list item
<LI>second list item
</UL>
  • first list item
  • second list item
<OL>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item
<OL START=50>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item
<OL>
<LI>first list item
<LI VALUE=5>second list item
<LI>third list item
</OL>
  1. first list item
  2. second list item
  3. third list item
<OL TYPE=A>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item
<OL TYPE=A>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item
<OL TYPE=I>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item
<OL TYPE=i>
<LI>first list item
<LI>second list item
</OL>
  1. first list item
  2. second list item

Comment tags

<!-- comments are not displayed -->