How to specify URL of resource to be used by the object in HTML5 ? Last Updated : 02 Jun, 2023 Improve Improve Like Article Like Save Share Report In this article, we will cover how to specify the URL of the resource to be used by the object in HTML5. It can be used on pages where content from an external source is required. It can be done by setting the data attribute to the specified URL in the <object> tag. Syntax: <object data="URL"> Possible Values absolute URL: It points to another website. relative URL: It points to a file within a website. Example: In this example, we will see the use of <object> tag. HTML <!DOCTYPE html> <html> <body> <h4 style="color: green;"> GeeksforGeeks </h4> <p>Object with an URL of the image:</p> <object data= "https://media.geeksforgeeks.org/wp-content/uploads/20200327230544/g4gicon.png"> </object> </body> </html> Output: Like Article Suggest improvement Previous How to specify what media/device the target URL is optimized for ? Next How to use Anchor tag as submit button ? Share your thoughts in the comments Add Your Comment Please Login to comment...