HTML DOM UI 개체
울 오브젝트
Ul 객체는 HTML <ul> 요소를 나타냅니다.
Ul 개체에 액세스
getElementById()를 사용하여 <ul> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myUL");
Ul 객체 생성
document.createElement() 메서드를 사용하여 <ul> 요소를 만들 수 있습니다.
예시
var x = document.createElement("UL");
Ul 개체 속성
Property | Description |
---|---|
compact | Not supported in HTML5. Use
style.lineHeight instead. Sets or returns whether the unordered list should render smaller than normal, or not |
type | Not supported in HTML5. Use
style.listStyleType instead. Sets or returns the value of the type attribute of an unordered list |
표준 속성 및 이벤트
관련 페이지
HTML 튜토리얼: HTML 목록
HTML 참조: HTML <ul> 태그