HTML DOM Ol 개체
올 개체
Ol 개체는 HTML <ol> 요소를 나타냅니다.
Ol 개체에 액세스
getElementById()를 사용하여 <ol> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myOl");
Ol 개체 만들기
document.createElement() 메서드를 사용하여 <ol> 요소를 만들 수 있습니다.
예시
var x = document.createElement("OL");
Ol 개체 속성
Property | Description |
---|---|
compact | Not supported in HTML5. Use style.lineHeight instead. Sets or returns whether the list should render smaller than normal, or not |
reversed | Sets or returns whether the list order should be descending or not |
start | Sets or returns the value of the start attribute of an ordered list |
type | Sets or returns the value of the type attribute of an ordered list |
표준 속성 및 이벤트
관련 페이지
HTML 참조: HTML <ol> 태그