10
2011
Lesson 3 – Creating Your First Page
Let’s get started creating your first HTML page. Open up notepad, or similar text editor, and enter the following text:
<html> <head> <title>Hello World Title</title> </head> <body> Hello World </body> </html>
Create a folder called html on your desktop for easy access. Save the file you just created as myfirstpage.html inside of that folder. Since notepad automatically adds a .txt extension, make sure you add .html after the file name.
Browse to the file where you saved it and open the file. The file should load in your web browser and you should now see Hello World as the only text on the page. Now if you look up to the title bar, above your browser menus, you should see Hello World Title. You should see a page like this one:
Congratulations! You have created your very first web page.
Now to explain what you did. The <html> tags define that start and end of the HTML document.
<html> <head> <title>Hello World Title</title> </head> <body> Hello World </body> </html>
The content within the <head> tags provide additional information such as the page title, style sheets, javascript files, the page description, etc.
<html> <head> <title>Hello World Title</title> </head> <body> Hello World </body> </html>
The <title> tag provides what should show in the browser window’s title bar. The <title> tag is also used when bookmarking the page in your browser.
Just like the body of a document, the content you see on the page is contained within the <body> tags.
<html> <head> <title>Hello World Title</title> </head> <body> Hello World </body> </html>

An article by






