| |
| Web Hosting |
|
|
|
| |
Basic Tags |
|
| |
|
|
| |
The following tags are essential to include in any webpage you design. A full example is shown at end of the page and will show you the order of adding these tags.
<!DOCTYPE...>
Appears at the beginning of the document and indicates the HTML version of the document. This is placed on the first line of every web page you design. It also allows validation services to detect the version and do a check on your coding for you. There is a link included in example below for a validation service.
<HTML>
Contains the entire document. Place these tags at the top and bottom of your HTML file. This tag isn't entirely essential, as the <!DOCTYPE> tag identifies that document is HTML but some older browsers don't support the <!DOCTYPE> tag. I suspect most browsers being used by people would support the <!DOCTYPE> tag but it's better to be safe rather than sorry.
<HEAD>
Contains document head information. This is where you assign the title of the page and also any Meta tag information you wish to attach to the document.
<TITLE>
Gives the document an official title. The <TITLE> tags appear inside the <HEAD> tags. A little tip when assigning a title, try and include as many keywords that are related to page. This will help with search engines indexing the page and should help place you higher in the listings.
<BODY>
Acts as a container for the body of the document, it appears after the <HEAD> tag and is followed by the </HEAD> tag. You can also define the colour of your background and text related to information and links here. I suggest using the "class tag" and css stylesheets to assign themes to your pages.
EXAMPLE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <TITLE>Example Title</TITLE> </HEAD> <BODY>
Page content here </BODY> </HTML> |
|
| |
|
|
|