Document.head
예제
<!doctype html>
<head id="my-document-head">
<title>Example: using document.head</title>
</head>
<script>
let theHead = document.head;
console.log(theHead.id); // "my-document-head";
console.log(theHead === document.querySelector("head")); // true
</script>
참고
명세
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'Document.head' in that specification. |
Living Standard | Initial definition. |
HTML 5.1 The definition of 'Document.head' in that specification. |
Recommendation | |
HTML5 The definition of 'Document.head' in that specification. |
Recommendation |
브라우저 호환성
BCD tables only load in the browser