Basics of HTML
This page is simply a list of commonly used tags with a few examples.
Headings and Titles
- <TITLE>...</TITLE>-Indicates title of document.
- <H1>...</H1>-A first-level heading (the biggest)
- <H2>...</H2>-A second-level heading
- <H3>...</H3>-A third-level heading
- <H4>...</H4>-A fourth-level heading
- <H5>...</H5>-A fifth-level heading
- <H6>...</H6>-A sixth-level heading (the smallest)
Example
<H2>JOHN'S HOMEPAGE</H2>
Links and Images
- <A>..</A>-With HREF attribute, creates a link to another document or anchor; with the NAME attribute, creates an anchor which can be linked to.
- <IMG>...</IMG>-Inserts an inline image into the document.
Examples
<IMG SRC="http://www.oswego.edu/~jdoe/john.jpg">
<A HREF="http://www.oswego.edu/~jdoe/csc241.html">CSC241</A>
Character Formatting
- <I>...</I>-italics
- <B>...</B>-bold face
- <TT>...</TT>-typewriter font
Lists
- <OL>...</OL>-an ordered (numbered) list
- <UL>...</UL>-an unordered (bulleted) list
- <LI>...</LI>-a list item for use with <OL> or <UL>
Examples
<H2>My Favorite Bands<H2>
<UL>
<LI>Nirvana
<LI>Pearl Jam
<LI>Foo Fighters
<LI>Stone Temple Pilots
</UL>
<H2>My Favorite Bands In Order<H2>
<OL>
<LI>Nirvana
<LI>Pearl Jam
<LI>Foo Fighters
<LI>Stone Temple Pilots
</OL>
Other Elements
- <HR>-horizontal rule.
- <BR>-line break