9. Example of Applying External CSS in HTML.
<!-- html code -->
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="ext.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!-- external css code -->
h1 {
color: maroon;
margin-right: 50px;
}
body {
background-color: #aaaaaa;
}
Output
No Output Available