Monday, May 14, 2007

HTML - Tags

Everthing you see in this page consists of tags. The title of the page , the texts you are reading. Now lets go deeper in tags.

This is basic html code:

<html>
<head>
<title> </title>
</head>
<body>
</body>
</html>


First of all as you noticed every tag (items in <> ) is been written twice. They opened and closed.
<html> </html>

First tag is the opening tag and the second tag is the closing tag. Notice how the / is used.

Ok. Now lets explain what the each tag means.

<html> tag tell the system that this file is a html file. After system reads this line it runs this file using a HTML reader.

<head> This part does the dirty work. It job is to run some commands that user will not see. Such as telling search engines about what the page is about. You will also place your meta tags, css code , javascript code in here. Do not worry for those now. They were just to give you ideas about the usage of head tag.

<title> This tag places a text on top of the explorer. It is usually the topic of your choice for the pages you create. For this page of mine i choose th title as HTML - TUTORIAL. You can create different topics for your every single page.

<body> This part of the html is where you place your code to be shown to visitor. Unlike <head> you place everything that you want it to appear in your webpage. Such as pictures, texts , forms , movies.....

No comments: