BASIC HTML TAGS
An HTML document:
< HTML >
< HEAD >
< TITLE > My First web page < /TITLE >
< /HEAD >
< BODY >
< H1 > My First Web Page < /H1 >
< H2 > My First Web Page as a level 2 header < /H2 >
Instructions on Happiness.
Instructions on < A HREF="#Help" > Happiness < /A >.
This is my < B > cute < /B > Web Page. The word cute is in
bold.
< P > My second paragraph is even cuter and it even contains a
< A HREF="a_url_address" > link to another document < /A >
< H2 >
Help
< A NAME="Help" >
This section contains instructions on how to be happy: Go to Bahamas!
< /A >
< /H2 >
< /BODY >
< /HTML >
IMAGES
To embed images use: < IMG SRC="image name" ALT="default text" >
Here is a funny image.
or another image
Here is the same image
or can use images as links:
LISTS
Ordered Lists
< OL > < /OL >
< LI >
Unordered Lists
< UL > < /UL >
Menu Lists
< MENU > < /MENU >
Definition Lists
< DL > < /DL >
< DT > The term to be defined
< DD > The definition of the term
Can you guess the HTML code which created the following list?
Contents:
(A horizontal rule of custom defined width, length and alignment)
Background color
To set the background color you do:
< BODY BGCOLOR= " #rrggbb " TEXT= " #rrggbb "
LINK= " #rrggbb " VLINK= " rrggbb "
ALINK= " rrggbb " > < /BODY >
(rrggbb are degrees of red, green and blue in hexadecimal. For example,
000000 is black, 008000 is green, a6caf0 is light blue etc.
The default color for LINK is blue, VLINK purple)
Can also use an image as a background (tiling of image):
< BODY Background= " sky.gif " > < /BODY >
Sound Files:
Formats
- AU used by suns, suffix .au or .snd
- AIFF used by Apples, suffix .aif or .iff
- WAV used by Windows PCs, suffix .wav
- other, for example Soundblaster .voc files
AU (audio) files the most portable format across platforms.
Can link an audio file with the < A HREF= " file.au " > tag.
Video Files:
Codec= compression/decompresion Algorithm
1 second of uncompressed video is around 30 MB
Video Formats:
- MPEG, suffix .mpg
- Quicktime, suffix .mov (Apples)
- AVI (Microsoft)
MPEG uses a predictive calculation algorithm
for compression which makes editing not possible.
TABLES
< TABLE > < /TABLE >
< TR > ...< /TR >
< TD > ... < /TD > A data cell in a row
< TH > ... < /TH > A header cell (in bold)
< CAPTION > ... > ... < /CAPTION >
My Table
| Good | Bad |
| reading | tv |
N64 |