CSS Text Color
CSS Tutorial » CSS Text Color
The color property is used to set the color of the text. For example the color is specified by:
1. color name - like "green"
2. HEX value - like "#00FF00"
3. RGB value - like "rgb(0,255,0)"
We can add Text Color "color"as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
Syntax:
Syntax: Internal & External CSS.
Syntax: Inline CSS inside of an HTML tag.
color: value;
Syntax: Inline CSS inside of an HTML tag.
<tag style="color:value";>Yor text here</tag>
Note: use external CSS instead.
Also check the following links:
How to create CSS Text Color - examples
You can try to execute the following code to change the color of a texton this page.
Example:
Example 1, How to create CSS Text Bold - examples:
<!DOCTYPE html>
<html>
<head>
<title>CSS Text Bold - examples - example</title>
<style>
div.color1 {
color: #00FF00;;
}div.color2 {
div.color3 {
color: red;
}
color: rgb(0,0,255);
}
</style>
</head>
<body>
<h1>CSS Text Color. The Color Property</h1>
<div class="color1">Your text here.</div>
<div class="color2">Your text here</div>
<div class="color3">Your text here</div>
<h2>CSS Text color. The color Property using inline CSS</h2>
<p style="color:blue;"> I'm a big, blue, <strong>paragraph</strong></p>
<h3>HTML simple Text bold.</h3>
<strong> I'm a big, blue, <strong>strong bold</strong> paragraph </strong>
</body>
</html>
Note: Use external CSS instead.
How to create HTML text color gradient - examples
CSS gradients let you display smooth transitions between two or more specified colors.
Example:
HTML text color gradient - examples:
How to add bullet colors - examples
<!DOCTYPE html>
<html>
<head>
<title>CSS Text Bold - examples - example</title>
<style>
body {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(to right, #FDFBFB, #EBEDEE 70%);
} .text {
text-transform: uppercase;
background: linear-gradient(to right, yellow 0%, red 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font: {
size: 20vw;
family: $font;
};
}
</style>
</head> <body>
<h1 class="text">Hello World</h1>
</body>
</html>
Linear Gradient - Top to Bottom (this is default) - examples
Example:
Linear Gradient - Top to Bottom - examples:
<!DOCTYPE html>
<html>
<head>
<style>
#gradient11 {
height: 250px;
background-color: red;
background-image: linear-gradient(red, yellow);
}
</style>
</head>
<body>
<h1>CSS Linear Gradient - Top to Bottom</h1>
<p>This linear gradient starts from the top red, transitioning to yellow:</p>
<div id="gradient11"></div>
<p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
</body> </html>
CSS text color, gradient, change, red, transparent, transition, code, example, property, rgb, fade
CSS Text Color - css 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.