1. Home
  2. Computing & Technology
  3. Personal Web Pages

HTML Tags
Basic HTML Tags

By , About.com Guide


<!-...-> - Author comments not seen by the browser.


<HTML>...</HTML> - Always start and end your page using this tag.


<HEAD>...</HEAD> - Header for document.


<BODY>...</BODY> - Body of document.


<TITLE>...</TITLE> - Title of the document.


<H1-H6>...</H1-H6> - Heading sizes.

Example of Heading Sizes:[h1]This is an H1 heading[/h1][h2]This is an H2 heading[/h2]

This is an H3 heading

[h4]This is an H4 heading[/h4][h5]This is an H5 heading[/H5][h6]This is an H6 heading[/h6]


<A>...</A> - Starts a hypertext link.


<ADDRESS>...</ADDRESS> - Information on author.


<BLOCKQUOTE>...</BLOCKQUOTE> - Long quotes.


<PRE>...</PRE> - Preformatted Text.


<FORM>...</FORM> - Form Block.


<TEXTAREA>...</TEXTAREA> - Creates a box to enter text.
Example of "Textarea":
[form][textarea]Write here.[/textarea][/form]


<SELECT>...</SELECT> - Creates a scrolling menu.


<OPTION>...</OPTION> - Creates items to select.
Example of "Select and Option":
[form][select][option]red[/option][option]blue[/option][option]green[/option][/select][/form]


<DIR>...</DIR> - Directory list.
Example of a directory list:
[dir]

  • red
  • blue
  • green[/dir]


    <OL>...</OL> - Ordered list.
    Example of an ordered list:

    1. red
    2. blue
    3. green


    <UL>...</UL> - Unordered list.
    Example of an unordered list:

    • red
    • blue
    • green


    <MENU>...</MENU> - Menu list.


    <DL>...</DL> - Glossary list.
    Example of a glossary list:
    [DL][DT]red[DD]color not blue or green[DT]blue[DD]color not red or green[DT]green[DD]color not blue or red[/DL]


    <CITE>...</CITE> - Citation.


    <CODE>...</CODE> - Code font.


    <DFN>...</DFN> - Defined term.


    <EM>...</EM> - Emphasis.
    Example of emphasis on red:
    [EM]red,[/EM]blue, green


    <I>...</I> - Italic.
    Example of italic:
    red, blue, green


    <KBD>...</KBD> - Keyboard text.


    <SAMP>...</SAMP> - Sample text.


    <STRONG>...</STRONG> - Strong emphasis.
    Example of strong emphasis:
    [strong]red, blue, green[/strong]


    <TT>...</TT> - Typewriter text.
    Example of typewriter text:
    [TT]red, blue, green[/TT]


    <VAR>...</VAR> - Variable.


    <B>...</B> - Bold.


    <BASE> - Location reference for other URL's.


    <NEXTID> - Allows documents to be linked together.


    <META> - Describes document.


    <BR> - Line break.


    <HR> - Horizontal line.


    <IMG> - Image.


    <P> - Paragraph.


    <LI> - List item.


    <DT> - Marks a term in a list.


    <DD> - Marks the definition in the list.

    Build a Basic Web Page

    * Basis for information taken from "HTML For Dummies, 2nd Edition" By Ed Tittel & Steve James.

  • Explore Personal Web Pages
    About.com Special Features

    Holiday Central

    What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

    Family Tech Center

    Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

    1. Home
    2. Computing & Technology
    3. Personal Web Pages
    4. Basic HTML & XHTML
    5. HTML Tags - Basic HTML Tags>

    ©2009 About.com, a part of The New York Times Company.

    All rights reserved.