g
Printer Friendly Version

editor   Elizabeth Connick
BellaOnline's HTML Editor
 

The HTML Format Tags - Heading and Center Tags

There are several HTML tags that control the look and format of your webpage. One example is the bold tag that you read about in an earlier article. Remember that you used the bold <b> tag to make text appear boldface or dark? But maybe you need even more control over the format of your webpages. That’s what we will talk about in this tutorial. As with all HTML tags, in the format tags the element name of each tag is surrounded by angle brackets.

Heading and Center Tags

<h1>The Heading Tags</h1>

At the top of most webpages you will put a heading or title of some kind. To make a heading you will use the heading tag. Most titles or headings are larger and bolder than the rest of the text on the page. You will use the heading tags to designate what text is to be the title or heading and also control the size and importance. The lowest heading (the least important and smallest) is h6. The h1 heading is the most important and largest. As with most HTML tags, there is an opening <h1> and closing </h1> heading tag and the text between the tags is what becomes the heading. You can align the heading to the left, center or right of the webpage with the align attribute (<h1 align="left">).

<h1>Heading 1</h1>

Heading 1

<h2>Heading 2</h2>

Heading 2

<h3>Heading 3</h3>

Heading 3

<h4>Heading 4</h4>

Heading 4

<h5>Heading 5</h5>
Heading 5
<h6>Heading 6</h6>
Heading 6



<center>The Center Tag</center>

Let’s say that you would like to place something in the center of a webpage. You are probably one step ahead of me now and have already figured out that you would place the centered text or image between the opening <center> and closing </center> tags.
<center>Centered Text Or Image</center>

Next →




HTML Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2008 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Elizabeth Connick for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2009 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor