CSS supports multiple font properties.
These include font family, font size, font weight, font variants, and more
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorials</title>
<style>
.text-bold {
font-size: 18px;
font-weight: bold;
}
</style>
</head>
<body>
<p class="text-bold">
An Operating System acts as a communication bridge (interface) between the user and computer hardware.
The purpose of an operating system is to provide a platform on which a user can execute programs
in a convenient and efficient manner.
</p>
</body>
</html>
Font Family
The font-family property sets the font face, or typeface, in an element.Its value is one or more font-names, separated by commas.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorials</title>
<style>
.font {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<p class="font">
An Operating System acts as a communication bridge (interface) between the user and computer hardware.
The purpose of an operating system is to provide a platform on which a user can execute programs
in a convenient and efficient manner.
</p>
</body>
</html>
No comments:
Post a Comment