Page 1 of 1

<font>

Posted: Sun Apr 01, 2007 8:47 pm
by JellyFish
Is this tag apart of any standard or is it recommended for use? How do I give a single word boldness without any page breaking?

Posted: Sun Apr 01, 2007 9:22 pm
by Ambush Commander
<font> is a deprecated element and should not be used. It is, however, part of the HTML 4.01 Transitional specification, and can be used without breaking standards-compliance.

To give a single word boldness without page breaking is the wrong question. What kind of semantics are you trying to assign the word? If you're going for emphasis, use <strong>. If you're going for some other meaning, try <span class="something"> with the CSS .something {font-weight:bold;}

Posted: Sun Apr 01, 2007 9:26 pm
by JellyFish
Oh I see.

So would strong break lines?

Posted: Sun Apr 01, 2007 9:28 pm
by Ambush Commander
It is an inline tag, so as far as I can see, no. I may be misunderstanding you though.

Posted: Sun Apr 01, 2007 9:40 pm
by JellyFish
No you're not. Inline, I see. Inline doesn't break like block elements to. *hits forehead!*