Computer Science, asked by mamatakhandelwal8, 1 month ago

what is the difference between src and alt attribute minimum 3 points​

Answers

Answered by anindyaadhikari13
3

ANSWER.

The main difference between src and alt attribute of <img/> is that –

• src attribute of <img/> tag indicates the source of the image whereas alt attribute defines the alternate text for the image that appears if the image fails to appear.

LEARN MORE.

<img/> Tag.

  • The <img/> is used to insert/embed pictures on web page.
  • We cannot directly embed images on web page. Therefore, we have to use this tag so as to embed the picture.
  • The <img/> tag is an empty tag i.e., it has no closing tag.
  • Syntax: <img src="link" height="height_value" width="width_value" alt="alternate_txt"/>
Similar questions