HTML object
object element represents the browsing content such as an image, HTMLfile. In other words, object element adds images or HTML files in a page.
HTML file
In the above example, the object element embeds a file of HTML.
data attribute specifies the location of external resource.
Image
In the above example, the object element adds an image in the page.
object related attributes
type attribute
type attribute defines the type of content.
In the above example, the type of data is 'image/png'.
There are many other objects that have different types. For example, text/html, text/css, video/mp4, audio/mp3, image/jpg
height attribute
height attribute defines the vertical dimension of the content.
width attribute
width attribute defines the horizontal dimension of the embedded content.
usemap attribute
Object element may be used to make an image map. usemap attribute connects the image with map element. area element represents the linked areas on the image to make a map.
You can visit map element for more information about the map.
area element explicitly specifies the area on an image using coordinates. You can visit area element for more information about the area on image.