Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Text Emphasis, Strong, and Horizontal Rules

Nazli Ensafi
Nazli 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
Karolin Rafalski
11,368 Points

em 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.