|
If you are just starting to create web pages, this is the place for you. Here we cover all of the basic tags, and what they do. Then we show you how to put it all together.
Some of these tags have attributes, which can be seen in the Quick Reference Guide. |
| Basic Tags | |
| Tag | Explanation |
| <HTML> </HTML> | This tag goes at the very top of each HTML document. |
| <HEAD> </HEAD> | This tag comes next. JavaScripts are put between the HEAD tags. |
| <TITLE> </TITLE> | The title goes inside the <HEAD> and </HEAD> tags. You give your document a name here, and it is shown at the very upper left corner of the browser window. |
| <BODY> </BODY> | Here you put the pages background color or the background image's URL, the font face and color, as well as the colors for links, visited links, and active links. These colors can be the same, or different. |
| <P> | This tag is used to start a new paragraph. |
| <BR> | This command will start a new line, with a smaller space than that of a P. No closing tag is needed. |
| <HR> | This will make a horizontal rule on the page. Again, no closing tag is needed. |
| <B> </B> | This tag makes text bold. |
| <I> </I> | This one makes text italicized. |
| <U> </U> | This will make underlined text. |
| <S> </S> | Use this for for text with a strike-through. |
| <BIG> </BIG> | Makes text 1 size larger. |
| <SMALL> </SMALL> | Makes text 1 size smaller. |
| <FONT> </FONT> | Changes font size, face, and color. |
| <IMG SRC="?"> | Adds images to pages, no closing tag. |
|
Sample Page
The code:
The results: |
| Links |
| In order to allow visitors to your site to move between pages easily you need to include links. Learn how here. |
| There are two ways to link, to a different page, and to a different spot within the current page. To link to a different page you use this code:
<A HREF="http://www.yahoo.com>Yahoo!</A>
The other type of link will take you to a spot within a page. These are more complicated, becuase they have two parts to them. First off you put this where you want the link to be at:
This is how they work: You may also want to add e-mail links to your pages. To do this you also use the A tag. An example:
<A HREF="mailto:pr0teus@juno.com">Creator</a> |
|
Usage of Basic Visual Tags
<P>
Text, text, text, text, text, text, text, text, text, text, text. Text, text, text, text, text, text, text, text, text, text, text. Text, text, text, text, text, text, text, text, text, text, text.
<BR>
Text, text, text, text, text, text, text, text, text, text, text.
Text, text, text, text, text, text, text, text, text, text, text.
<HR>
width="X" Note: You can use a percent or a set number of pixels.
<HR> A basic horizontal rule. <hr noshade> A rule with no shadow.
Horizontal rules with the following attributes, in order: <hr size="1" width="40%"> <hr size="2" width="50%"> <hr size="3" width="60%"> <hr size="4" width="70%"> <hr size="5" width="80%"> <hr size="6" width="90%"> <hr size="7" width="100%"> Note: The HR's above are in a table, so they span the correct percent of the table, if you do not have your HR's in a table, they will span the correct percent of the users monitor. <hr color="#ff0000"> A rule colored red.
The code for the above HR's, in order: <hr width="25%" align="left"> <hr width="25%" align="center"> <hr width="25%" align="right"> <hr width="35%" size="5" color="#0B5EB0" align="right"> A rule with all attributes applied.
Text, text, <B>text, text,</B> text, text. Which does this: Text, text, text, text, text, text.
<I> </I> Text, text, <I>text, text,</I> text, text. Which produces this: Text, text, text, text, text, text.
<U> </U> Text, text, <U>text, text,</U> text, text. Which makes this: Text, text, text, text, text, text.
<S> </S> Text, text, <S>text, text,</S> text, text. Which does this:
Text, text,
<BIG> </BIG> Text, text, <BIG>text, text,</BIG> text, text. Makes this: Text, text, text, text, text, text.
<SMALL> </SMALL> Text, text, <SMALL>text, text,</SMALL> text, text. Does this: Text, text, text, text, text, text. Note: The BIG and SMALL tags are communitive, several of either of these tags will makes the text an equal amount smaller or larger. |
| <FONT SIZE=1-7>
1. 2. 3. 4. 5. 6. 7.
<FONT COLOR=RRGGBB>
<FONT FACE="arial, helvetica">Arial or Helvetica.</FONT> To add images to your pages you use the IMG tag. There is no closing tag. It will look like this:
<IMG SRC="logo1.gif"> You can have an image be a link to a seperate page by first putting the link tag, and then the image, instead of text. That will look like this:
<A HREF="index.html"><IMG SRC="logo1.gif"></A> When you use an image as a link a border will appear around it. The border's color depends on the colors that you chose for LINK, ALINK, and VLINK, as well as if the user has visited that page yet. You can change the border size to whatever you'd like by adding BORDER=X.
<A HREF="index.html"><IMG SRC="logo1.gif" BORDER=10></A> If you set the border to 0 then there will be no border. |
| You have now finished the Beginner's Guide. If you went through the whole thing you can now create a basic page that has images, links, horizontal rules, different size text, color and font face changes, as well as many other things. If you want to learn about the more complicated aspects of HTML we suggest you take a look at the other tutorials. |