Thursday, December 27, 2018

Inline CSS

HTML with inline CSS:-


<html>
<body>

<h1 style="color:Red;">This is a Red Heading</h1>

</body>
</html>

OUTPUT:-  


  • An inline CSS is used to apply a unique style to a single HTML element.
  • An inline CSS uses the style attribute of an HTML element.

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