Hello Ron,
Post by LondonLadHi
Within the CSS I can set various elements for headings like:-
H2 {
color: #191970;
font-family: Comic Sans MS;
font-style: Italic;
font-size: 12pt;
font-weight: bold;
margin-left : 10px;
margin-right: 10px;
}
my question is:- can you write something simular for sub- headings?
I have read that Headings should only be used in <Head> and not in
paragraph's, I did try this but the spacing between the heading and the
next line of text was two large. if yes could you give me a small sample
please
I'm not quite sure what you mean but I don't use "hx" tags (means h1, h2,
h3,..) in the <head> section of my HTML files. Don't know who recommended
this. <title> is used by me inside <head> only.
################ quoted from web #########
To tell the reader what the page is about you could use an <h1> or you could
use pretty much any tag, or you could use any tag with a class or an id that
you've created. So, your choices:
<h1>topic</h1>
<b>topic</b>
<p class="header">topic</p>
The first choice tells you this is a header. You know what it means, you
know where to use it, and where not to, so a year or two down the road, when
you do a redesign and change the formatting of that bit of text at the top
of the page, you just change the h1 CSS.
The second choice uses less characters than the first, and you can use the
CSS to format it the same way you would have formatted the h1. But what does
<b> tell you, semantically? What is this tag being used for? It's the old
tag for bold, but that doesn't mean anything structurally, and even if it
did, it wouldn't have to. You just use it to create a line of text that
looks a certain way. So when you change the CSS later, be sure to remember
that, because it's not going to be self-evident. And if you style the <b>
tag to really look like that header, remember to make it a block-level
element. But that means you won't be able to bold other text on the page
using that tag. No biggie. You'll figure it out.
The third choice is just a waste of code. Why create something when you
don't need to?
#################
I uploaded some example files for using Hx tags with HTMLHelp Workshop some
time ago. Please start from
http://www.help-info.de/en/Help_Info_HTMLHelp/hh.htm
search for "Generating Table of Contents (TOC) with FAR or HTMLHelp
Workshop" or start directly from:
http://www.help-info.de/download/chm_example_files/HH_HTML-Headlines/01_Einleitung.htm
A description of some special features is included and simultaneously HTML
code as an example.
But note - generating TOC by headings is useful only when having large HTML
files in a good semantically order (headings). It's a special time saver ;-)
--
Best regards
Ulrich Kulle
Microsoft MVP - Help
***********************************
http://www.help-info.de
***********************************