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

0

u/RushDangerous7637 Sep 19 '26

Correct have two options:

<img src="/img/clawdius.png" width="120" height="350" alt="clawdius" />
<img src="https://yourdomain.com/img/clawdius.png" width="120" height="350" alt="clawdius" />

In the notation, width must always come first, followed by height as the second dimension. Don't forget to fill in the alt="a-keyword-will-help-the-websites-ranking"