HTML Image Tag Question Bank
- Categories HTML, HTML, Web Designing
This post contains 1 mark questions on the topic of HTML Images in the form of MCQs, fill in the blanks and true or false statements. These questions are in accordance with the new revised format of 2020.
Fill the following blanks:
- The <img> tag is an _________ tag, that means it has no closing tag.
Ans. empty
- <img> tag is used for _________ images.
Ans. displaying
- __________ tag is used to create inline images.
Ans. <img>
- ___________ is an attribute of the <img> tag which specifies the location or URL of the image to be displayed.
Ans. src
- An attribute is an extra piece of information associated with a ___________
Ans. tag
- The ait attribute provides __________ for an image.
Ans. alternative information
- An image to be displayed in a Web page has to cover 25% of the browser window horizontally and 50% vertically. The attributes _________ and _________of the <img> tag would be used for achieving this.
Ans. height, width
- ______ attribute is used to give border to an image.
Ans. border
- The _________ tag is considered to establish a hypertext relationship between the current document and another URL.
Ans. <a>
- The value for alt attribute is a text string of upto _________characters.
Ans. 1024
- Using the __________ type URL, you can create the E-mail hyperlink.
Ans. Maillot
Multiple Choice Questions:
- Web browsers display images in the following format
- XBM
- JPEG
- GIF
- All of these
Ans. 4
- Which tag is used to insert an image in Web page?
- <a>
- <table>
- <img>
- <p>
Ans. 3
- The correct HTML code for inserting an image is
- <img href=”image.gif”>
- <img> image.gif</gif>
- <img src = “image.gif”>
- <image src = “image.gif” >
Ans. 3
- src attribute used with <img> tag stands for
- screen
- screen resolution count
- source
- structure
Ans. 3
- _________ attribute is used to specify the location of an image file.
- alt
- src
- align
- name
Ans. 2
- The text specified in the alt attribute is displayed as tooltip in
- Internet Explorer
- Google Chrome
- Both (a) and (b)
- None of these
Ans. 1
- The alternate text of an image can be displayed by using attribute of the <img> tag.
- src
- alt
- align
- None of these
Ans. 2
- alt attribute allows
- addition of an alternate hyperlink
- addition of a border to image
- use of an alternative image in place of the specified image
- addition of alternative text about an image
Ans. 4
- The default alignment of images, that are inserted in Web page, is
- left
- right
- inline with text
- middle
Ans. 3
- Which is not a valid value in the align attribute of <img> tag?
- top
- center
- bottom
- right
Ans. 2
- Why is it important to specify width and height attribute in <img> tag?
- To ensure that image is not copied
- The image will not render without these
- To stop the image from loading
- Helps the browser to load the Web page faster
Ans. 4
- When creating a Web document, which unit is used to express an image’s height and width?
- Centimetres
- Pixels
- Dots per inch
- Inches
Ans. 2
- The attribute which is used to send E-mails through a Website.
- tomail
- mailto
- Both (a) and (b)
- None of these
Ans. 2
- Choose the correct syntax to create an E-mail link.
- <a href = “abc@xyz.com”>
- <a href = “mailto:abc@xyz.com”>
- email = “abc@xyz.com”>
- <amail = “abc@xyz.com”>
Ans. 2
State whether the following statements are true or false:
- You can have inserted an image in your Web page which is physically present in your computer.
Ans. True
- If the image you are loading in the Web page is not available, then you want a text to appear in the image placeholder, text attribute lets you define this text.
Ans. False
- No value is specified with alt attribute of <img> tag.
Ans. False
- The general syntax for inline image is <img src = “file name” >.
Ans. True