Example

Object Tag in HTML

HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
        <title>Object in HTML</title>
    </head>
    <body>
<!--
    <object> : represents an external resource, which can be treated as 
               an image, 
               a nested browsing context, or 
               a resource to be handled by a plugin
-->

    <h1>Demo: Object in HTML</h1>
    
    <object
        data="/notes/examples/assets/img/rose.png"
        type="image/png"
        width="500"
        height="auto">
    </object>
    
    </body>
</html>
                                    

Output

View original