93.8k views
2 votes
Which html attributes are required in the image () element - check as many as apply

1. img

2. alt

3. src

4. title

2 Answers

3 votes

Answer:

3

Step-by-step explanation:

User Imbolc
by
5.2k points
3 votes

Answer:

The correct answer for the given question is option(3) i. src.

Step-by-step explanation:

In HTML if we insert a image on the screen we use<img> tag

the img have following attribute

1.src

2.height.

3 alt

4 width

The required attribute in img tag is src i.e source or path of image

The following are the syntax of image tag

<img src=" path of image" alt="not visible" height="100px" width="100px"/>

The height and width attribute describe the height and width of image in pixel.

The alt attribute is not mendatory attribute in image tag.The alt attribute display the message when image is not visible in the web page .

All the other attribute like alt,height,width are used as per the requirement but src is an required attribute .

so the option(3) is correct.

User Tiju John
by
4.3k points