HTML with CSS fonts:-
<html>
<head>
<style>
h1 {
color: green;
font-family: verdana;
font-size: 150%;
}
p {
color: pink;
font-family: courier;
font-size: 200%;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<html>
<head>
<style>
h1 {
color: green;
font-family: verdana;
font-size: 150%;
}
p {
color: pink;
font-family: courier;
font-size: 200%;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
OUTPUT:-
- The CSS color property defines the text color to be used.
- The CSS font-family property defines the font to be used.
- The CSS font-size property defines the text size to be used.
No comments:
Post a Comment