<data>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2017.
HTML <data>
요소는 주어진 콘텐츠를 기계가 읽을 수 있는 해석본과 연결합니다. 콘텐츠가 시간 혹은 날짜 관련 정보라면 대신 <time>
요소를 사용하세요.
시도해보기
특성
예제
밑의 예제는 상품의 이름을 표시하면서, 각각의 상품 번호도 연결합니다.
html
<p>새로운 상품들</p>
<ul>
<li><data value="398">미니 케찹</data></li>
<li><data value="399">점보 케찹</data></li>
<li><data value="400">메가 점보 케찹</data></li>
</ul>
명세
Specification |
---|
HTML # the-data-element |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
data | ||||||||||||
value |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
같이 보기
- HTML
<time>
요소.