Typography in CSS
CSS provides several properties to control the appearance of text on a web page, including:
font-family: Specifies the font family to be used for the text. Example:
css
body {
font-family: Arial, sans-serif;
}
font-size: Specifies the size of the text. Example:
css
h1 {
font-size: 32px;
}
font-weight: Specifies the weight (i.e. boldness) of the text. Example:
css
p {
font-weight: bold;
}
No comments:
Post a Comment