일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- UI
- node.js
- HTML
- keyboardEvent
- node
- ES5
- js
- innerText
- beforeinput
- modal
- javascript
- Empty
- es6
- nodeValue
- addEventListener
- Temporal dead zone
- for loop
- Event
- keyup
- css:position
- CSS
- innerHTML
- dotenv
- react
- Dom
- a11y
- Review
- yet
- textContent
- TypingEffect
- Today
- Total
the murmurous sea
HTML5: data- 본문
for Embedding custom non-visible data with the data-* attributes
-
Any attribute that starts with data- will be treated as a storage area for private data. Additionally, this won't affect the layout or presentation.
-
A custom data attribute is an attribute in no namespace whose name starts with the string "data-", has at least one character after the hyphen, is XML-compatible, and contains no ASCII upper alphas.
-
these attributes are intended for use by the site's own scripts, and are not a generic extension mechanism for publicly-usable metadata.
-
Every HTML element may have any number of custom data attributes specified, with any value.
-
User agents must not derive any implementation behavior from these attributes or values. Specifications intended for user agents must not define these attributes to have any meaningful values.
-
element . dataset
Returns a DOMStringMap object for the element's data-* attributes.
-
Hyphenated names become camel-cased. For example, data-foo-bar="" becomes element.dataset.fooBar.
read more:
https://dololak.tistory.com/364
https://html.spec.whatwg.org/multipage/dom.html#domstringmap
'#dev > 개념정리' 카테고리의 다른 글
JS ES5: forEach vs map (0) | 2020.04.29 |
---|---|
Tree of nodes / DOM (0) | 2020.04.22 |
CSS: Grid (0) | 2020.04.16 |
CSS: vertical alignment - centering (0) | 2020.04.15 |
HTML. semantic / non-semantic elements (0) | 2020.04.13 |