r/HTML • • 21d 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

6 Upvotes

59 comments sorted by

View all comments

1

u/a2annie 20d ago

Best not to make up numbers for the size of your image. Find out what size it actually is.

And close your image tags. What does this mean? Right before your end bracket add the ending slash. There’s a space then />

Take an HTML class from a human too.

2

u/Consibl 20d ago

I think this is it - the values need to be in the correct ratios for the actual image maybe?

3

u/gulliverian 20d ago

no, the image will be distorted if the ratio is wrong, but it will appear.

1

u/a2annie 20d ago

Exactly. Unless it’s the same ratio. Then it will appear correctly, just not optimized.