hr tag font style code example

Example 1: how to style an hr tag

/* Red border */
hr.new1 {
  border-top: 1px solid red;
}

/* Dashed red border */
hr.new2 {
  border-top: 1px dashed red;
}

/* Dotted red border */
hr.new3 {
  border-top: 1px dotted red;
}

/* Thick red border */
hr.new4 {
  border: 1px solid red;
}

/* Large rounded green border */
hr.new5 {
  border: 10px solid green;
  border-radius: 5px;
}

Example 2: what does in html mean

<p>HTML is a language for describing web pages.....</p>

<!--the hr tag stands for horizontal rule and will make a line across your page at that point-->
 <hr>

 <p>CSS defines how to display HTML elements.....</p>

Tags:

Css Example