asked 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:

answered
User Imbolc
by
8.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.

answered
User Tiju John
by
7.2k points

Related questions

2 answers
2 votes
217k views
asked Sep 23, 2016 140k views
Datalifenyc asked Sep 23, 2016
by Datalifenyc
9.0k points
1 answer
3 votes
140k views
asked Mar 1, 2018 124k views
Denilson Amorim asked Mar 1, 2018
by Denilson Amorim
7.1k points
1 answer
5 votes
124k views