Re: HTML/XHTML and tag attributes
Christopher Benson-Manica <ataru@nospam.c yberspace.org> wrote in
news:bpj6hv$ctt $1@chessie.cirr .com:
[color=blue]
> (if this isn't the place for XHTML, I'd appreciate a redirect)[/color]
This is the appropriate place.
[color=blue]
> And as long as I'm blithering about XHTML, to what extent do you think
> use of the deprecated (HTML 4) and nonstandard (XHTML 1.0) <font> tag
> is acceptable?[/color]
IMHO, to no extent.
[color=blue]
> We're not shooting for strict XHTML compliance here,
> and <font> is a lot easier than XHTML's inline styles...[/color]
Not really. It will *seem* to be easier if you don't yet understand CSS,
but once you understand CSS, <font> will actually seem a lot harder. The
big problem with <font> is that it scatters font-size and font-family
decisions all over your site, whereas CSS lets you put them all in one
place.
You're right that inline styles are awkward, but then they're generally the
worst way to do author-written styling (IMHO, inline styles should be used
only for script-driven dynamic styling). But once you learn how to gather
presentational directives into one (or maybe a few for large sites)
stylesheet(s), you'll wonder how you ever managed to cope with having
styling information distributed all over lots of individual documents.
You'll find yourself doing a lot more styling experiments once you learn
how to change every page in your site by changing a few lines in a single
file, and that will ultimately result in better design because the cost (in
time and effort) of improving your design will be so low.
Christopher Benson-Manica <ataru@nospam.c yberspace.org> wrote in
news:bpj6hv$ctt $1@chessie.cirr .com:
[color=blue]
> (if this isn't the place for XHTML, I'd appreciate a redirect)[/color]
This is the appropriate place.
[color=blue]
> And as long as I'm blithering about XHTML, to what extent do you think
> use of the deprecated (HTML 4) and nonstandard (XHTML 1.0) <font> tag
> is acceptable?[/color]
IMHO, to no extent.
[color=blue]
> We're not shooting for strict XHTML compliance here,
> and <font> is a lot easier than XHTML's inline styles...[/color]
Not really. It will *seem* to be easier if you don't yet understand CSS,
but once you understand CSS, <font> will actually seem a lot harder. The
big problem with <font> is that it scatters font-size and font-family
decisions all over your site, whereas CSS lets you put them all in one
place.
You're right that inline styles are awkward, but then they're generally the
worst way to do author-written styling (IMHO, inline styles should be used
only for script-driven dynamic styling). But once you learn how to gather
presentational directives into one (or maybe a few for large sites)
stylesheet(s), you'll wonder how you ever managed to cope with having
styling information distributed all over lots of individual documents.
You'll find yourself doing a lot more styling experiments once you learn
how to change every page in your site by changing a few lines in a single
file, and that will ultimately result in better design because the cost (in
time and effort) of improving your design will be so low.
Comment