QP School

Full Version: Properties and values in CSS3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Example:

<!DOCTYPE html>
<html>
<head>
  <title>Properties and Values Example</title>
  <style>
    /* Apply a blue text color and 20px font size to the paragraph elements */
    p {
      color: blue;
      font-size: 20px;
    }
  </style>
</head>
<body>
  <p>This is a paragraph with blue text color and 20px font size.</p>
</body>
</html>

Explanation:

CSS properties are used to define the appearance of HTML elements. In this example, the color property is used to apply a blue text color, and the font-size property sets the font size of the p element to 20 pixels.