HTML Tutor - Getting Started
The basics cover the tags you need in order for the page "to exist". This doesn't include what goes in the page; it includes only what you need in order for the browser to recognize that it truly is a Web page.
This is the basic tag for every page. It tells the browser that the file being loaded is a HTML document. Look at the basic layout of any Web page to see how it's used.
This defines the head of your page. Incorporates the
This allows you to define the body arguments. They can include:
BACKGROUND="file.gif" sets an image file to be tiled as the backdrop to the page elements.
BGCOLOR="#rgbcode" Sets the background color.
TEXT="#rgbcode" - sets the text color
LINK="#rgbcode" - sets the link color
VLINK="#rgbcode" - sets the visited links color
TOPMARGIN=x - defines the top margin for the body
LEFTMARGIN=x - defines the left margin for the body
RIGHTMARGIN=x - defines the right margin for the body
This allows you to display a title at the top of the browser.
This allows the owner to display certain information to the browser without the page seeing it. Here are some examples:
<META NAME="description" CONTENT="This is my page description.">
Describes your page's contents
<META NAME="keywords" CONTENT="word1, word2, word3, word4
Enters keywords for your page
<META HTTP-EQUIV="refresh" CONTENT="10; url=index2.html">
Reloads the page after 10 seconds to index2.html
This allows you to change the size of letters or words. Includes H1 - H6, H1 being the biggest and H6 being the smallest.
This allows you to display the text in the center of the page.
This formats certain text
as a quote.
This makes the text bigger than the rest.
This makes the text smaller than the rest.
This allows you to make the text look like this.
This gives a superscript effect to your text.
This abbreviates certain text.
This allows you to control different aspects of the text. Includes:
SIZE=x (x = +1 to +5 or -1 to -5)
COLOR=#rgbcode defines the color,
FACE="name" defines the font face
This makes a word or group of words bold.
This is the same as bold.
This italicizes a word or group of words.
This is the same as italics.
This underlines a word or group of words.
This makes a fixed width font.
This indents the left and right-hand sides of the text.
This is another italics tag.
This is another
fixed width font tag.
This allows you to embolden or italicize a word or group of words.
This allows the text to appear in the browser in the same format (layout) as it does in a text editor, such as Notepad, for example.
This is a small fixed-width font tag - somewhat similar to
<PRE></PRE> that spaces everything out.
This defines the list items within a descriptive list.
This defines the topic of the descriptive list.
This defines the indented item to be displayed in the descriptive list.
This is a way to group items into a numbered list. It uses the
<li></li> tags to list the items.
This defines the list items with a number or a dot. Includes the following:
- TYPE="A/a/I/i" for upper or lower case and Roman numerals.
This is another way to list items. Also uses the
<li></li> tags to define the list items with a bullet instead of a number. Includes the following options:
Page Breaks and Lines
This allows you to divide a page with a line. Includes the following options:
WIDTH=x (x = pixels/percentage)
ALIGN=x (x = left/right/center)
NOSHADE takes away the shading.
This allows the text to break without a full paragraph. The options are:
CLEAR="x" (x = left/right/all)
This allows the text to continue indefinitely without breaking.
Tables, Frames, and Forms
These allow you to insert tables. It has the following options:
It also includes the following tags with their associated options:
For more information, see the tables tutorial.
This allows you to set up frames on your page. Includes the following:
ROWS="x" (x = pixels/percentage)
COLS="x" (x = pixels/percentage)
Requires the frame tag to establish content. These include:
SCROLLING="x" (x = yes/no/auto)
Don't forget the
<NOFRAMES> tag for those browsers who can't handle frames.
This establishes content. Its attributes include:
SCROLLING="x" ( x = yes/no/auto)
This allows you to insert forms in your page. It includes the following options:
You can also add checkboxes, text boxes and more. For example:
<INPUT TYPE="text/hidden/checkbox/radio/submit/reset" SIZE="n" MAXLENGTH="x" NAME="name" VALUE="presettext"> <SELECT NAME="name" SIZE="x"> <OPTION VALUE="value1">Value1</OPTION> <TEXTAREA NAME="name" ROWS="x" COLS="x" VALUE="preset text" WRAP="virtual"></TEXTAREA>
Images and Links
This allows you to make certain text or picture a link to another page or graphic not on the page. It can include the following options:
HREF="path/to/a/file" - reference to the linked file
NAME="name" - sets a marker within a document so that a specific section of a page may be linked to via
"#sectionnamehere" with the HREF attribute
This allows you to insert an image into your Web page. It has the following options:
LOWSRC="file.gif" - allows a low resolution image to be displayed while a higher resolution image loads
ALT="text for older browsers"
ALIGN="x" - sets the image alignment on the page (x = left/right/middle /bottom/top/absmiddle/textop/absbottom)
This defines the areas and coordinates of an image map.
This allows you to insert a Java applet directly into your page. It includes:
<HEAD></HEAD> part of the document, but can also appear within the
<!-- text -->
Allows text to appear invisible on the page. This is used if you would like to write comments on the page but not have them load in the browser. For example:
<!-- This section is for beginners -->