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

HTML HTML Forms HTML Mastery

strong tag

how to use the strong tag to bold lettering, please show example

2 Answers

Hi Michael - To use the strong tag, you just wrap an opening and closing tag around the text that you would like to apply it to. For example, this code:

<p>This is an example sentence with <strong>these words</strong> in bold.</p>

That will output the sentence like this:

This is an example sentence with these words in bold.

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points
<h1>Introducing Bold Lettering</h1>
<h3>This is a <strong>simple</strong> subheading to show how the <strong>strong</strong> tag works</h3>

The output:

Introducing Bold Lettering

This is a simple subheading to show how the strong tag works

Hope this helps