HTML Step 64, im putting the <head> element in the correct place but its saying its wrong

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

  **Your code so far**

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
          <legend>Is your cat an indoor or outdoor cat?</legend>
          <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor" checked> Indoor</label>
          <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
          <legend>What's your cat's personality?</legend>
          <input id="loving" type="checkbox" name="personality" value="loving" checked> <label for="loving">Loving</label>
          <input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
          <input id="energetic" type="checkbox" name="personality" value="energetic"> <label for="energetic">Energetic</label>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      No Copyright - <a href=""></a>
  **Your browser information:**

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

Challenge: Step 64

Link to the challenge:

You first need to close the head tag, then move on to the body.


You aren’t putting the head tag in the correctly place. You have wrapped the head element around the body element. It needs to go above it.

If you wanted to put one paragraph another you’d do it like this

<p>I am a paragraph above</p>
<p>I am a paragraph below</p>

With that in mind, how should the head element be placed?

See if you are actually putting the head element in right place,
be careful to see where you open an element and where you close it
look at some html examples an try to figure out what’s wrong with yours

thank you this helped, I was confused by putting the head element above the body element I thought it meant both elements from top to bottom.

1 Like

Right so,

If an element should be wrapped around another element, or an element put inside another element, the lesson will specify that.

If the lesson says to put an element above or below another element, it means to put the whole element above or below another element.

Keep those in mind and you should avoid positioning mistakes.

1 Like

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