<b> and <strong>

Justin

Legendary Typer
Joined
Jul 2, 2009
Messages
13,882
Reaction score
1
FP$
106
Sorry if this is a kiddy question in the world of HTML...

but what is the difference between <b> tag and the <strong> tag?
 
It depends on whether you want your code to be "valid" or not, although it is good to do it.
 
It's best to get in a habit of using <strong> because that is the "valid" way of doing it. Really it's the xhtml bold, vs <b> is html bold.
 
I like to stick with <strong> for official websites and coded designs.
 
And it's actually encouraged that you use CSS for most design situations.
 
The replies of this thread viewtopic.php?f=80&t=61840 almost fit into this question, simply replace <br> by <b> and <br /> by <strong> and there you have the answer 😛

Now seriously, <strong> is "more correct", despite having more characters thus being more difficult/slow to write.
 
Carsonk said:
And it's actually encouraged that you use CSS for most design situations.
Yes and not. The use of CSS is primarily for styling, yet the accentuation of a work, ie. the use of <strong> is not necessarily styling, so it's only ever encouraged if the aim is the style.
 
Back
Top Bottom