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 trialNazli Ensafi
2,729 Points<em> and <strong>
I didn't fully understand the usage of <em> and <strong>, would anybody give me some solid examples plz?
1 Answer
Karolin Rafalski
11,368 Pointsem and strong are about semantics more than appearance. By default, em appears italicized and strong appears as bold text. However, their function is to help show where to stress to a sentence. If someone was using a screen reader to read an html page to them, the em and strong would cause the text to be read in an emphatic and/or loud way. For example: YOU are very late. reads differently than: You are VERY late.
and so the goal of em and strong is to help identify which word (or words) are being stressed to help clarify what is trying to be conveyed.
Nazli Ensafi
2,729 PointsNazli Ensafi
2,729 PointsThank you!