free blogs
free blogs


There is a lot to know if you're trying to learn HTML. Beginning HTML encompasses more than just HTML tags. To fully utilize HTML, you need to understand the tags, familiarize yourself with concept and design, learn graphic design, and other technologies like JavaScript and CSS. Below are some of the basic tags with descriptions and examples for reference.

Hyper Text Markup Language (HTML)
HTML is not case sensitive.
The language is used to write Web pages. Based on SGML and recently rewritten to follow XML guidelines.

The following is an example containing standard HTML tags.

The example consists of the head, which contains the title and the body, which consists of paragraphs, lists, subheadings, graphics.
Use styling tags inside the paragraph tags. For example: bold, italic, color text, lists, font size, etc.



The Tags:



The <HTML> tag is always the first tag in your html document. It tells the browser that your file contains html code.
Use closing </HTML> tag at end of document, see above example.


The head tag introduces text that describes an HTML document. Most documents have only a TITLE tag in the head section See above example.


The title tag, which is always located in the HEAD section, defines the title of an HTML document. When a person bookmarks your page, the title will be used as a reference inside their bookmarks/favorites. Search engines will also index the title of your page, therefore the title should be very descriptive.


The body tag introduces the body of the document. It should appear after the head section. The majority of your page content will exist between the body open and close tags. Use closing </BODY> tag at end of document, see above example.


There are six levels of headings, 1 being the largest. The heading 1 tag defines a level 1 heading. The text content between the heading tags will be affected in size.

Sample text for heading h2


The paragraph tag starts a new paragraph. It is equivalent to two BR tags. The </p> tag is optional if the tag is only to insert space between two paragraphs, but necessary when attributes like "center" will be applied to the whole paragraph. The ALIGN attribute can be one of LEFT, RIGHT, or CENTER.


<P ALIGN=CENTER> My Stuff </P>

My Stuff

Unordered list

The unordered list tag introduces an unordered (bulleted) list, which is made up of List Item (LI) tags. The COMPACT attribute instructs the browser to reduce the space occupied by the list. For a numbered list use OL. For a list without bullets or numbers use MENU. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR.


<LI>listed item
<LI>listed item
<LI> listed item

The output for unnumbered lists look like this:

  • List item
  • List item
  • List item

    Ordered or numbered lists.


    <LI>listed item
    <LI> listed item
    <LI> listed item

    The output for an ordered/numbered list look like this:

    1. Listed item
    2. Listed item
    3. Listed item

    A nested list:


    <LI>Orange County Cities
    <LI>Fountain Valley
    <LI>Huntington Beach
    <LI>Costa Mesa
    <LI>Los Angeles County Cities
    <LI>Long Beach

    The output for the above nested list looks like this:

    • Orange County Cities
      • Fountain Valley
      • Huntington Beach
      • Costa Mesa
    • Los Angeles County Cities
      • Hollywood
      • Long Beach
      • Pasadena


    This tag is used to separate quotes from the body of the text.
    For Example:

    <P>F. A. Mignet states that: </P>

    Mary Stuart, during the years 1579 and 1580, was incessantly devising plans for getting her son out of Scotland.

    The result would be:

    F. A. Mignet states that:

    Mary Stuart, during the years 1579 and 1580, was incessantly devising Plans for getting her son out of Scotland.

    Horizontal Rule

    The horizontal rule tag creates a horizontal line across your page or within defined areas, like table cells. You can add the following attributes: Size, width, align, color, noshade.

    <HR align="left" size="1" width="70%" noshade color="#708EA0">


    The line break tag breaks the current line of text. There is no closing </BR> tag.


    This tag is used to not only set the style of the font but can also be used to size and color the font. It can also be used inside other tags, e.g. the header tag.

    Example for changing size of font:

    <FONT SIZE =3>
    The number can be changed up to 7

    Makes the text bold

    Makes the text italic

    You can use these tags in combination for example:


    Result would look like this:



    The emphasized tag is use when you wish to emphasized text. Most browsers simply display it in italics.

    This is underlined

    The subscript tag
    The subscript tag

    The subscript tag displays text in a smaller font than usual, as well as lower than normal.

    The superscript tag
    The superscript tag

    The superscript tag displays text in a smaller font than usual, as well as higher than normal.

    Non Breaking Space

    Use this code when you want a non-breaking space. A non-breaking space is a white-space character that HTML will not condense. It is usually used to hold open table cells and add spacing between words.

    For example:

    &nbsp; &nbsp; When Mary Queen of Scots died her son became King of Scotland and England

    C &nbsp; &nbsp; A &nbsp; &nbsp; S &nbsp; &nbsp; T &nbsp; &nbsp; L &nbsp; E &nbsp;


      When Mary Queen of Scots died her son became King of Scotland and England.

    C A S T L E (Stretched out word)

    Coloring the font:

    <FONT COLOR=red>
    This will change the font to red.
    </FONT COLOR=red>

    Try some of the following:

    <FONT COLOR=black>

    <FONT COLOR=blue>

    <FONT COLOR=fuchsia>

    <FONT COLOR=gray>

    <FONT COLOR=green>

    <FONT COLOR=lime>

    <FONT COLOR=maroon>

    <FONT COLOR=navy>

    <FONT COLOR=olive>

    <FONT COLOR=purple>

    <FONT COLOR=red>

    <FONT COLOR=silver>

    <FONT COLOR=teal>

    <FONT COLOR=white>

    <FONT COLOR=yellow>

    You can also use the Hexidecimal equvilent:

    red FF0000
    green 00FF00
    blue 0000FF
    black 000000
    white FFFFFF
    grey 888888
    yellow FFFF00
    cyan 00FFFF

    Adding background color:

    <BODY BGCOLOR=White>

    This tag will make the background of your document white.

    Try some of these other color tags:

    <BODY BGCOLOR=red>

    <BODY BGCOLOR=navy>

    <BODY BGCOLOR=teal>

    <BODY BGCOLOR=black>

    <BODY BGCOLOR=green>

    <BODY BGCOLOR=fuschia>

    <BODY BGCOLOR=blue>

    <BODY BGCOLOR=maroon>

    <BODY BGCOLOR=yellow>

    <BODY BGCOLOR=lime>

    <BODY BGCOLOR=olive>

    <BODY BGCOLOR=purple>

    <BODY BGCOLOR=silver>

    <BODY BGCOLOR=yellow>

  • Copyright © 2004 - 2005 NeverX All rights reserved.
    Tag board Rules     Privacy policy     Terms of Service