QP School
Properties and values in CSS3 - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: CSS3 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=5)
+--- Thread: Properties and values in CSS3 (/showthread.php?tid=5160)



Properties and values in CSS3 - Qomplainerz - 07-26-2023

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.