# Unable to solve the error

**URL:** <https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [March 24, 2022, 3:48pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094 "2022-03-24T15:48:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 3:48pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/1 "2022-03-24T15:48:26Z")

</div>

![image](https://global.discourse-cdn.com/freecodecamp/original/3X/7/7/77afc267dc433c96f19e8a9cca2c93dc699629ed.png)

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [March 24, 2022, 3:51pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/2 "2022-03-24T15:51:10Z")

</div>

Hello, welcome to the forum.

Please don’t post pictures of code. Please post a link to the challenge and cut and paste the code (putting three backticks, ```, on the line before and another on the line after the code so it formats). In the future, the `Get Help -> Ask for Help` button will do that for you.

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [March 24, 2022, 3:51pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/3 "2022-03-24T15:51:41Z")

</div>

But the failing test is telling you what the problem is.

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 3:57pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/4 "2022-03-24T15:57:36Z")

</div>

Can’t seem to solve it

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 3:59pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/5 "2022-03-24T15:59:06Z")

</div>

1. Please post your actual code instead of a picture

2. Please provide the link to the challenge you are working on

3. Please provide a meaningful description of what is going on beyond “can’t solve it”

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 4:38pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/6 "2022-03-24T16:38:49Z")

</div>

Link to the challenge - [https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements)

Error on Task 6 - The

```auto
footer

```

tag should have an

```auto
id

```

attribute set to “footer”.  
Present code:

```auto
<a href="#footer">Jump to Bottom</a>
<h2 id="footer"></h2>

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 4:41pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/7 "2022-03-24T16:41:25Z")

</div>

We need all of your code please.

Just copying the error message is better, but not great. Its polite and helpful if you put forth as much effort into asking the question as you want me to put into answering the question.

* * *

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (’).

* * *

The problem, quite literally, is that you don’t have an footer element with the `id` tag of `"footer"`.

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [March 24, 2022, 4:48pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/8 "2022-03-24T16:48:41Z")

</div>

It needs to jump to the footer element, not an h2. So the `id` `footer` should be on a `<footer>` element.

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 5:04pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/9 "2022-03-24T17:04:12Z")

</div>

Sorry everyone about not being able to communicate my error to you. Its my first day using FreeCodeCamp and I was not sure.

```auto
<h2>CatPhotoApp</h2>
<main>

<a href="#footer">Jump to Bottom</a>
<h2 id="footer"></h2>

</main>

<footer>Copyright Cat Photo App</footer>

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 5:35pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/10 "2022-03-24T17:35:53Z")

</div>

This is your h2 element

> [@dshar5135](#):
>
> `<h2 id="footer">`

This is your footer

> [@dshar5135](#):
>
> `<footer>Copyright Cat Photo App</footer>`

The footer should have the `id`, not the h2

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 6:14pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/11 "2022-03-24T18:14:49Z")

</div>

Are you able to type in the correct code?

I am not able to get through

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 6:15pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/12 "2022-03-24T18:15:34Z")

</div>

Did you understand what I meant by

> [@JeremyLT](#):
>
> The footer should have the `id` , not the h2

What changes have you made to your code?

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 6:20pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/13 "2022-03-24T18:20:28Z")

</div>

I tried by changing h2 with id:

```auto
<a href="#footer">Jump to Bottom</a>
<id="footer"></id>

```

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 6:22pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/14 "2022-03-24T18:22:22Z")

</div>

You should not change the h2 element at all. This challenge isn’t about the h2 element.

You need to change the _footer_ element to add the `id` with a value of `"footer"`.

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 6:35pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/15 "2022-03-24T18:35:14Z")

</div>

My footer:

```auto
<footer>Copyright Cat Photo App</footer>

```

What do I change it to?

---

<div class="post-metadata">

**Author:** ![JeremyLT](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jeremylt/32/291894_2.png) [@JeremyLT](https://forum.freecodecamp.org/u/JeremyLT)\
**Post date:** [March 24, 2022, 6:36pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/16 "2022-03-24T18:36:50Z")

</div>

You need to add the `id` with the value of `"footer"` to that footer.

It’s just like you did with the h2 element, but on the footer instead.

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 6:58pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/17 "2022-03-24T18:58:43Z")

</div>

It gives me an error saying - There should be only one `footer` tag on your page.

I typed in:

```auto
<id="footer">Copyright Cat Photo App</footer>

```

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [March 24, 2022, 7:10pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/18 "2022-03-24T19:10:09Z")

</div>

You over wrote the word “footer” in the element tag. It needs to be like:

```auto
<footer attribute="value">...

```

but you’ve done this:

```auto
<attribute="value">...

```

In this case, the attribute is “id”.

---

<div class="post-metadata">

**Author:** ![dshar5135](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dshar5135/32/241680_2.png) [@dshar5135](https://forum.freecodecamp.org/u/dshar5135)\
**Post date:** [March 24, 2022, 7:18pm UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/19 "2022-03-24T19:18:17Z")

</div>

It worked. I really appreciate everyone for helping.

---

<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:** [September 24, 2022, 3:39am UTC](https://forum.freecodecamp.org/t/unable-to-solve-the-error/502094/21 "2022-09-24T03:39:18Z")

</div>

Closed on September 24, 2022, 3:39am UTC

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