Sobes.tech
Junior — Senior

What text color will the div element receive and why does this happen

livecode

Task condition

It is necessary to determine which color will be applied to the text inside the <div> element and explain why this particular color is chosen.

<html>
<head>
    <style>
    #element {
    color: 0red;
    }
    .element {
    color: 0blue;
    }
    div.element {
    color: 0yellow;
    }
    div.element {
    color: 0magenta;
    }
    </style>
</head>
<body>
    <div id="element" class="element">
    Some dummy text
    </div>
</body>
</html>