FWIW, font is not really part of HTML (but browsers honor it because, well, there's a lot of pages that use it), but in the future you can use <span style="background: ..."> ... </span>
Pedantically yours,
whump, who should really be asleep... and not critiquing people's markup at five in the morning.
Oh, you are giving me too much credit: I don't know enough about html to have done this myself! I just did it the lazy way and copied from the page source from a similar entry that nmalfoy did, and kept cutting chunks of the code out until it did what I wanted. So I'm not surprised if there's still stuff in there that is extraneous!
Sure, the font tag is HTML! By itself, no, but with attributes it does all kinds of fun stuff. The span tag is just about font styles, which requires more HTML coding.
Yup, sez in all my reference books. Where'd you read that it wasn't?
FONT is not carried forward into the XHTML specification.
FONT is a maintainability nightmare, which is the reason one uses CSS instead. One would no more use FONT to develop a production website any more than you'd write a text editor in FORTRAN. It is the wrong way to manage presentation.
By the way, SPAN is not just about fonts. SPAN is used to identify an inline section of markup for multiple reasons, which may include specifying font face. However it is also used to set 'hooks' for callbacks into the document object model for processing on the client side.
(no subject)
Date: 2004-01-20 05:35 am (UTC)FWIW,
font
is not really part of HTML (but browsers honor it because, well, there's a lot of pages that use it), but in the future you can use <span style="background: ..."> ... </span>Pedantically yours,
whump, who should really be asleep... and not critiquing people's markup at five in the morning.
(no subject)
Date: 2004-01-20 05:50 am (UTC)Cheers,
Peg
(no subject)
Date: 2004-01-20 09:30 am (UTC)(no subject)
Date: 2004-01-21 10:30 pm (UTC)Yup, sez in all my reference books. Where'd you read that it wasn't?
Best,
Chris
(no subject)
Date: 2004-01-21 11:10 pm (UTC)As of HTML 4.01, the FONT element is deprecated.
See: http://www.w3.org/TR/html4/present/graphics.html#edef-FONT.
FONT is not carried forward into the XHTML specification.
FONT is a maintainability nightmare, which is the reason one uses CSS instead. One would no more use FONT to develop a production website any more than you'd write a text editor in FORTRAN. It is the wrong way to manage presentation.
By the way, SPAN is not just about fonts. SPAN is used to identify an inline section of markup for multiple reasons, which may include specifying font face. However it is also used to set 'hooks' for callbacks into the document object model for processing on the client side.
Consult Jeffrey Zeldman's Designing With Web Standards for more on this.
(no subject)
Date: 2004-01-21 11:22 pm (UTC)Best,
Chris
(no subject)
Date: 2004-01-20 02:40 pm (UTC)