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.
- 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.
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!