AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

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.
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:

CSS text color gradient |


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 {
color: red;
}

div.color3 {
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
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news 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
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Error: Unable to connect to MySQL. Debugging errno: 1045 Debugging error: Access denied for user 'u142985959_ager'@'localhost' (using password: YES)