If the max-width property is set to 100%, the image will scale down if it has to, but never scale up to be larger than its original size. If you have an image that’s 500px wide and you set your max-width property to 100%, that image will always be smaller than 500px and never larger than 500px.
If a width and height are specified, the video or object will be scaled to fit the values.
You can use the width and height attributes to set the size of an image. You may also use the max-width, or maximum width and max-height, or maximum height attribute to specify how big you want a media element to be. If a width and height are specified, the video or object will be scaled to fit those values.
If these attributes are not used then they default to 100%.
The width and height attributes can be used to set the size of an image. The max-width and max-height attributes can be used to specify how big you want a media element to be. If these attributes are not used then they default to 100%.