El elemento <hr>
El elemento <hr> se usa para dibujar un línea horizontal. El
elemento sólo requiere un comando de apertura. El elemento es un elemento bloque.
El elemento es renderizado. Ejemplo:
<html>
<head>
<title>El Elemento hr</title>
</head>
<body>
El Documento HTML
<hr
/>
La Hoja de Estilo
<hr
/>
</body>
</html>
El estilo por defecto puede ser modificado fácilmente a través del atributo estilo.
Ejemplo:
<html>
<head>
<title>El Elemento hr</title>
</head>
<body>
Rojo a rayas
<hr
style="border-top: #ff0000 thin dashed; border-bottom-style: none;"
/>
Verde a rayas con márgenes
<hr
style="border-top: #66cc33 10px dashed; border-bottom-style: none; margin-left:
20px; margin-right: 20px; border-right-style: none; border-left-style: none;"
/>
Azul a puntos
<hr
style="border-top: #3300ff thick dotted; border-bottom-style: none;"
/>
Por defecto
<hr
/>
</body>
</html>
|