I’m a coding newbie and I’m stuck on id.
I am at the beginning working on the CatPhotoApp.
I need to make the “Jump to Bottom” text connect to the footer.
The Jump to Bottom is not an h2 (I don’t believe because it is below the )
This is my error message: "The footer tag should have an id attribute set to “footer”.
My href attribute is:
<a href="#footer">Jump to Bottom</a>
I know this must be really simple, but for some reason, I can’t figure out how to write out the
id attribute. Any help is appreciated. Thanks!!!
I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (
</>) will also add backticks around text.
Yes, that looks alright for the link. You’ve given it a target, but that target doesn’t exist yet. It’s looking for an id named footer but nothing with that id exists. Somewhere near the bottom you probably have something like:
<footer>Copyright Cat Photo App</footer>
That is a footer element, but it needs an id. For example, if you wanted a
div to have an id of “banana”, I would go:
<div id="banana">some text ...</div>
Let us know if that isn’t enough of a hint.
Okay I will give another try. Thanks
I’m having the same issue and I don’t understand the hint Where am I putting the id tag? And where did div come from?
<main id="footer">Jump to Bottom</main>
This is one of the combos I tried. My reasoning is that “Jump to Bottom” is in the Main text area, not an h2. However, the result was that I had another line the said “Jump to Bottom”. That seems to be in line with the example that was given in the exercise.
I guess I am not understanding the “how to” instructions.
Don’t I have to put “main” since that is where the Jump to Text link is located?
Wow! I finally got it! It was simple.
even i have the same problrm, can u help me with that?