Objeto de recursos humanos HTML DOM
Objeto de recursos humanos
El objeto HR representa un elemento HTML <hr>.
Acceder a un objeto HR
Puede acceder a un elemento <hr> usando getElementById():
Ejemplo
var x = document.getElementById("myHR");
Crear un objeto de recursos humanos
Puede crear un elemento <hr> utilizando el método document.createElement():
Ejemplo
var x = document.createElement("HR");
Propiedades del objeto HR
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 |
Propiedades y eventos estándar
El objeto HR también admite las propiedades y eventos estándar .
páginas relacionadas
Referencia HTML: etiqueta HTML <hr>