slide-2
slide-2
<head>
<link rel=“stylesheet” type="text/css" href="..." />
</head>
Content type or
MIME(multipurpose
Internet Mail Extension)
type , which specify the
language or extension for
stylesheet.
Example code:
<html>
<head>
<link rel="stylesheet" type="text/
css" href=“style.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Create External CSS File :“style.css”
Body{
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
Advantages of Using External
CSS
• The biggest advantages of external style
sheets are that they can be applied to
multiple documents while being managed
from a single style sheet.
• This improves efficiency and convenience of
designing.
• It is used to keep the website consistent or to
maintain the uniformity in the website.
• Easy to implement.
• This is especially useful if you work with a
team of people to create your website.