HTML
Sections

Sections in a Page  Sourcecode of "My Page"  This is "My Page"
Sections
The Sections in a HTML-Page listed in the order they should appear in your page:

<HTML>
The first line in a web-page. Your HTML-page have to start with this one. It tells the browser that this is a HTML-page.

<HEAD>
The first section in your page. In the head you can put info about the page such as Title META-descriptions and more.

</HEAD>
"End of header": The header is the first section that any browser will read. That's allso the best place to put Scripts and so on.

<BODY>
This section is where you put your stuff. It usually starts with some info about the page.

</BODY>
"End of body": These to sections makes a page. The BODY is the "main section" in the page.

</HTML>
"End of HTML": This should be plased as the last word in your page. Exeptions to this rule will come later in this page.

The tags abow can allso use attributes.
Here's an example of a tag with attributes and descriptions:

<BODY BGCOLOR="LIGHTGREY" TEXT="BLACK"> Here comes the body.. </BODY>

BODY is a TAG.
BGCOLOR= is an ATTRIBUTE
"LIGHTGREY" is a DESCRIPTION   Remember to use the quotes!!!

Sections in a Page  Sourcecode of "My Page"  This is "My Page"
Example
This is an example of a page. A small HTML-Document should look something like this:

<HTML>
<HEAD>
<TITLE>My Page</TITLE>
</HEAD>

<BODY>
<P>
Here I put all my text, links, images, and my other stuff.<BR>
I just made a LineBreak. Here comes another one:<BR>
This is the section people will see when they visit your page.</P>

<P>Bla, bla, bla, bla, bla!!!!<BR>
TEXT? ..Yes: More text!</P>

<P>Now what? There's still some comments left! <BR>
Guess they will fit best below...</P>

These lines was written by Trond. If you have comments or questions, feel free to mail them to: Trond@trust-me.com
</BODY>

</HTML>

Sections in a Page  Sourcecode of "My Page"  This is "My Page"
Result
The result of this example will be like this:

Here I put all my text, links, images, and my other stuff.
I just made a LineBreak. Here comes another one:
This is the section people will see when they visit your page.

Bla, bla, bla, bla, bla!!!!

Now what? There's still some comments left!
Guess they will fit best below...

These lines was written by Trond. If you have comments or questions, feel free to mail them to: Trond@trust-me.com

Last Updated:     © 1996 2005 {Trond}   
Email