Search Header Logo
Images in HTML

Images in HTML

Assessment

Presentation

Computers

8th Grade

Practice Problem

Medium

Created by

Nirender Prakash Singh

Used 24+ times

FREE Resource

5 Slides • 4 Questions

1

Images in HTML

Slide image

2

IMG Tag

  • Images can be inserted in HTML using <img> tag

  • It is an empty tag

  • images cannot be saved in HTML file.

  • Three types of Image files supported by webpage are .jpg, .gif and .png

  • Two main attributes of img tag are src and alt

3

Use of IMG tag

  • alt specifies what text to be displayed in case image is not loaded.

  • src or "source attribute" tells the browser which image to be displayed and where to find it.

  • location or path of the image file is required for source attribute if the image file is located in a folder other than HTML file.

  • other optional attributes for img tag are - align, border, height, width

4

Slide image

5

Slide image

6

Multiple Choice

Which tag is used for inserting image in HTML document?

1

<insert>

2

<insert image>

3

<images>

4

<img>

7

Multiple Choice

which attribute of img tag is used to mention the source of image file?

1

src

2

source

3

img

4

None of these

8

Multiple Choice

Which of the following will show a text message in place of image if the image file is not found?

1

alter text

2

alternate

3

alt

4

text

9

Multiple Choice

Path of image file is always required when inserting it in a webpage.

1

True

2

False

Images in HTML

Slide image

Show answer

Auto Play

Slide 1 / 9

SLIDE