r/HTML • u/No-Tea5041 • Sep 19 '26
What am I doing wrong?
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
25
u/mondayquestions Sep 19 '26
Do they want you to use the values on the bottom of the screen (300 and 220)?
11
u/RickWritesCode Sep 19 '26
This isn't xhtml. Image tags are self closing, stop giving bad advice. Use the numbers in the bottom and see if that does it.
5
u/Dragenby Sep 19 '26
Missing the alt tag
5
u/Everything_A Sep 19 '26
Alt is mandatory, right?
1
u/ajamdonut Sep 19 '26
220 height 120 width
1
u/gulliverian Sep 19 '26
You say "I always get it wrong". What does that mean? What result are you getting?
1
u/koqkpa Sep 25 '26
Why not try swap the positions of the height and width attribute?
1
u/a2annie Sep 19 '26
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.
1
u/SecretLecture3219 Sep 19 '26
As previous commentor do you not need to correctly place all the values given at the bottom?
1
u/xMcCreamyx Sep 19 '26
What learning app is that?
-4
u/ThisIsMB Sep 19 '26
Didn’t finish the img tag
-3
u/nonchip Sep 19 '26
not using the tokens you were given.
also, using an "ai" as a teacher.
also, depending on what kind/version of html this is, you need to either close the tag or mark it empty using a slash.
-2
u/kewcumber_ Sep 19 '26
Not at all good with html but maybe because you're missing the alt attribute?
-1
u/l008com Sep 19 '26
No units? 350 what?
Also in real life, we stopped putting the height and width in the html like 15 to 20 years ago.
0
u/RushDangerous7637 Sep 19 '26
Correct have two options:
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"
0
u/5omething5trange Sep 20 '26
Css have to be in style tag?
-6
u/cloudstrifeuk Sep 19 '26
You haven't closed/finished the img tag.
-4
u/Ronin-s_Spirit Sep 19 '26
try putting a forward slash there.
-6
u/Carlss32 Sep 19 '26
You always need to add the closing tag of each html elements, this one "/>"
For example. <img/>
-5
u/obnoxus Sep 19 '26
its telling you to finish the tag and as far as i can tell it isn't finished.
0
u/[deleted] Sep 19 '26
[deleted] — view deleted comment