How do I change text colors in html without changing the background color too?
Well, I am quite new to html, I've been using it for a while. But i seem to have one problem when editing sites - I can't find a specific code to only change text color.
I know the code is <body bgcolor="(...)" text="(...)"> to change the background with it, but I am yet to find a way to alter only the text color. If someone could provide me with a code to change a color, I would be most pleased.
Public Comments
- You can put a font tag in front on the text that you wish to change like this: <font color="ff0000">Red Text</font> For the body, change what you have to this: <body text="ff0000"> That will make all text red. You don't have to declare a background color, but if you want it to be the same on all browsers (the default color might not be white on someone elses computer) you can do this: <body bgcolor="ffffff" text="ff0000"> You'll end up with a white background with red text.
- You can use the span tag: <span style="color:#ff0000;">Text here will be red</span>
- <font color="red">text here</font> you can change the red to any color you want hope to get best answer in thiz
Powered by Yahoo! Answers