Basic HTML Coding

Document Elements -- These are the tags that set up the sections of a web page, as well as identifying it as a web page.

Base elements:

<html></html> -- defines the page as an html document
<head></head> -- area at the beginning that provides information to the browser, but does not show on the page
<title></title> -- element within heading that shows the title of the page. This is the title that shows on the top of the browser and for bookmark purposes, but does not appear on the page itself.
<body></body> -- defines the actual body of the page


Here's how the basic format for a web page could look:

<html>
<head>

<title>My Web Page</title>

</head>
<body>


Main body of the page, with text, pictures, etc.

</body>
</html>



Elements in the Body Tag:
You can add a lot of style to your document by adding or changing things within the body tag (simply include them in the opening body tag before the ">"

Here are some optional elements: (in all cases, you may pick whatever color you wish).
text="#000000" makes text on the page black
link="#FF0000" makes unvisited links on the page red
vlink="#00FF00" makes previously visited links green
alink="#0000FF" makes links in the process of being clicked blue
bgcolor="#FFFFFF" makes the background color of the page white
background="URL.gif" uses a gif image and tiles it to be the background of the page
Here's how the body tag might look with several elements:
<body bgcolor="#FFFFFF" link="#FF0000" vlink="#00FF00" alink="#0000FF">

Note: There are a number of other tags which can go into the "head" tag (like the "meta" tag) for various functions, but we'll wait for later to discuss those. What you have here is enough to design most pages.

<
WebTricks Main Page


You can reach Pete at:
pete@thelivingcanvas.com