Posted by Beauregard T. Shagnasty on 08/10/05 00:34
Animesh Kumar wrote:
> Consider h1 > h2 > h3 .. in terms of font sizes, can't we just pick
> one which suits our purpose?>
Stop right there!
The <hx> elements are *not* about picking a font size. They are for
marking up relevant *headings* in your page.
<h1>Darkest Africa</h1>
<h2>The Congo</h2>
<p>Deep in the jungles of ... blah blah ...</p>
<h3>Rivers of the Congo</h3>
<p>There are many deep rivers in the Congo ... blah blah</p>
<h2>The Sahara</h2>
<p>Lots of sand and it's hot ... </p>
Like an outline...
A.
1.
a.
B.
1.
2.
a.
b.
C.
> Or Should I choose <h1> and style it at appropriate size? I thought
> <h1> with a size equal to <h2> or an <h2> are identical ---
> provided the page will not use any other h-tag (as is the case).
<hx> are for semantically describing the document, not styling it.
An <h1> on my browser may not be anything like an <h1> on yours, in
terms of appearance.
You can set font sizes in your CSS, maybe:
h1 { font-size: 150%; }
h2 { font-size: 140%; }
--
-bts
-This space intentionally left blank.
[Back to original message]
|