How do I change the text color for a specific piece of text when I have a text color set inside the body tag. It doesn't seem to work. Am I doing something wrong or is there a better way of going around this?
<body style="background-color: black; color: white"> <p>Hello!</p>
Hope this wasn't confusing as I am not the best at explaining things!
If I understood your question right, you want to change the color of the "Hello,"? but not the rest of the body, If so: you can just use a seperate style for the p tag:
<p style="color: red">Hello!</p>
Sorry, if I didn't understand the question properly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.