Vital HTML tags to create a page

Although the last page displayed well in a Web browser it is not a proper Web page because it has some structure missing.

Every Web page needs two main sections. It also needs to tell the Web browser that this is definitely an HTML page. Add this before what is already in your page (first.html):

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

Then put this after what you already have:

            
</body>            
</html>                    
        

You should be able to see an opening HTML tag and a closing HTML tag. Everything else is inside those tags. Then there is an opening HEAD tag followed by a closing one. You will put stuff inside that element soon.

Everything you have done so far is now inside the two BODY tags. The BODY is where you put anything which you want to show in the browser.

Your Web page is now a proper Web page. It is still very boring but that will change. You could put this page on the Internet and it would work.

submit to reddit Delicious Tweet