Hi, I'm Jacob. Enjoying devFlipCards? Buy me a coffee

4. How do you change the text color in CSS?

You can change the text color using the color property. You can use color names, hexadecimal color codes, RGB, RGBA, HSL, or HSLA values.

/* / Examples */ p { color: blue; /* Color name */ } h1 { color: #ff0000; /* Hexadecimal code */ } h2 { color: rgb(255, 0, 0); /* RGB */ } h3 { color: rgba(255, 0, 0, 0.5); /* RGBA (with transparency) */ } h4 { color: hsl(0, 100%, 50%); /* HSL */ } h5 { color: hsla(0, 100%, 50%, 0.5); /* HSLA (with transparency) */ }
Struggling to find common date to meet with your friends? Try our new tool
commondate.xyz