Free Guides

Language Tutorials


           

 

HTML ( Hyper Text Markup Language )

                Index              

Your Ad Here

Creating your first web page

 

Now that you have a vague idea of what tags are, you're ready to learn about the basic tags that make up a basic web page. Are you ready to create your very first web page?

The below lists the complete syntax used in creating a very basic web page, with only the text "Welcome to my first homepage" on it:

 

<html>
<head>
<title>Welcome!</title>
</head>
<body>

Welcome to my first homepage!
</body>
</html>

 

Go ahead. Open up your text editor, type the above, and see what it looks like in your browser. You'll see a blank page with the title "Welcome!" on the title bar, and the simple line of text "Welcome to my first homepage" sitting in the main browser area. The parts in bold are the tags used in this page. Notice their structure and position in the document. Lets now describe their role in a document:

 

<html></html> Specifies that this is an HTML document. All html documents begin and end with this tag.
<head></head> Creates a container for meta information, such as the document's title, keywords and description info for search engine crawling, etc to be added to the document.
<title></title> Creates a "title" for the document. Anything you add inside this tag, the browser displays it in the title bar.
<body></body> Creates a container for the document's content (text, images etc). This is where all the "viewable" content will be inserted.

 

99% of web documents on the web, small or large, simple or complicated, all contain at least the above tags. They make up the framework of any document. Take another look at the definition of the <body> tag- most of the action in html will take place inside it, since the <body> tag contains all of the document's viewable content.