Adding Headers and Paragraphs to our Webpage
Adding Headers and Paragraphs to our Webpage - Next we will add headers and paragraphs to our webpage. Headers and paragraphs will help break your page into logical sections.
Step 1: Open Your HTML Template
As before Open your HTML template by going to :
C:\my_web
Right click on the index.htmlfile and double click it. You can also right mouse click and "open with > notepad". Either way...you can open the file.
Step 2: Add Main Headers
Once again, locate the <body></body> tags.
In between the <body></body> tags, type
<h1>My Header</h1>
So the whole thing will look like ...
<body>
<h1>First Header</h1>
</body>
Step 3: Add Paragraph
Now, format your paragraph like this, It will be directly after the header tags you just created:
<body>
<h1>First Header</h1>
<p>Here is some text for my first parargraph</p>
<h1>Second Header</h1>
<p>Here is some text for my second parargraph</p>
</body>
You can add as many main headers and paragraphs as you need. Make sure all your content is in between the <p></p> tags!
Header and Paragraph - HTML Example Code
Here's the whole code...you can overwrite your index.html page with this:
View this example: paragraph and header example
NEXT: Sub headers
Review the web building process: build web site free