I am confused as to why the p element inside the footer doesn’t require a closing tag to pass the test?
**Your code so far**
<footer><a href="https://www.freecodecamp.org"><p>Visit our website<p></a>
</footer>
I am confused as to why the p element inside the footer doesn’t require a closing tag to pass the test?
**Your code so far**
<footer><a href="https://www.freecodecamp.org"><p>Visit our website<p></a>
</footer>
Hi @ fcc52, and welcome to the forums!
The instructions for this challenge ask you to nest the anchor element inside the p
element.
But your code has the p
element nested inside the anchor element.
That seems to have confused the tests.
If you put the opening and closing p
element tags outside the anchor element, then I think you’ll find that the tests do expect a closing p
element tag.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.