HTML:- horizontal line color width

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Horizontal Line width</title>
</head>

<body>

 First Line
 <hr width="50%" size="10px" color="red"> Second Line
 <hr width="80%" color="green"> Third Line
 <hr color="blue">

</body>

</html>.     Output:-First Line

Second Line
Third Line
     Definition:-

hr line width


  • We can change the default width using width attribute.
  • HTML:- horizontal line color width HTML:- horizontal line color width Reviewed by Network security on April 29, 2019 Rating: 5

    No comments:

    Useful Information

    Powered by Blogger.