Atributo Id no prevalece a la class

    1. List item

Tell us what’s happening:
He creado el id en estilo y lo he incorporado al Elemento pero prevalece la información de Class
al ejecutar prueba, me dice que todos los pasos son correctos pero el última da error porque no aparece naranja el texto.

  **Your code so far**

<style>
body {
  background-color: black;
  font-family: monospace;
  color: green;
}
#orange-text {
  color: organge;
}

.pink-text {
  color: pink;
}
.blue-text {
  color: blue;
}
</style>
<h1 id="orange-text" class="pink-text blue-text">Hello world!</h1>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

Challenge: Override Class Declarations by Styling ID Attributes

Link to the challenge:

Welcome to the forum.

You have misspelled the word “orange” here. When I fix that, your code passes for me.

You are right! thanks!

1 Like