
This makes sense because HTML is a markup language, not a styling language. This tag got depreciated when HTML5 was introduced. This tag takes the color attribute, which accepts the color as a name or hex code value: Welcome to freeCodeCamp. How to Change Text Color Before HTML5īefore the introduction of HTML5, you'd use to add text to websites. We'll look at various methods, and we'll discuss which method is best. In this article, you will learn how to change the color of your text in HTML. In that case, you'll want to make the text color a lighter, brighter color to improve your website’s readability and accessibility. But sometimes you will want to change the text color to be more personalized.įor example, suppose you have a darker color as the background of your website. When you add text to your web pages, this text defaults to a black color. This is because it helps users learn what the web page is all about and what they can do there. Text plays a significant role on our web pages.
