Advertisements
Advertisements
Question
The following HTML statement is not written properly. Re-write the correct statement with underlined correction. The desired purpose of the statement is mentioned under it.
<img source="img_girl.jpg" size="500" height="600">
<!--Image source should be img_girl.jpg, width and
height both should be 500-->
Code Writing
Solution
Corrections Made:
- The incorrect attribute
source
was replaced with the correct attributesrc
to specify the image file. - The incorrect attribute
size
was replaced withwidth
to set the image's width. - The height was changed from
600
to500
to meet the requirement that both width and height should be 500.
shaalaa.com
Is there an error in this question or solution?