Thursday, December 27, 2018

Internal CSS

HTML with internal CSS:- 


<html>
<head>
<style>
body {background-color: blue;}
h1   {color: green;}
p    {color: brown;}
</style>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

OUTPUT:-


  • An internal CSS is used to define a style for a single HTML page.
  • An internal CSS is defined in the <head> section of an HTML page, within a <style> 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...