 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
|
|
|
|
Basic HTML Codes |
|
|
|
colors |
|
|
|
colors, backgrounds and some other features are controled by the <BODY> tag. you can control the color of the background, text and links on your web page by using the <BODY> tag. To control the various colors on your web page the <BODY tag is written like this <BODY BGCOLOR="#xxxxxx" text="#xxxxxx link="#xxxxxx" vlink="#xxxxxx" alink="#xxxxxx">
You may include any of the items (bgcolor, text, vlink, alink) or leave any of them out. To set the color of the background, text, link, visited link, or active link substitute a color value in the sample above. TIP : remember not to make them all the same color or you won't be able to see anything on your web page!!
Here are a few colors you can use: |
|
|
|
|
|
Background Images
|
|
|
|
To add background imaged instead of background colors, you need to use the attribute BACKGROUND in the BODY tag instead of BGCOLOR. For example, if you wanted to use the image named "bg.gif" for your background the tag would look something like this: |
|
|
|
|
|
|
|
NOTE: the image must be in your directory in the example above. If it is in another location you will have to give the entire path in order for it to work successfelly |
|
|
|
Horizontal Lines |
|
|
|
You can insert a horizontal line in your document by inserting a <HR> tag. Enhancements to the tag, which are reognized by most browsers, allows more control of the apperance of the line. By adding SIZE=NUMBER, the thickness of the line can be controled. The alignment can be controled by adding ALIGN=LEFT/RIGHT/CENTER. The width of the line can be adjusted by adding WIDTH=PERCENT. A black line can be created by adding NOSHADE |
|
|
|
|
|
|
|
Placing Grapic Images On Your Page |
|
|
|
You can place graphic images on you page, if the graphic exist as a separate file on another server on the net. the file format must be readable by the browser. I suggest GIG or JPG. Your page shouldn't depend on the graphics, since the browsers are text only and will not display the graphic. In it's simpliest form the tag to cause the graphic to be placed on this page look like this: |
|
|
|
|
|
|
|
This tag will cause the file named "right.gif", which is in the same directory you are reading (index.html) to be displayed in the position that it would appear if it were text like this: |
|
|
|
 |
|
|
|
you can control the position of the image. The most basic way is to treat it like a text. For example, surroundng the image tag with center tags gives it this |
|
|
|
 |
|
|
|
And that pretty much wraps up the most important things about html codes |
|
|
|
HOME |
|