<font>

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

<font>

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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;}
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

Oh I see.

So would strong break lines?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

It is an inline tag, so as far as I can see, no. I may be misunderstanding you though.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

No you're not. Inline, I see. Inline doesn't break like block elements to. *hits forehead!*
Post Reply