Which attribute of the < table > tag is used to set an image in the background of a table?
(a) bgcolor
(b) background
(c) frame
(d) rules
Answered Feb 05, 2023
(b) background attribute is used to set an image in the background of a table.
The <IMG> tag is used to insert an image in a page. This tag uses the options like src, alt etc.
(b) We have to use background color because if in any case image is not displayed then at least background color will be shown on that place.
bgcolor attribute of BODY tag helps to set background color.
True It is an attribute of <BODY> tag used to display the background image.
The attribute you need to get an image to display on a Web page is the src attribute. In the src attribute of the <img> tag, you can specify the path...
(a) The image tag should be within an anchor tag to create the hyperlinked image.
(d) bgcolor is used to specify the background color of a table.
(d) src is not an attribute of <table> tag.
1. Yes 2. Label B E G A D F C
To set image as background of an HTML table, you can use background attribute.
Install the Bissoy app to consult with a doctor.
Log in to ask questions, provide answers, or leave comments.