Je ne comprend pas ce qu il faut faire et pourquoi ca ne marche pas

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
  <elementName>
    <p>Click here to view more cat photos.</p   
    element.img
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 7

Link to the challenge:

This is not how you create an img element. You created a main element with the tags <main> and </main>. You created a p element with the tags <p> and </p>. Do you see the pattern here? The img element is special though in that it is a self-closing element, so you do not use the closing tag, only the opening tag.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.