![]() |
||||||||||||||||||||||||||||||||||||
| HTML HELP | ||||||||||||||||||||||||||||||||||||
|
More HTML Help Colors Symbols |
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| HEAD TAGS | ||||||||||||||||||||||||||||||||||||
| Head tags include all code between <head> and </head>. Head tags are placed after <HTML> at the top of the page and are not visible when the web page is viewed. Head tags include such tags as <TITLE>, <META>, <STYLE>, and some <SCRIPT> tags. If you are using a stylesheet, you will include a <LINK> tag pointing to the stylesheet's location on the Web. A typical <head> tag might look like this:
<HEAD> |
||||||||||||||||||||||||||||||||||||
| BODY TAG | ||||||||||||||||||||||||||||||||||||
| The Body includes all code between <body> and </body>, which includes the page content displayed by the browser. <BODY> is placed after </HEAD> at the top of the page. </BODY> is placed before </HTML> at the bottom of the page. Neither <body> nor </body> is visible when the web page is viewed. | ||||||||||||||||||||||||||||||||||||
| Typically, the <BODY> tag will include instructions to the browser on what to display for the page's background, links, fonts, and margins. A typical <body> tag might look like this:
<BODY BGCOLOR="#FFFFFF" background="image.gif" link="#0aa0b6" alink="#787878" vlink="#ff7f00" LEFTMARGIN=0 bottommargin=0 rightmargin=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style="font-family:verdana"> |
||||||||||||||||||||||||||||||||||||
| FONTS | ||||||||||||||||||||||||||||||||||||
| <FONT SIZE=2>text size 1 to 8</FONT> <FONT COLOR="Blue">blue text<</FONT> <FONT FACE="arial">arial text</FONT> <FONT FACE="arial" COLOR="blue" SIZE=2>blue arial text</FONT> |
||||||||||||||||||||||||||||||||||||
The <FONT> tag is being phased out. At some point, browsers will no longer support it. Therefore, you should start learning and using <SPAN> and <STYLE> tags. There are many great reference sites on the Web, if you do a search for "learn style tags" and "learn span tags". A site we recommend is htmlgoodies.com for lots of code examples. Below is the correct way to code the preceding font examples: |
||||||||||||||||||||||||||||||||||||
| <span style="font-size:10pt">text size 1pt to 100pt</span> <span style="color:blue">blue text</span> <span style="font-family:arial">arial text</span> <span style="font-size:10pt; color:blue; font-family:arial">blue arial text</span> <span style="font-style:italic">italic text</span> <span style="font-weight:bold">bold text</span> <span style="font-size:12pt; color:#FF0000; font-family:verdana; font-weight:bold; font-style:italic">big red bold italic verdana text</span> |
||||||||||||||||||||||||||||||||||||
| LINKS | ||||||||||||||||||||||||||||||||||||
| To link to another page on the same website, use: <A HREF="some-page.html">Link Text Here</A> To link to a page somewhere on the Web, use: To have your link open in a separate window, use: To create an email link, use: |
||||||||||||||||||||||||||||||||||||
| IMAGES | ||||||||||||||||||||||||||||||||||||
| To display an image that is already displaying on another web site, use: <IMG SRC="http://www.some_site.com/some-image.gif"> To display an image uploaded to your free web space with Site Maker, use: |
||||||||||||||||||||||||||||||||||||
| ALIGNMENT | ||||||||||||||||||||||||||||||||||||
| Vertical Alignment: <td valign=top> - aligns everything to the top inside the column <td valign=bottom> - aligns everything to the bottom inside the column <td valign=middle> - centers everything vertically inside the column |
||||||||||||||||||||||||||||||||||||
| Horizontal Alignment: <td align=left> - aligns everything to the left inside the column <td align=right> - aligns everything to the right inside the column <td align=center> - centers everything horizontally inside the column |