Step 12 help required

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 -->
    <p>href="https://catphotos.com"cat photos</p>
        <a> href="https://freecatphotoapp.com" /a>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </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/103.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:

There is two types of elements, the first have a closing tag like <p></p> the <p> is the openening and the </p> is the closing and the content is between them, and the secon type is the self-closed elements like <img> the image element don’t have a closing tag, You need to check if the <a> is a self-closing element or not.

If we want to turn an element or a word to a link we put that word or element inside the <a></a> element.

for example we will to turn the word 'paragraph' to a link:
<p>This is a simple <a href="https://www.site.com">paragraph</a></p>

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