what is the use of height and width attribute
Answers
Answered by
23
The width attribute specifies the width of an image, in pixels. Tip: Always specify both the height and width attributes for images. If height and width are set, the space required for the image is reserved when the page is loaded.
Answered by
8
The height define how long the attribute is and the width specify about the breadth of the attributes.
Explanation:
- The HTML and CSS are used to make the text attractive to any website. The height and weight of the attributes are for the image tag.
- Any image has four sides which are divided into two groups' height and weight because the parallel side of the images is equals.
- when a user defines the height of the image it defines the long position of the image.
- When the user defines the width, It specifies the breadth of the images.
Learn More:
- HTML: https://brainly.in/question/5393966
Similar questions