Objeto HTML DOM Ul
Objeto Ul
O objeto Ul representa um elemento HTML <ul>.
Acesse um objeto Ul
Você pode acessar um elemento <ul> usando getElementById():
Exemplo
var x = document.getElementById("myUL");
Criar um objeto Ul
Você pode criar um elemento <ul> usando o método document.createElement():
Exemplo
var x = document.createElement("UL");
Propriedades do 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 |
Propriedades e eventos padrão
O objeto Ul suporta as propriedades e eventos padrão .
Páginas relacionadas
Tutorial HTML: Listas HTML
Referência HTML: tag HTML <ul>