DIGITAL MARKETING AGENCY

HELPING YOU BUILD YOUR BUSINESS STRONGER!

Change Text Color With CSS
KENNETH ERVIN YOUNG
KENNETH ERVIN YOUNG
Kenneth Ervin Young is a Business and Digital Marketing Coach, a Full-Stack Website Developer, a Georgia Institute of Technology Electrical Engineer, a Husband, and a Father. Kenneth resides in Tampa, Florida, USA.
All Posts

How to: Change Text Color With CSS

By adding the following code to the <style>


body {
color: blue;
}


h1 {
color: green;
}


And the following code to the <body>


<body>


<h1>This is heading 1</h1>


<p>This is an ordinary paragraph. Notice that this text is blue. The default text color for a page is defined in the body selector.</p>


</body>


You will change the color to the color that is specified in the style. There are lots of different colors that can be chosen from, so choose whatever color you love!

SHARE THIS POST

Share on email
Share on linkedin
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

RELATED POSTS