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 trial

Design Web Typography Basic Web Typography Weights and Styles

<em> and <strong> Tags

Hello! What if we want to empathise just one world within our paragraph? can we use <strong> or <em> tags? or do we need to use a class just for that one word?

Thank you! :)

1 Answer

Steven Parker
Steven Parker
231,184 Points

Even to use a class, you would still need to wrap the word in an element (perhaps a "span") to allow it to be styled separately. It makes sense to use a tag that implies a particular styling instead of a generic one with a class if that's the whole purpose of the tag anyway.

The actual styling can still be modified with CSS if needed.