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! While you're at it, check out some resources Treehouse students have shared here.
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 trialLeo Penaloza
8,426 PointsWhat's the difference between using <strong> and using CSS of font-weight:bold ?
What's the difference between using <strong> and using CSS of font-weight:bold ?
3 Answers
Ryan Miller
11,894 PointsI do not believe there is a real difference in style other than the methods being HTML vs CSS. Using the HTML <strong> shows that the word or phrase has added importance, while the CSS font-weight:bold; is purely just style.
Miguel Enriquez
2,057 PointsTo expand on this. Search engine bots and other relevant software can know that the word/phrase is important if <strong> is used.
grant Mitchell
6,919 PointsThe difference is how accessible it is for your page. If your using lot's of styling then you would rather just use css, however a simple small change you should use html for a small adjustment.
M Khan
7,024 PointsThere is no difference, but i prefer to keep my html file much more cleaner and assign the styling job to CSS instead
Dave StSomeWhere
19,870 PointsDave StSomeWhere
19,870 PointsThe key difference that I'm aware if how screen readers (for blind people) handle the difference for accessibility purposes.
Check out the answer on this Stack Overflow Question for some additional discussion.