Which CSS property is used to change the text color of an element?
Text/Font Color:-
Syntax to change the text color:
body
{
color:color-name;
}
The example below shows how to change the color of the text,
<!DOCTYPE html>
<html>
<head>
<style>
h1 {
color:Yellow;
}
h2
{
color:Red;
}
</style>
</head>
<body>
<h1>
SlightBook
</h1>
<h2>
Online Learning
</h2>
</body>
</html>
Which CSS property controls the text size?
What are the correct CSS syntax for making all the <p> elements bold?
How do you display hyperlinks without an underline?
How do you make each word in a text start with a capital letter?
Which property is used to change the font of an element?