Skip to content
Related Articles
Open in App
Not now

Related Articles

How to specify URL of resource to be used by the object in HTML5 ?

Improve Article
Save Article
  • Last Updated : 13 Apr, 2021
Improve Article
Save Article

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 in 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.


<object data="URL">

Possible Values 

  • absolute URL: It points to another website.
  • relative URL: It points to a file within a website.



<!DOCTYPE html>
    <h4 style="color: green;">
    <p>Object with an URL of the image:</p>
    <object data=


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!