Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Justin Benton4,765 Points
Random Question about Bold Text in HTML...
Just finished the HTML track and had a question RE: setting text to bold. Why is <strong></strong> preferred over <b></b> for making text bold? Has the Strong tag replaced the b (for bold) tag? Are they interchangeable or would you use one over another in certain instances? Just curious. Thx!
Cindy LeaCourses Plus Student 6,497 Points
I did some research on this and found some different opinions. Here are two that I found intersting:
On Mozilla Developer's Network:
It is often confusing to new developers why there are so many ways to express the same thing on a rendered website. Bold and Strong are perhaps one of the most common. Why use <strong></strong> vs <b></b>? You have to type a whole lot more with strong and it produces the exact same result, right?
Perhaps not; strong is a logical state, and bold is a physical state. Logical states separate presentation from the content, and by doing so allow for it to be expressed in many different ways. Perhaps instead of rendering some text as bold you want to render it red, or a different size, or underlined, or whatever. It makes more sense to change the presentational properties of strong than it does bold. This is because bold is a physical state; there is no separation of presentation and content, and making bold do anything other than bold text would be confusing and illogical.
It is important to note that <b></b> does have other uses, when one wants to draw attention without increasing importance.
html-5-tutorial.com: They both make text bold. In terms of presentation they are identical. So why have two elements that do the same thing? They may look the same to humans, but the web crawlers or bots – that crucial second audience – see something quite different. When a search engine spiders and analyzes a page, text in <strong> tags is considered important. Text in <b> tags is not. *