<!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:-
We can change the default width using width attribute.
<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
HTML:- horizontal line color width
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: