educative.io

Identify the proper way to give the header element two identifying values:

1. <h1 class="recipes" class="header">My Favorite Recipes</h1>
```Why this option is wrong when an element can have two classes?

Both classes need to reside in the same class attribute. In that block of code, you wouldn’t be able to use the header class because it’d be ignored.

Let me know if this helps!

1 Like