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 Basics Images, Text and Links Text Level Elements Challenge

what is wrong in this

i have done the needed

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>HTML Text</title>
  </head>
  <body>
    <p>Mike's favorite course is <i>"HTML Basics"</i></p>
    <p>
      <strong>Mike T. Frog</strong><br>
      100 Lilypad Way<br>
      Portland, OR 97227
    </p>
  </body>
</html>

3 Answers

Cheo R
Cheo R
37,150 Points

Instead of using the <i> element, use the <em> element.

Steven Parker
Steven Parker
231,269 Points

Cheo is correct, but you might like to know why the difference is important. MDN says:

By default, the visual result is the same. However, the semantic meaning is different. The <em> element represents stress emphasis of its contents, while the <i> element represents text that is set off from the normal prose, such a foreign word, fictional character thoughts, or when the text refers to the definition of a word instead of representing its semantic meaning.

For more details, see the linked MDN page.

Md Sumon Molla
PLUS
Md Sumon Molla
Courses Plus Student 4,110 Points

Hi Rahul

Thanks in advance. For "ITALIC" you have to use <em>some text</em instead of <i>some text</i> for more details you can have a look in this URL https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em