Trainer Riad Thalji Website

HTML Tutorial

HTML Tutorial

by Trainer Riad Thalji

Color Names

  • Direct color names can be used to specify colors for different HTML parts
  • Example color names are white, black, red, green, blue, yellow, brown, gray, darkgray, darkred, darkgreen, lightred, light green, .. etc.
  • Specifying a color for an HTML Tag can be done through using the style tag.

Example:

<!doctype html>
<html>
<body>
<p style="color: gray">
Any color whatever it be, is a combination of three colors:
</p>
<ul>
<li style="color: red">Red </li>
<li style="color: green">Green </li>
<li style="color: blue">Blue </li>
</ul>
</body>
</html>

The result will be:




Join Our Coming PMP Prep Course

Delivered by Trainer

Riad Thalji