ចំណាំ − អ្នកអាចពិនិត្យបញ្ជីពេញលេញនៃ HTML Color Name ជាមួយនឹងកូដរបស់វា។
9.6. Setting Font Color
We can give text any font color we want using the color attribute. To set the color, we can use either the color name or the color's hexadecimal code.
Note − You can check the full list of HTML color names with their codes.
Source Code:
<!DOCTYPE html>
<html>
<head>
<title>Font Color and Font Face Example</title>
</head>
<body>
<!-- Using Color name -->
<p>
<font color="red" face="Khmer OS Battambang">
នេះគឺជាអត្ថបទពណ៌ក្រហម
</font>
</p>
<!-- Using color hexadecimal code -->
<p>
<font color="#008000" face="NiDA Funan">
នេះគឺជាអត្ថបទពណ៌បៃតង
</font>
</p>
</body>
</html>Result:
color: https://htmlcolorcodes.com/
Watch the video:


