What is the purpose of the width and height attributes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the purpose of the width and height attributes?

isn't it redundant due to the coordinator and size definitions?

11th Jul 2016, 7:50 PM
Mohamed M.
Mohamed M. - avatar
3 Answers
+ 2
To specify the width and height of the content (for example: image, video) to be displayed.
15th Jul 2016, 6:52 AM
Amruth Nag
Amruth Nag - avatar
0
the purpose is to show how big or small you want your item to show on the page. by playing with the width and height you can also manipulate the shape ( square or rectangle)
25th Jul 2016, 6:53 AM
Michelle Dekker
Michelle Dekker - avatar
0
control you styles measure , when you put pic 500px X 500px you have to control it,
1st Aug 2016, 4:11 AM
Daliah Aljutayli-داليه الجطيلي
Daliah Aljutayli-داليه الجطيلي - avatar