# Unable to pass the test

**URL:** <https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045>\
**Category:** General\
**Created:** [April 2, 2021, 5:25am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045 "2021-04-02T05:25:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![theoriginalhybrid9](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/theoriginalhybrid9/32/212198_2.png) [@theoriginalhybrid9](https://forum.freecodecamp.org/u/theoriginalhybrid9)\
**Post date:** [April 2, 2021, 5:25am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/1 "2021-04-02T05:25:44Z")

</div>

I typed the following code:

\<h2 id="footer\>"Footer and it keeps showing me this: The `footer` tag should have an `id` attribute set to "footer". What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![anon58011934](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@anon58011934](https://forum.freecodecamp.org/u/anon58011934)\
**Post date:** [April 2, 2021, 5:26am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/2 "2021-04-02T05:26:48Z")

</div>

Hi there,  
Would please send a link to the lesson. you can do this by copy and pasting the exact link on the browser right here in your post.

---

<div class="post-metadata">

**Author:** ![theoriginalhybrid9](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/theoriginalhybrid9/32/212198_2.png) [@theoriginalhybrid9](https://forum.freecodecamp.org/u/theoriginalhybrid9)\
**Post date:** [April 2, 2021, 5:29am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/3 "2021-04-02T05:29:00Z")

</div>

Sure!

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![dpfeiferjr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dpfeiferjr/32/206533_2.png) [@dpfeiferjr](https://forum.freecodecamp.org/u/dpfeiferjr)\
**Post date:** [April 2, 2021, 5:34am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/4 "2021-04-02T05:34:59Z")

</div>

Looks like your quote is in the wrong place

should be `<h2 id="footer">` not `<h2 id="footer>" `

hope that helps!!

---

<div class="post-metadata">

**Author:** ![anon58011934](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@anon58011934](https://forum.freecodecamp.org/u/anon58011934)\
**Post date:** [April 2, 2021, 5:35am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/5 "2021-04-02T05:35:07Z")

</div>

First you need to change the link here:

```auto
<a href="https://freecatphotoapp.com" target="_blank">cat photos</a>

```

href has an external link ( refers to another website). you should change this to an internal link ( refers to the id of an element within the page)  
to do this change the address to id like this `href="#footer"`

then remove this part in the a tag `target="_blank"`  
finally, define id for the foot tag. To do this add `id="footer"` to the footer element.

---

<div class="post-metadata">

**Author:** ![theoriginalhybrid9](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/theoriginalhybrid9/32/212198_2.png) [@theoriginalhybrid9](https://forum.freecodecamp.org/u/theoriginalhybrid9)\
**Post date:** [April 2, 2021, 5:40am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/6 "2021-04-02T05:40:08Z")

</div>

That’s exactly what I’ve written.  
`<h2 id="footer"> Jump to Bottom</h2>`  
but “id” appears to be in red color I don’t know why

---

<div class="post-metadata">

**Author:** ![anon38330656](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon38330656](https://forum.freecodecamp.org/u/anon38330656)\
**Post date:** [April 2, 2021, 5:43am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/7 "2021-04-02T05:43:26Z")

</div>

Hi! @theoriginalhybrid9  
Welcome to the forum

- You were asked to give an `id` to the `footer` element not to the `h2` so, the `footer` element’s id should be footer

- Also in your jump to the bottom `anchor` element remove the `target="_blank"` attribute from the anchor tag since this causes the linked document to open in a new window tab.

Hope this helps ✨

---

<div class="post-metadata">

**Author:** ![dpfeiferjr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dpfeiferjr/32/206533_2.png) [@dpfeiferjr](https://forum.freecodecamp.org/u/dpfeiferjr)\
**Post date:** [April 2, 2021, 5:45am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/8 "2021-04-02T05:45:34Z")

</div>

Ah! You are adding the id to the `<h2>` element.

The footer is way at the bottom - try adding the id to the `<footer>` element!!!

```auto
<footer id="footer">

```

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [April 2, 2021, 6:23pm UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/9 "2021-04-02T18:23:46Z")

</div>

@theoriginalhybrid9, in the future

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the **Ask for Help** button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [October 2, 2021, 6:24am UTC](https://forum.freecodecamp.org/t/unable-to-pass-the-test/454045/10 "2021-10-02T06:24:04Z")

</div>

Closed on October 2, 2021, 6:24am UTC

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