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

4 Upvotes

59 comments sorted by

View all comments

Show parent comment

7

u/RickWritesCode Sep 19 '26

Image tags are self closing, this isn't xhtml

3

u/Carlss32 Sep 19 '26

Best comment I ever had. I never expected to have negative points, though. I just give my thoughts what would be an issue, to help as fellow. To be honest, the return error is confusing that led me this way. Also the stack I used to enforce it, react with eslint. That's why I assumed it to be a culprit as well. Never been used plain html5 in my project.

1

u/Mvp-long-ago Sep 19 '26

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

2

u/RickWritesCode Sep 19 '26

26 years ago this was a requirement when w3c made xhtml the standard, 2008 and final publication in 2014 html5 is the standard and dropped this requirement. Prior to 2000, it also was not required to close self contained tags

1

u/Lithl Sep 20 '26

No, XHTML is XHTML.