Create Your Own Free Web Page Header Tag
Create your own page and paragraph headings using the Header Tag.
The header tag comes in six default sizes. The largest is one. The smallest is six.
The code for the largest header tag is: <h1></h1>
Notice there are actually 2 tags. Most HTML tags come in pairs. There is an opening tag and a closing tag. The closing tag always includes a forward slash.
The basic code from the previous lesson with changes, is shown below.
Change the code in firstpage.html as shown:
<html>
<head></head>
<body>
<h1>Hello World</h1>
</body>
</html>
This code can be saved as a web page and would produce the words Hello World in large letters on the computer screen.
If you'd like to try it:
- Copy the text to NotePad
- Hold down your left mouse button and drag it over the code to highlight it.
- Right Click on the highlighted code and Click Copy
- Open NotePad and Right Click inside the editor window.
- Click Paste
- Save the Page
- Click File - SaveAS
- Save the page as firstpage.html (Remember where you save it!!)
- If working these lessons in succession, you'll need to answer yes to overwrite the file.
- Look at the page with a browser
- On any browser (Even AOL) Click File
- Click Open
- Navigate to the folder where you saved firstpage.html
- Click on the filename firstpage.html to highlight it
- Click Open
The words Hello World should appear in the browser window. If you are doing the lessons in succession, you may need to Refresh your browser to see the change.
Note: If all you see is code, you saved the page with a txt extension. The .html extension is critical.
createasite.net
Po Box 1508
Somerset KY 42502
Contact Us
Last Modified: May 16, 2008
|