Wednesday, December 26, 2018

Text colour.

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>

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

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...