Selena Selena - 1 month ago 6
CSS Question

CSS font color style not applied

Why is the font color for paragraph text not changing to red?

I haven't applied any other CSS styles, so this shouldn't be an issue with style overriding right?



<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">

<style>
p {
color=red;
}
</style>

</head>

<body>
<p id="msg1">message 1</p>

</body>

</html>




Answer

color: red; would be the correct CSS-syntax. Good luck!