color font css code example

Example 1: how bold text in css

p.normal {
  font-weight: normal;
}

p.thick {
  font-weight: bold;
}

p.thicker {
  font-weight: 900;
}

Example 2: css text

text-align: center, right, left, justify, start, end;
font-weight: lighter, 100, normal, 400, bold, 700, bolder, 900;
text-decoration: wavy, dashed, dotted, double, solid, underline, line-through, overline;
text-decoration: underline red;
line-height: normal;
letter-spacing: 2;
font-size: 100px;
font-family: 'Courier New', Courier, monospace;

Example 3: text color css

.class {
  color: white;
}

Example 4: text color css

body {
  color: blue;
}

h1 {
  color: green;
}

Example 5: css change text color

p{
	color: White;
}

Example 6: text color css

.YourClass {
  color: #ff0000;
}