Your code is missing closing tags for body and html elements, though I’m guessing you’ve just not pasted your full code.
26.. Each figure element should contain a figcaption element as its second child.
28.. Each of the a elements that are children of your figure elements should contain an image.
31.. Each a element should have an href attribute with the value of https://www.freecodecamp.org/learn . Don’t forget the links in the list items.
32.. Each a element should have a target attribute with the value of _blank . Don’t forget the links in the list items.
The reason these specified tests are failing is firstly because each figure element does not have a figcaption as its second child. You have anchor and img elements inside your figure element, followed by figcaption as third child. Note that your anchor elements are not closed off properly. If they were, with the img elements nested inside them, that would solve the problem.
The other tests specify that all of your anchor elements should have an href pointing to https://www.freecodecamp.org/learn. You have different urls in your href attributes. You also do not have target attributes in all of your anchor elements.
For the life of me I can’t figure it out. I’ve tried different things but I can’t figure out where my anchor elements need to be closed off and how to make the figcaption the second element. Can you show me so I can note it please?
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.
The img element is a void element, so it doesn’t require a closing </img> tag, but it does require a closing >. That’s all I can see until you post your full code as suggested.
Also, until you are more comfortable with HTML, consider using a validator to check for errors like this. Just click on the “Validate by Direct Input” tab, paste your code into the text area, and click the “Check” button. Fix your errors, then check/fix again until there are no more errors.