
Introduction Requirements HTML Tags HTML Document Structure Viewing HTML Source Code
HTML Document Structure
HTML documents have two main parts, the head and the body. The head of the HTML document contains the web page title and the body contains everything else such as the web page text.
Whatever falls between the title tags will be the title of the document. When the page is viewed it is usually found in the title bar at the top of the screen. The body contains the webpage detail, the content you want to display.
Basic HTML Document Structure
Every HTML document has the following structure:
<html><head><title> This is my first webpage</title></head><body></body></html>This is the simplest web page, it does nothing else other than create a blank webpage with the title "This is my first webpage".
Example
Try it out for yourself!
See what the page will look like. Cut and paste (Ctrl c + Ctrl v ) the HTML code above into the form window below and press the check it out button to see the resulting webpage. Change the title and cut and paste your changes into the form below - can you see the changes you made.
Notice how each
<tag> has a corresponding </tag>. T his basically tells the browser where a tag finishes.Creating your own webpage
If you want to create your own HTML document you need to write the HTML code into a text editor such as notepad. Notepad, can be found under Start > Programs > Accessories.
Follow these simple steps to create your own webpage and to view your created webpage in your browser.