I'm confused on these two errors in HTML

I'm confused on these two errors in HTML
0

My CSS checks out.
My HTML is fine except these two errors that read:

" ‘<’ is not a valid attribute of the element. "
" ‘div’ is not a valid attribute of the element. "

I still pass the Tribute Page tests but I want my code to be 100% perfect before I move onto fixing my next project.

Any feedback is greatly appreciated!
Here is the link to my Tribute Page

<div id="img-div">
    <img id="image" src="https://i.imgur.com/SvWhEYf.png" alt id="Princess Mononoke's Mask" </div>
    <figure id="img-caption">San's Mask</figure>
    </img>

Here is your bug. You close the img after the div.

1 Like

Hi @VedaDev27, you have a typo which is why you’re seeing the error. This line;

<div id="img-div">
 <img id="image" src="https://i.imgur.com/SvWhEYf.png" alt id="Princess Mononoke's Mask"
</div>

is where your error is. The img element is self closing, it doesn’t require </img> which you have on line 10. It does require that you close it though. Prior to the closing div, you’re missing >. See it?
As an aside, alt text would just be text, no id= is required.

1 Like

@JayJay_1975 and @Roma: First project is down with no mistakes, thanks to yall!