Crear una clase .titulosecundario que inicialice el borde superior e inferior con ancho de 2 pixeles y los bordes laterales con cero pixel. A su elección queda el estilo y color.
<!DOCTYPE html> <html> <head> <title>Problema</title> <meta charset="UTF-8"> <link rel="StyleSheet" href="estilos.css" type="text/css"> </head> <body> <h1 class="titulosecundario">Prueba de estilos de bordes en css.</h1> </body> </html>
.titulosecundario{
background-color:#ffffcc;
text-align:center;
font-family:verdana;
font-size:40px;
border-top-width:2px;
border-bottom-width:2px;
border-right-width:0px;
border-left-width:0px;
border-top-style:dotted;
border-bottom-style:dotted;
border-top-color:#ff0000;
border-bottom-color:#ff0000;
}