<!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:-
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>
<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
HTML: Horizontal line color size
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: