Objeto HTML DOM HR
Objeto de RH
O objeto HR representa um elemento HTML <hr>.
Acesse um objeto de RH
Você pode acessar um elemento <hr> usando getElementById():
Exemplo
var x = document.getElementById("myHR");
Criar um objeto de RH
Você pode criar um elemento <hr> usando o método document.createElement():
Exemplo
var x = document.createElement("HR");
Propriedades do Objeto de RH
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
Propriedades e eventos padrão
O objeto HR também suporta as propriedades e eventos padrão .
Páginas relacionadas
Referência HTML: tag HTML <hr>