HTML: Horizontal line color size

<!DOCTYPE html>
<html>

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

<body>

 First Line
 <hr size="10px" color="red"> Second Line
 <hr size="30px" color="green"> Third Line
 <hr color="blue">

</body>

</html> .    Output:-First Line

Second Line
Third Line
       Definition:-

hr line size


  • We can change the default line size using size attribute.
  • We can use more than one attribute.
  • In this example we have used color and size attributes.
  • HTML: Horizontal line color size HTML: Horizontal line color size Reviewed by Network security on April 29, 2019 Rating: 5

    No comments:

    Useful Information

    Powered by Blogger.