OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Instead of FONT, what?
This page's ID:
10772
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Part of the reason of removing the font tag and using CSS for style information is so that you can make your markup more descriptive of what it holds. You're saying you want certain text green, big, and bold. Sounds to me like you're describing the type of text that one might place in a <strong> tag. You could certainly use a span tag, but there would be two disadvantages to that: 1. You would have to place the style information in a style="" attribute, which puts your style information in with your markup, which is what removing the <font> tag is supposed to help prevent. This should only be done when absolutely necessary. 2. <span> offers no description of what's inside it -- as you said, it's a "nothing" tag, that does absolutely nothing to its content unless you use styles to tell it to. So you end up with two reasonable solutions: 1. <span class="importantstuff">blah blah blah</span> 2. <strong>blah blah blah</strong> Or you could use some other HTML tag that may suit your purpose. I recommend strong in this particular case, because that's descriptive of the text - you want strong, more noticeable text. While the <span> tag with a class is also descriptive of the text, because of the class' name, it's favorable to use the tag that's already been defined to do what you want done. So, once you've applied the <strong> tags around this text, you can go into your CSS and add strong { font-size:larger; /* this might be supposed to be "bigger" */ color:green; font-weight:bold; } Then you can reuse the <strong> tag anywhere you want that strong type of text.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »