Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73845

My class/id/highlight tags are not working

$
0
0

i'm new to coding. So basically i'm doing an online web developers course before entering a bootcamp and i'm using Sublime Text for my code, i'm super stuck!

So in this exercise the styling is done in the html. The problems are with: John body {my code color: red; The styling does not show!

<!DOCTYPE html>
<html>
<head>
    <title>Specificity</title>
    <style type="text/css">
        body {
            color: red;
        }
        ul { 
        color: blue;
         }
         li {
            color: orange;

        .highlight {
            color: yellow;
         }
         #special {
            colour: pink;
         }
    </style>
</head>
<body>
<p>Hello!!!</p>
<ul>
    <li id="special" class="highlight">John</li>
    <li>Paul</li>
    <li class="highlight">George</li>
    <li>Ringo</li>
</ul>
</style>
</body>
</html>

Viewing all articles
Browse latest Browse all 73845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>