Hi Tom,
Currently, FrontPage uses font tags and attributes to set fonts and font "styles" inline.
Alternatively, when you select a font and its various charactersitics, a style tag could be added,
or a style set in a style sheet (either internal or external), which would use a CSS style for the
font. Example, using a style sheet and a CSS class called "normal":
.normal
{
font-family: Arial;
color: #000000;
font-weight: normal;
font-size: 10pt;
}
By putting this into a style sheet, any text could have this set of font characteristics assigned
to it, using a span tag:
<span class="normal">This is some normal text.</span>
Or, you could set a default for any paragraph:
p
{
font-family: Arial;
color: #000000;
font-weight: normal;
font-size: 10pt;
}
Anything in a <p> tag would have the style applied:
<p>This is some normal text.</p>
W3C Standards are moving increasingly towards styles rather than attributes, especially with
regards to XHTML (See
http://www.w3.org/TR/xhtml1/). Of course, the XHTML Transitional DTD
includes the font tag, but the Strict DTD does not. This indicates that the font tag is going to
go away, in favor of using all CSS for formatting.
This is a good thing. Over the years, as HTML was not designed for extensibility, the HTML
standard specification has grown increasingly complex and difficult to work with. XHTML is an
"HTML flavor" of XML, which is almost infinitely extensible. One of the nicest things about CSS is
that rather than having an increasing assortment of tags and attributes, only one attribute (the
style attribute) is needed, and the formatting can easily be separated from the content. One of
the greatest things about XML is that it can be easily transformed from any format to any other
format using XSL. Hence, the upcoming XML standard for all Microsoft Office documents.
Yes, it will require a little bit of adjustment in the short run, but the rules for XML are really
quite simple, and in the long run, it will be much easier to work with web pages, transform from
Office format to web format (and back again), and make web pages look the same in any browser.
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition