HTML DOM 범례 개체
범례 개체
Legend 개체는 HTML <legend> 요소를 나타냅니다.
범례 개체에 액세스
getElementById()를 사용하여 <legend> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myLegend");
범례 개체 만들기
document.createElement() 메서드를 사용하여 <legend> 요소를 만들 수 있습니다.
예시
var x = document.createElement("LEGEND");
범례 개체 속성
Property | Description |
---|---|
form | Returns a reference to the form that contains the legend |
표준 속성 및 이벤트
Legend 개체는 표준 속성 과 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <fieldset> 태그
HTML 참조: HTML <legend> 태그