- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify the URL of the resource to be used by the object in HTML?
Use the data attribute in HTML to specify the URL of the resource to be used by the object in HTML.
Example
You can try to run the following code to implement the data attribute −
<!DOCTYPE html> <html> <body> <h2>Demonstration</h2> <object width = "250" height = "300" data = "demo.swf"> </object> </body> </html>
- Related Articles
- How to specify the URL of the page the link goes to in HTML?
- How to specify the URL of the image to use in different situations in HTML?
- How to specify that the details should be visible to the user in HTML?
- How to specify the type of box used for an HTML element using CSS?
- How to set the URL of the media file in HTML?
- How to specify the kind of text track in HTML?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
- How to specify that the form should not be validated when disabled in HTML?
- How to specify that the element must be filled out before submitting the form in HTML?
- How to specify whether the content of an element should be translated or not in HTML?
- How to specify the number of visible options for in HTML?
- How to specify whether the form-data should be encoded while submitting to the server with HTML?
- How to specify the language of the element's content in HTML?
- How to set a multiplier to scale by in the URL string of IText object using FabricJS?
- FabricJS – How to set a multiplier to scale by in the URL string of a Line object?

Advertisements