Lumio Posted May 8, 2007 Share Posted May 8, 2007 Hey! What is better: <b>text</b> (only html-tags) or <span style="font-weight:bold">text</span> (stylesheet) thanks! Quote Link to comment Share on other sites More sharing options...
Karl33to Posted May 8, 2007 Share Posted May 8, 2007 <b>text</b> the first one's better because it separates the presentation from the content Quote Link to comment Share on other sites More sharing options...
Lumio Posted May 8, 2007 Author Share Posted May 8, 2007 I heard <strong> is better than <b> Quote Link to comment Share on other sites More sharing options...
Karl33to Posted May 8, 2007 Share Posted May 8, 2007 <strong> wasn't an option anyways, from what i understand, <b> is used more for presentation, whereas <strong> has meaning for audio browsers etc, and it just happens that most broswers show <strong> with a bold font although it isn't a requirement Quote Link to comment Share on other sites More sharing options...
Lumio Posted May 8, 2007 Author Share Posted May 8, 2007 Thanks! Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 8, 2007 Share Posted May 8, 2007 <b>text</b> the first one's better because it separates the presentation from the content The whole idea of separating presentation from content would NOT require the use of <b> as that would mean you are placing presentational tag in the content. Screen readers also react differently so to answer the original post <span class="bold"> is the better option as you can do much more with it from a style sheet - which includea altering emphasis in a style shet for speech.... Quote Link to comment Share on other sites More sharing options...
Lumio Posted May 8, 2007 Author Share Posted May 8, 2007 No, <strong> and <.b> are better because <span> is not accepted of every browser. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 8, 2007 Share Posted May 8, 2007 If you say so buddy.... BUT just for your info this is what w3schools say about both strong and b... The following elements are all font style elements. They are not deprecated, but it is possible to achieve richer effects using style sheets. Now as you can do some work on aural style sheets to control the speech synthesis of words I will stand by my original post..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.