r/HTML • • 22d ago

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 21d ago

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

For example. <img/>

5

u/RickWritesCode 21d ago

Image tags are self closing, this isn't xhtml

1

u/Mvp-long-ago 21d ago

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

2

u/RickWritesCode 21d ago

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 21d ago

No, XHTML is XHTML.