HTML data attribute
data
The purpose of the HTML data attribute is to specify a URL to data required by an embedded object element.
Supported elements
HTML data attribute supports object element.
Syntax
<object data="value" >.....</object>
Type of value
URL.
Value
A URL.
Default value
There is no default value of HTML data attribute.
Supported doctypes
HTML 4.01 strict, HTML 4.01 transitional, HTML 4.01 frameset.
Previous: HTML coords attribute
Next: HTML datetime attribute
- New Content published on w3resource:
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- React - JavaScript Library
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework