glndi wrote:
Quote:
I'm new to Dreamweaver and have a question regarding css. What's the difference
between selecting a format listing in the Property inspector or a style? When
should I use H1, H2, ect., listed in format as opposed to the title,subtitle,
etc. I set up as a style? |
It sounds like you have defined custom classes "title", "subtitle" and
so on, and are wondering when to use HTML tags like <h1>.
Use the HTML tags that accurately describe the object's structure. So if
it is a highest-level header, use <h1>. If it is a paragraph, use <p>.
Mark up your entire page using HTML tags such that when it is viewed
with no CSS, it is clear to understand structurally because of the
default rendering the various HTML tags provide (if not pretty.)
Then redefine the HTML tags for the visual formatting you want. If you
have special formatting requirements that are purely visual (not
structural) then create a custom class and use that, applied as a
special case to the appropriate HTML tag: <h1 class="mySpecialHeader">.
In your case it may be just a matter of redefining <h1> with your
"title" class attributes, and <h2> with you "subtitle" attributes, and
marking up your content appropriately.
You can do a lot more with CSS than style text. But start by applying
visual formatting to HTML tags, rather than enclosing everything in
custom classes. This will create a structurally-coherent document that
is more likely to be understandable by various non-visual or
reduced-scale web devices that may render your page differently from how
a browser does (like screen readers and picture phones), and give search
engine spiders a better sense of what your page is about.
--
James M. Shook
http://www.jshook.com