HTML TEXT COLOUR:-
<html>
<body>
<h1 style="color:green;">This is a heading</h1>
<p style="color:pink;">This is a paragraph.</p>
</body>
</html>
<html>
<body>
<h1 style="color:green;">This is a heading</h1>
<p style="color:pink;">This is a paragraph.</p>
</body>
</html>
OUTPUT:-
- The color property defines the text color for an HTML element.
- EXAMPLE:- <h1style="color:brown;">This is a heading</h1>
No comments:
Post a Comment