CSS Basic: Text color and background color
How to set the color or background by using Hex color, RGB or images
In this article, we are going to talk about how to set the text color and background color.
Source code (Free coupon):
Inside the index page, we just have a paragraph with some text.
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><link rel="stylesheet" href="styles.css"></head><body><p>Welcome to ckmobile</p></body></html>
In the CSS file, we can say
p{color:blue;