Typography in CSS

 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

The Importance of Cybersecurity in the Digital Age

 The Importance of Cybersecurity in the Digital Age Introduction: In today's digital age, where technology is deeply intertwined with ev...