While writing code in CSS it is not reflecting while changing the colors

.blog-subtitles{
color: red;
}

Please link your repl (not invite). With just a style no one can help you.

3 Likes

Check to see if you have linked your CSS to your HTML. This can be done by doing…

<link href="style.css" rel="stylesheet" type="text/css" />

Just to note that this belongs in the <head> section of your HTML.

Also, another thing to check is to see if you missed a semi-colon above that line of CSS. If you missed even just one everything below that line wont work.

Final thing is to see if you added the class selector. This means if you have added in the HTML section of your code…

<div class="blog-subtitles">CONTENT</div>
2 Likes

You also have to run the code by clicking the ‘run’ button to display any changes made within the code. If you have your webpage itself open in a another tab/window, then you have to refresh the page.

2 Likes