Objeto HTML DOM Ul
Objeto UL
El objeto Ul representa un elemento HTML <ul>.
Acceder a un objeto UL
Puede acceder a un elemento <ul> usando getElementById():
Ejemplo
var x = document.getElementById("myUL");
Crear un objeto UL
Puede crear un elemento <ul> utilizando el método document.createElement():
Ejemplo
var x = document.createElement("UL");
Propiedades del objeto 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 |
Propiedades y eventos estándar
El objeto Ul admite las propiedades y los eventos estándar .
páginas relacionadas
Tutorial HTML: Listas HTML
Referencia HTML: etiqueta HTML <ul>