|
Creating your first page |
|
Basic structure of HTML |
| <html> |
| <head> |
| <title> |
| Title of the page |
| </title> |
| </head> |
| <body> |
| . |
| . |
| Content of the page |
| . |
| . |
| </body> |
| </html> |
|
| The basic HTML page begins with the <html> tag and ends with </html>. In between, the file has two sections - the header and the body. |
| Within the <head> tags, we have the title - "Title of the page" - which will appear in the bar across the top of your browser.
|
|
| Comment tag |
| The comment tag <!--> is used to insert comments in the HTML source which will be ignored by the browser. |
| Here is an example: |
| <!--This will not be displayed--> |
|
|
| Step-by-step |
|
|
1. Type or copy the above text into notepad
2. Type your own title between <title> and </title>
3. Type anything else you like between <body> and </body>
4. Save it as index.htm (not index.txt) |
| The last thing you need to do is to open the index.htm using a browser. |
|