HTML Scripting Lesson 1a

January 14, 2004

You must always start every .html file with the <HTML> tag. This tells the browser what type of file it is so it can properly decode the scripts.

The stuff in the <body> is VISIBLE to the User. The stuff in the <head> is invisible.

All the "Meat" (text, images, etc.) is written within the BODY tags.

HTML is NOT case sensitive, but choose upper or lower, don't use both.
XML is case sensitive;


<> angle brackets tell the browser to read the text as script tags.
<> is an opening tag
</> is a closing tag.

Remember that tags must use the < angle brackets >
Most tags must have an opening tag: <B> and a closing tag: </B>

Use break <BR> instead of a return on the keyboard. HTML doesn't recognize returns.

Brackets hold the COMMAND and the Attributes (options) for that command;
You can have many attributes in one TAG. Attributes have specific values

Use <P> to separate paragraphs. The <P> tag creates a space that is relative to the text around it. So if the font is bigger, you will get a bigger space between paragraphs.


<Hn> where n=1 to 6;
1=BIGGEST, 6=smallest

Headers can be more than one line long and will resize with the browser window (like all text). They include a break after the closing tag.

Header size 1 <H1> or Times 24 point

Header size 2 <H2> or Times 18 point

Header size 3 <H3> or Times 14 point

Header size 4 <H4> or Times 12 point

Header size 5 <H5> or Times 10 point
Header size 6 <H6> or Times 8 point

NESTING order is important when coding:

Shakespere's Romeo and Juliet

<H4>Shakespere's <I>Romeo and Juliet</i></h4>

<HR> for Horizontal Rule

<P> for paragraph (will create a vertical space between paragraphs / text)

<BR> for a line break
(use this instead of a carriage return on the keyboard).

On to Horizonal Rules     |     On to Fonts     |     Back to Syllabus