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

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

Steven Parker
Steven Parker
177,727 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
PRO
Md Sumon Molla
Pro Student 4,102 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