Setting Up Your Page
Even though you now have your page in .htm or .html format the internet will still not be able to recognize codes if the document text is not written using a few html codes.
First you need to tell your page that it is in html coding. To do this you:
Now the document itself will be able to recognize that the codes inside are actually html.
There are a few more codes to add to your page before you can start adding your body text. These codes incule header, title, and body tags.
Between the <title> and </title> you will put the title you want to appear on the page. This title will go on the top bar.
You will use the body area to put all of the codes and text you want to appear on your page.
Top of Page
How to start a new line
The simple action of pressing the "Enter" button does nothing in an HTML script. By typing <br> the script will recognize a line break.
Top of Page
How to start and end paragraphs
<p> is a paragraph code. This would go before every body of text you wish to desognate as a separate paragraph. After each paragraph you would type </p> to end the tag.
Example:
This is paragraph #1
This is paragraph #2
It is similar to adding a double line break.
Paragraph tags do not indent for you. To make a paragraph indented type the following code:
- This text is indented
Top of Page
How to Center Your Text
It is very easy to center text in a webpage document.The code for centering is:
<center>This text is centered</center>
Top of Page
Formatting Text
Changing Font Color
A page with black text and a white background will look boring an unprofessional. By changing of the color of the font you can add style to your page. <font color="COLOR HERE">TEXT</font>
Example:
<font color="red">THIS TEXT IS RED</font>
Font Styles
<i>Italicized</i>
<s> Slashout</s>
<b>Bold</b>
<u>Underline</u>
<sup>SuperScript</sup>
<sub>SubScript</sub>
<tt>Typewriter</tt>
Top of Page
Changing Font Size
Sometimes on webpages you will want to increase the text size for emphasis. This is very easy to do.
<font size="#"> YOUR TEXT HERE </font>
Where the # is you will enter a number from 1-7.
This is font size 1.
This is font size 2.
This is font size 3.
This is font size 4.
This is font size 5.
This is font size 6.
This is font size 7.
Top of Page
Changing Font Face
It can get tricky when changing the font typeface on your website. When visiting a site in order to view someone's font face you must have that same face installed on your computer. Since you don't want to have people download a font face when visiting your page, make sure you use a font face that is very common. Times New Roman, Verdana, Comic Sans MS, and Arial are all common fonts.
<font face="FONT">YOUR TEXT HERE</font>
Example:
<font face="comic sans ms">This is Comic Sans MS</font>
This is Comic Sans MS
Top of Page
Font Background Color
TEXT GOES HERE
Top of Page
Fun Font Codes-These only work on the Internet Explore browser.
Sometimes the basic font formatting tools aren't enough. These codes will help spice up your page with dropshawdow, glowing, or shadowed text!
Enter any color where it says "COLOR."
Where is says "NUMBER" enter a number 1-10.
Enter any color where it says "COLOR."
Where is says "NUMBER" enter a number 1-10.
Enter any color where it says "COLOR."
Where is says "NUMBER" enter a number 1-10.
Wavy Text
Enter any color where it says "COLOR."
Top of Page
Images
Adding Images to Your Site
A site can be somewhat boring if it does not contain images. When working with html you cannot just copy and paste images into your site. You will need an image tag code.
<img scr="IMAGE URL">
Ex:
<img src="star.gif">
Top of Page
Resizing your images
Sometimes the size of your image does not work with your page. It may be too big or too small. By changing the width and size with a html tag, everything will look a lot better.
|
<img src="star.gif" width="60" height="12"> |
|
|
<img src="star.gif" width="120" height="24"> |
|
|
<img src="star.gif" width="240" height="48"> |
|
Top of Page
Backgrounds
Changing Background Colors
A Page with a plain white background can appear to be boring and an eyesore. An easy way to fix this is to add some color and spice things up a little!
<body bgcolor="COLOR">
NOTE: This goes INSIDE your already created <body> tag.
Top of Page
Making a Picture Your Background
Another way to make your background more appealing is to make it an image. Inside your <body> tag add: background="URL OF IMAGE"
This will look like:
<body background="URL OF IMAGE">
Top of Page
Links
Linking Text
Of course you want people to spend as much time on your page is possible, but there is al lot more out there. By linking your page to other pages it will let your guests experience the work of others as well.
There are two steps in setting up a link:
- The URL
- The name as you want it to appear
This is how it will look:
<a href="URL">NAME OF SITE</a>
Top of Page
Linking Pictures
Linking a picture to another page is very simple once you have mastered the linking of text. Instead of using the title of the page, you have to use an image tag.
<a href="URL"><img src="IMAGE URL"></a>
Top of Page
Tables
Creating Tables
Tables are a good way to organize information on your webpage. These are a little more complicated than some of the previous codes you have learned on this page.
To begin your table start with the simple:
See, thats not too terrible, but tables consist of mulitple cells and rows.
The code for a new row is <tr>.
Now, to add cells. <td> is the code to create a new cell.
Time put it all together and see some results!
| This is Row 1, Column 1, Cell 1
|
This is Row 1, Column 2, Cell 2
|
| This is Row 2, Column 1, Cell 3
|
This is Row 2, Column 2, Cell 4
|
Top of Page
Adding Borders
| This is Row 1, Column 1, Cell 1
|
This is Row 1, Column 2, Cell 2
|
| This is Row 2, Column 1, Cell 3
|
This is Row 2, Column 2, Cell 4
|
The above table looks pretty confusing. All of the words and cells are blending together. Tables are supposed to make information more organized. There is a very easy way to fix this minor problem.
In your <table> you will want to add border="NUMBER" so it will look like:
<table border="NUMBER">
BORDER SIZE 1
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 2
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 3
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 4
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 5
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 6
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 7
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
BORDER SIZE 8
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
|
You can always use values bigger than 8 when making a border. However, they may get a little too big after a while.
Here is a 100 size border:
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
Top of Page
Resizing Tables, Cells, and Rows
<table height ="NUMBER" width="NUMBER">
Here is a table with a width of 200 and height of 100:
You can also use % in your values. If you set the width to width="50%" it will take up exactly 1/2 of the page.
Top of Page
Adding Color to Tables
You can add color to your table the exact same way you added color to your background.
<table bgcolor="green">
| Cell 1
|
Cell 2
|
| Cell 3
|
Cell 4
|
Top of Page
Misc. Codes
Color Codes
| EEEEEE |
DDDDDD |
CCCCCC |
BBBBBB |
AAAAAA |
999999 |
888888 |
777777 |
666666 |
555555 |
444444 |
333333 |
| 000000 |
000033 |
000066 |
000099 |
0000CC |
0000FF |
330000 |
330033 |
330066 |
330099 |
3300CC |
3300FF |
| 660000 |
660033 |
660066 |
660099 |
6600CC |
6600FF |
990000 |
990033 |
990066 |
990099 |
9900CC |
9900FF |
| CC0000 |
CC0033 |
CC0066 |
CC0099 |
CC00CC |
CC00FF |
FF0000 |
FF0033 |
FF0066 |
FF0099 |
FF00CC |
FF00FF |
| 003300 |
003333 |
003366 |
003399 |
0033CC |
0033FF |
333300 |
333333 |
333366 |
333399 |
3333CC |
3333FF |
| 663300 |
663333 |
663366 |
663399 |
6633CC |
6633FF |
993300 |
993333 |
993366 |
993399 |
9933CC |
9933FF |
| CC3300 |
CC3333 |
CC3366 |
CC3399 |
CC33CC |
CC33FF |
FF3300 |
FF3333 |
FF3366 |
FF3399 |
FF33CC |
FF33FF |
| 006600 |
006633 |
006666 |
006699 |
0066CC |
0066FF |
336600 |
336633 |
336666 |
336699 |
3366CC |
3366FF |
| 666600 |
666633 |
666666 |
666699 |
6666CC |
6666FF |
996600 |
996633 |
996666 |
996699 |
9966CC |
9966FF |
| CC6600 |
CC6633 |
CC6666 |
CC6699 |
CC66CC |
CC66FF |
FF6600 |
FF6633 |
FF6666 |
FF6699 |
FF66CC |
FF66FF |
| 009900 |
009933 |
009966 |
009999 |
0099CC |
0099FF |
339900 |
339933 |
339966 |
339999 |
3399CC |
3399FF |
| 669900 |
669933 |
669966 |
669999 |
6699CC |
6699FF |
999900 |
999933 |
999966 |
999999 |
9999CC |
9999FF |
| CC9900 |
CC9933 |
CC9966 |
CC9999 |
CC99CC |
CC99FF |
FF9900 |
FF9933 |
FF9966 |
FF9999 |
FF99CC |
FF99FF |
| 00CC00 |
00CC33 |
00CC66 |
00CC99 |
00CCCC |
00CCFF |
33CC00 |
33CC33 |
33CC66 |
33CC99 |
33CCCC |
33CCFF |
| 66CC00 |
66CC33 |
66CC66 |
66CC99 |
66CCCC |
66CCFF |
99CC00 |
99CC33 |
99CC66 |
99CC99 |
99CCCC |
99CCFF |
| CCCC00 |
CCCC33 |
CCCC66 |
CCCC99 |
CCCCCC |
CCCCFF |
FFCC00 |
FFCC33 |
FFCC66 |
FFCC99 |
FFCCCC |
FFCCFF |
| 00FF00 |
00FF33 |
00FF66 |
00FF99 |
00FFCC |
00FFFF |
33FF00 |
33FF33 |
33FF66 |
33FF99 |
33FFCC |
33FFFF |
| 66FF00 |
66FF33 |
66FF66 |
66FF99 |
66FFCC |
66FFFF |
99FF00 |
99FF33 |
99FF66 |
99FF99 |
99FFCC |
99FFFF |
| CCFF00 |
CCFF33 |
CCFF66 |
CCFF99 |
CCFFCC |
CCFFFF |
FFFF00 |
FFFF33 |
FFFF66 |
FFFF99 |
FFFFCC |
FFFFFF |
Top of Page