HTML Text Color
HTML Tutorial » HTML Text Color
We can add color to a text as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the section
External - by using an external CSS file
Adding color to a text using CSS inline - examples
Example:
Example 1 Adding color to a text using CSS inline:
<!DOCTYPE html>
<html>
<head>
<title>Types of adding color to a text using CSS inline</title>
</head>
<body>
<h1>Types of adding color to a text using CSS inline</h1>
<span style="color:#0033FF">This is my text color #0033FF (blue)</span>
<p style="color:#FF0000">This is my text color red #FF0000</p>
<p style="color:red">This is my text color red</p>
<p><font color="green">This is my text color green</font></p>
<p><font size="3" color="#00ff00">Font size 3 and Green color</font></p>
</body>
</html>
Note: Browser Support All
Adding color to a text using CSS internal - examples
Example:
Example 1 Adding color to a text using CSS internal - examples:
<!DOCTYPE html>
<html>
<head>
<title>Adding color to a text using CSS internal - examples</title> <style>
span {
color: #0033FF;
}
p {
color: #FF0000;
}
</style>
</head>
<body>
<h1>Types of adding color to a text using CSS inline</h1>
<span>This is my text color #0033FF (blue) using internal CSS style</span>
<p>This is my text color red #FF0000 using internal CSS style</p>
</body>
</html>
For external CSS just make a file as style.css and add under it
<style>
span {
color: #0033FF;
}
p {
color: #FF0000C;
}
</style> and replace this with <link rel="stylesheet" href="style.css" type="text/css"/>
html text color
HTML Text Color - html tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.