HTML adding id value

Can’t add id value to the footer tag. Please help!

You have to understand that the

id // is an attribute
value // is what you pass into it
// example
<div id='the-id'>...</div>

Hope this helped

2 Likes

Yes it is the challenge and this is what it says when I run it The

footer

tag should have an

id

attribute set to “footer”.

I have id to be

footer

but after running it, this message returns

The

footer

tag should have an

id

attribute set to “footer”.

Could you please copy and paste your <code> here?

I have this after using the idea you gave

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

But it now says there should be only one footer tag. Please elaborate.

< this links to Jump to Bottom footer >

But it now says there should be only one footer tag.

please post your whole code

the text inside the elements doesn’t match the requirements


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.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like