Basic HTML & HTML5: Link to internal sections of a page with anchor elements

Basic HTML & HTML5: Link to internal sections of a page with anchor elements
0.0 0

#1

I’m stuck with this id element thing on my first course on freecodecamp please help me. what is the next step for me to get rid of this one


#2

You’ve changed the name of you footer tag to <ctionfooter> and it has no ID attribute


#3


#4

i’d change it already :frowning:


#5

Now you have an opening tag for a h2 element and a closing tag for a footer element. You should have a footer element.


#6

so should she just add an opening tag for a footer element?


#7

There should be an opening tag for the footer element and there should not be an h2 element in the footer.


#8

I’ve set it to:

<footer><id="footer">Copyright Catphoto App</footer>

that still wont work…
this keeps coming up:

The footer tag should have an id attribute set to “footer”.


#10

Ids should be in the opening tag of the element that they are being applied to. They do not have their own tag.


#11

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.

Now you have a footer element but have also added <id="footer"> which is not valid syntax for anything. The footer element is made of of an opening tag <footer> and a closing tag </footer>. Elements have attributes such as id, class, etc… which are enclosed in the opening tag’s < and >.


#12

@ArielLeslie I’ll make sure to do that for the next time! Thanks a million!

@randelldawson I understand it better now, thanks! That makes a lot of sense, I’ll be sure to keep it in mind for other attributes! :grin: