Basic HTML - Heading Tags
Try it out for yourself. Open up the code for your firstwebpage.html file, if it's not already open. (If it's not, you can now right-click and Send To > Notepad. If you didn't get this working then simply click File > Open from the menu at the top of your text editor.)
Add the following just below your first BODY tag:
Once you've added the H1 tags, though, your HTML should look like this:
Exercise
Try the other H numbers to see how they compare. You can only go as far as H6.
Wednesday, 8 July 2015
Basic HTML - Heading Tags
<H1>A Size 1 Heading</H1>
Incidentally, tags are not case sensitive. So you can have this:
<h1>A Size 1 Heading</h1>
Or even this:
<h1>A Size 1 Heading</H1>
But using all capital letters makes your code more readable.
<H3>A Size 3 Heading</H3>
Save the changes. Go back to your browser and press F5 to refresh the page. You should see this:
0 comments:
Post a Comment