Wednesday, December 26, 2018

Style.

HTML STYLE:-

<html>
<body>

<p>I am normal</p>
<p style="color:yellow;">I am Akash.</p>
<p style="color:green;">I am Ansh.</p>
<p style="font-size:150px;">I am Operator.</p>

</body>
</html>

OUTPUT:- 

  • Setting the style of an HTML element, can be done with the <style> attribute.
  • SYNTAX:- <tagnamestyle="property:value;">.

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...