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
You’ve changed the name of you footer tag to
<ctionfooter> and it has no ID attribute
i’d change it already
Now you have an opening tag for a
h2 element and a closing tag for a
footer element. You should have a footer element.
so should she just add an opening tag for a footer element?
There should be an opening tag for the footer element and there should not be an h2 element in the footer.
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”.
Ids should be in the opening tag of the element that they are being applied to. They do not have their own tag.
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
@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!
how do you write that in code?