In this tutorial we are introducing a color attribute for font elements. You can use plain english words to set color, or Hex Codes that represent specific color.
Hex Codes start with hashtags. You can find a list of them on this Wiki page.
Many combinations of colors are possible and you will have a lot of other options in CSS, once we are done with this HTML course. Don't try to memorize Hex Codes, because all those values are available on specialized sites - Hex Code Generators.
Sure, we can combine size and color attributes.
<!DOCTYPE html>
<html>
<head>
<title>Security Tutorials</title>
<meta charset="utf-8">
<meta name="description" content="Free Security Tutorials">
<meta name="keywords" content="it security, pentesting, hacking">
</head>
<body>
<p><font color="red">This font is red</font></p>
<p><font color="green" size="7">This font is green - size 7</font></p>
<p><font color="orangered" size="2">This font is orangered - size 2</font></p>
<h3><font color="#7C0A02">This H3 is done using HEXs</font></h3>
</body>
</html>
No comments:
Post a Comment