Thursday, December 27, 2018

External CSS

HTML with external CSS:- 


<html>
<head>
  <link rel="stylesheet" href="styles.css">
</head>
<body>

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

</body>
</html>

OUTPUT:- 


  • An external style sheet is used to define the style for many HTML pages.
  • With an external style sheet, you can change the look of an entire web site, by changing one file!
  • To use an external style sheet, add a link to it in the <head> section of the HTML page.

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