link tag in html or linking external style sheets to html

The <link> tag defines a link between a document and an external resource.
The <link> tag is used to link to external style sheets.


<!DOCTYPE html>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>

<h1>I am formatted with a linked style sheet</h1>
<p>Me too!</p>

</body>
</html>

Output:

I am formatted with a linked style sheet

Me too!

Comments

Popular posts from this blog

Headings In HTML

Introduction and Format of HTML

Font Tag