Text Commands
Explanation of the tags
HTML is structured with opening and closing tags; such as < TAG > Stuff that will be affected by the tag, and < /TAG > Stuff that won't be affected by the tag.
Make sure you do not put spaces inbetween the < and the tag and the > , like I have is this document. i.e. don't do this-> < tag >
The first thing you do
At the start of every document, you must first put < html >
Adding a Title to your document
In the head tags, the title of the page is found, the text between the title tags is found in the title bar of the window. i.e:
< HEAD >
< TITLE >Text Comands < /TITLE >
< /HEAD >
The body tag
The Main Contents of your HTML Document is found between the body tags.
Some tags have paramaters such as the body tag. The tag below will cause all text (TEXT) on the page to be black, and the backround (BGCOLOR) will be white. Links (LINK), which are text which can be clicked on to go to another page are in red. Visited Links (VLINK) will be green. You can also stick a picture in the background by adding this paramater, BACKGROUND="picture.gif".
< BODY BGCOLOR="White" TEXT="Black" LINK="Red" VLINK="Green" >
Note: if you leave the body tag blank of paramaters, the default browser colors are used which are usually a White or Gray Background, Black Text, Blue Links and Purple Visited Links.
Text Size
The size of your text is controlled by headline tags 1 thru 6. < H1 > is the biggest, < H6 > is the smallest.
This is what < H1 >This is my first heading and it's cool!< /H1 > would look like in an HTML document:
This is my first heading and it's cool!
Skipping Lines
A < BR > Tag causes a line skip. A < BR > tag IS NOT needed after several closing tags such as the headline tags < /H1 >i.e.:
Here is some text and < br >
I want this text on a new line
The < P > tag will cause a new paragraph and therefore will skip a few lines, like this < p > now the text has skipped a few lines.
Centering Text
The < CENTER > tag will center the text in the center of the page.
This is centered text
Font Styles (Bold, Underline, and Italics)
The < B > tag causes the text to be bold, the < I > tag causes the text to be Ialic, and the < U > cause the text to be underlined.
< b >This text is bold < i >This text is italic and bold. < /b > This text is only italic< /i >< u >This text is only
underlined< /u > This is just plain text.
The Font Tag
The < FONT > tag can change text even more.
< FONT SIZE=2 FACE="Times new roman" COLOR="Purple" >This is my funky purple text!!!< /FONT > changes the text COLOR to purple, the font FACE to Courier and the SIZE to 2.
This is what It looks like:
This is my funky purple text!!!
Note the < FONT > tag is very different from the headline tags (e.g. < H1 >). The < H2 > tag will not create the same size as < FONT SIZE=2 >. As well there is no automatic line skip after the < FONT > tag like the headline tags.
Closing The Document
These are the tags needed to close and end the document:
< /BODY >
< /HTML >
¬HOME
¬Getting Started --- Links, Images and List Tags ®