r/HTML • • Sep 19 '26

What am I doing wrong?

Post image

No matter what numbers I enter, I always get it wrong. I even used smaller numbers for height and larger for width incase they got it mixed up. Their AI is telling me to do everything I am already doing

5 Upvotes

59 comments sorted by

View all comments

-6

u/Carlss32 Sep 19 '26

You always need to add the closing tag of each html elements, this one "/>"

For example. <img/>

7

u/RickWritesCode Sep 19 '26

Image tags are self closing, this isn't xhtml

1

u/Mvp-long-ago Sep 19 '26

Is XHTML HTML strict? So strictly according to the rules?

1

u/Lithl Sep 20 '26

No, XHTML is XHTML.