Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801346
Author: FELKE-MORRIS
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 4, Problem 4MC

22759-4-4RQ                                                                                   AID: 1825 | 26/03/2018

Program Description Answer

Purpose of “height” and “width” attributes in “<img>” tag:

The purpose of “height” and “width” attributes in “<img>” tag is to allow the browser for appropriate space for an image. If the attributes are given in the tag then the space for the image is reserved when the browser is loaded.

For example:

The following code set the image with height and width. The browser set the size of the image when the page is loaded. The height of the image is “30” pixels and the width of the image is “15” pixels.

<img src= “flower.gif” height= “30” width= “15”>

Hence, the correct answer is option “B”.

Blurred answer
Students have asked these similar questions
What is the purpose of coding height and widthattributes on an <img> tag?a. They are required attributes and must alwaysbe included.b. They help the browser render the page fasterbecause it reserves the appropriate space forthe image.c. They help the browser display the image in itsown window.d. none of the above
1.The calculation in the animation is actually incorrect in certain scenarios. Based on your under-standing, find the settings where the calculations are incorrect and explain why. 2.Calculate the total delays in the following cases, assuming that •there are 3 objects (not including the HTML object), and •the per-object transmission delay is 0.1 RTT.
Hello, I am trying to get the 1s in the image attached to change them into a,b,and c respectively. Please correct my code where necessary. <!DOCTYPE html><html lang="en"> <head>    <meta charset="UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <title>Document</title></head> <body>    <ol>        <li>            Question 3            <ol>                <li><img src="exam.gif" alt="Image 1" width="200" height="150"></li>                <ol>                    <li><img src="OIP.jpg" alt="Image 2" width="200" height="150"></li>                    <ol>                        <li><img src="Successful.jpg" alt="Image 3" width="200" height="150"></li>                    </ol>                </ol>            </ol>        </li>    </ol></body> </html>
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education