HTML BASICS

The Browser allows you to view documents that sit on different servers all over the worlds. When you type a URL you are actually typing the location of the document you wish to see. To create a page you simply do the following create a document using HTML and then upload that page to a server so that everyone can see it.

WHAT IS HTML?

HTML stand for Hyper Text Markup Language. It is basically a way for all computers to understand each other. You can use just about any style or type you are use to using with a word processor, you just need to know the correct tag. Once you know the tag you just need to turn it on AND off. for example " is simply the command in carrots, to is the command repeated but with a slash right after the first carrot. Be careful not turning off a command means the change will effect everything else after the last turnon. There are a lot of Web Applications that will make these tag for you but I will be using and showing BBEDIT which you can download for free at http: or you can use a text editor like Word Pad or Microsoft Word. It really doesn't matter as long as you save the document as TEXT ONLY and use the .htm exstention.

PAGE IMPERATIVES.

As a bare minimum a page must have the following:

<html> <head> <title>A Sample Page</title> </head> <body> This is where the main body of the page goes. </body> </html>

Remember you can get this "behind the scenes" of any page by going to the View source on your browser.

Specific Tags and How They Work

All HTML documents begin with an <HTML> tag and close with a </HTML> tag.

The <HEAD></HEAD> portion of the document sets off information that isn't displayed on the Web page itself but establishes information about the page or sends information to the server.

The <BODY></BODY> establishes the visible portion of the document.


Basic Header Tags

The <TITLE></TITLE> tags put the name of the document in the title bar. You want to be sure your that you use a meaningful name as this will be the title of the page if it is bookmarked.

Basic Text Formatting

Text can be formatted in a variety of ways. It can be BOLDED, UNDERLINED or ITALICIZED. Be careful when underlining text. Underline generally signifies a hyperlink. The STRONG and EMPHASIS tags serve as alternatives to BOLD and ITALIC You can also use STRIKE-THROUGH and TELETYPE.

Text can be formatted in a variety of ways. It can be <B>BOLDED</B>, <U>UNDERLINED</U> or <I>ITALICIZED</I>. Be careful when underlining text. Underline generally signifies a hyperlink. The <STRONG>STRONG</STRONG> and <EM>EMPHASIS</EM> tags serve as alternatives to BOLD and ITALIC You can also use <STRIKE>STRIKE-THROUGH</STRIKE> and <TT>TELETYPE</TT>. The PRE tag allows you to create pre-formatted text. For example:

This text will be pre-formatted
      and will
          appear exactly
              as I entered it.

The above text looks like this:

<PRE> This text will be pre-formatted and will appear exactly as I entered it. </PRE>


Basic Line Breaks

Text can be broken in a variety of ways. We can use both Line and Paragraph Breaks to force text to end and begin on a new line.

Line Breaks

This is a line. We insert a <BR> and our text begins on a new line.

Paragraph Breaks

This is a line. We insert a <P> and our text skips a line and begins on a new line. As well, the paragraph tag can contain an "align" attribute which controls the alignment of the proceeding text.
For example:

This is a paragraph break that forces our text to be aligned to the left.

This is a paragraph break that forces our text to be aligned to the center.

This is a paragraph break that forces our text to be aligned to the right.

The above text looks like this:

<P ALIGN="LEFT">This is a paragraph break that forces our text to be aligned to the left.</P> <P ALIGN="CENTER">This is a paragraph break that forces our text to be aligned to the center.</P> <P ALIGN="RIGHT">This is a paragraph break that forces our text to be aligned to the right.</P>

This basically replaces the older <CENTER> tag.

Heading Tags

There are 6 basic "Headings".

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
These can also include alignment attributes. For example:

Heading 1 with a right alignment

Heading 2 with a justified alignment

The above text looks like this:

<H1>Heading 1</H1> <H2>Heading 2</H2> <H3>Heading 3</H3> <H4>Heading 4</H4> <H5>Heading 5</H5> <H6>Heading 6</H6> These can also include alignment attributes. For example: <H1 ALIGN="right">Heading 1 with a right alignment</H1> <H2 ALIGN="justify">Heading 2 with a justified alignment</H2>


Font Tags

You can modify text through use of the Font tag. For instance, you can change the Font Face or increase or decrease the font size.

Font Size 1
Font Size 2
Font Size 3
Font Size 4
Font Size 5
Font Size 6
Font Size 7

Font Size="-2"
Font Size="-1"
Font Size="+1"
Font Size="+2"
Font Size="+3"
Font Size="+4"

Big Tag
Small Tag

The above text looks like this:

<FONT SIZE="1">Font Size 1</FONT><BR> <FONT SIZE="2">Font Size 2</FONT><BR> <FONT SIZE="3">Font Size 3</FONT><BR> <FONT SIZE="4">Font Size 4</FONT><BR> <FONT SIZE="5">Font Size 5</FONT><BR> <FONT SIZE="6">Font Size 6</FONT><BR> <FONT SIZE="7">Font Size 7</FONT> <P> <FONT SIZE="-2">Font Size="-2"</FONT><BR> <FONT SIZE="-1">Font Size="-1"</FONT><BR> <FONT SIZE="+1">Font Size="+1"</FONT><BR> <FONT SIZE="+2">Font Size="+2"</FONT><BR> <FONT SIZE="+3">Font Size="+3"</FONT><BR> <FONT SIZE="+4">Font Size="+4"</FONT> <P> <BIG>Big Tag</BIG><BR> <SMALL>Small Tag</SMALL>

Horizontal Rules

A Horizontal Rule can be inserted through the HR Tag. This tag also has modifiers (SIZE and WIDTH) that control the height and width. You can also use an ALIGN tag to control the horizontal alignment.




The above rules look like this:

<HR> <HR WIDTH="50%" ALIGN="LEFT" SIZE="4"> <HR WIDTH="500" ALIGN="RIGHT" SIZE="10">

COLOR

In the next class we will look at a more complicated way of using color on the Web using hexadecimal. However you can also use color very simply by using tags and color names. For example, simple words such as "red" to modify the color a background or text. For example RED, GREEN, YELLOW, BLUE, ORANGE, GRAY.

The above looks like this:

For example <FONT COLOR="red">RED</FONT>, <FONT COLOR="green">GREEN</FONT>, <FONT COLOR="yellow">YELLOW</FONT>, <FONT COLOR="BLUE">BLUE</FONT>, <FONT COLOR="orange">ORANGE</FONT>, <FONT COLOR="gray">GRAY</FONT>.

Although it is not necessary to memorize these tags it is important to get familiar with them. Check out Willcam's Tag Index which is an easy to use, very comprehensive resource for all you