--- title: '
: 문서 본문 요소' slug: Web/HTML/Element/body tags: - Element - HTML - Reference - Web translation_of: Web/HTML/Element/body ---HTML <body> 요소는 HTML 문서의 내용을 나타냅니다. 한 문서에 하나의 <body> 요소만 존재할 수 있습니다.
| 콘텐츠 카테고리 | 구획 루트. |
|---|---|
| 가능한 콘텐츠 | 플로우 콘텐츠. |
| 태그 생략 | 태그 내의 첫번째 것이 공백, 주석, {{HTMLElement("script")}}요소, {{HTMLElement("style")}}요소가 아닐경우 시작태그를 생략할수 있습니다. body 요소가 시작태그를 가지고있고, 바로 뒤에 주석이 따라오지 않는다면 종료 태그를 생략할수 있습니다. |
| 가능한 부모 요소 | {{HTMLElement("html")}} 요소의 두번째 요소여야 합니다. |
| 암시적 ARIA 역할 | document |
| 가능한 ARIA 역할 | 없음 |
| DOM 인터페이스 | {{domxref("HTMLBodyElement")}}
|
이 요소는 전역 특성을 포함합니다.
'#') 문자로 시작)가 변경됐을 때 호출할 함수.<html>
<head>
<title>문서 제목</title>
</head>
<body>
<p>문단입니다</p>
</body>
</html>
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('HTML WHATWG', 'sections.html#the-body-element', '<body>')}} | {{Spec2('HTML WHATWG')}} | Changed the list of non-conforming features. |
| {{SpecName('HTML5 W3C', 'sections.html#the-body-element', '<body>')}} | {{Spec2('HTML5 W3C')}} | Obsoleted the formerly deprecated attributes. Defined the behavior of the non-conforming and never standardized margintop, marginleft, marginright and marginbottom. Added the on* attributes. |
| {{SpecName('HTML4.01', 'struct/global.html#h-7.5.1', '<body>')}} | {{Spec2('HTML4.01')}} | Deprecated the alink, background, bgcolor, link, text and vlink attributes. |
{{Compat("html.elements.body")}}