<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Horizontal Line color</title>
</head>
<body>
First Line
<hr color="red"> Second Line
<hr color="green"> Third Line
<hr color="blue">
</body>
</html> . Output=First Line
Second Line
Third Line
Definition=
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Horizontal Line color</title>
</head>
<body>
First Line
<hr color="red"> Second Line
<hr color="green"> Third Line
<hr color="blue">
</body>
</html> . Output=First Line
Second Line
Third Line
Definition=
hr line color
We can change the line colour, using colorattribute.
Details of attribute
- All html tag have chance to contain attributes
- Attributes always specified in the start tag (eg:<p class='cls'> => we cannot specified this in close tag </p>).
- These are just specifies some additional information about the elements.
HTML:Horizontal Line color
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: