Your first page!
Easy. All you need are the essential tags
for any html document. In order for a browser to display your script correctly you must use these :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Final//EN">
Type what you want to say here
Easy. The very 1st tag, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Final//EN"> tells the browser which version of html your page has been written in. It does not have a closing tag. The <HTML> tags are placed at the very top and very bottom of your script. They tell the browser that what is coming is an html document. Both <DOCTYPE> and <HTML> tags are not necessary in the major browsers but you should use them to ensure your page is correctly recognized regardless of which browser is used. The <HEAD> tags are where you place information that will not be displayed in the browsers window. Nearly everything else, including the wisdom you wish to share with the rest of the world is placed between the opening and closing <BODY> tags. A <BODY> tag has some very useful attributes. For example you could use :
- bgcolor="color" to set the background color of your home page.
- background="image.gif" to set an image as your background.
- link="color" to set color of links.
- alink="color" to set color of active link.
- vlink="color" to set color of a visited link.
- text="color" to set the text color for the whole page.
<BODY bgcolor="white" background="../images/image4.gif" link="red">
Use the <TITLE> tags
to give your page a name that will be displayed in the title bar of your browser. The blue bar at the very top of the window. Yep that's the one. This tag
must be placed between the <HEAD>
tags like this :
<TITLE> Scripts and Tutorials </TITLE>
Now if all you wanted to do was to write a few paragraphs for the world to read , you would stop learning here and start writing your enthralling thesis on which ever subject takes your fancy. Otherwise, to delve into the rest of the basic but exciting options html has to offer, move on to Chapter two.