Dino Geek, try to help you

How to apply color to text in CSS?


To apply color to text in CSS, you use the `color` property. The value can be a named color, a hex code, an rgb value, or an hsl value.

Here is an example:

```
p { color: red;
}

/* OR */

p { color: #ff0000;
}

/* OR */

p { color: rgb(255, 0, 0);
}

/* OR */

p { color: hsl(0, 100%, 50%);
}
```

All these examples set the text color of `

` elements to red.

The `color` property only sets the color of the text. It does not affect the color of the background of an element, borders, or other parts of the element box.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use