Search code examples
htmlcssopera

Css does not change text color in Opera


I'm learning to use css external style. The content is just a sentence and css will change the sentence color to red. I tried it on Codepend.io and IE and it works fine. But in Opera, the sentence color doesn't turn red. I'm using Opera 37.0.2178.43. So how can I make Opera show the text color?

p {color:red;}
<html lang="vi">
    <head>
        <meta charset="utf-8" />
        <title>Embedding CSS in External Styles</title>
        <link rel="stylesheet" href="style.css" />
    </head>	
    <body>
        <p>This is a paragraph</p>
    </body>
</html>

Here's the pictures enter image description here


Solution

  • Found the problem. It's because I set the Encoding of html file to Unicode. Thanks @Marcos Pérez Gude