How can I add a uppercase class to a <h1 > element? like this <h1 class="title".top vacation spot</h1>

https://www.codecademy.com/paths/web-development/tracks/styling-a-website/modules/learn-css-selectors-visual-rules/lessons/css-setup-selectors/exercises/multiple-classes :confused:

Hello @net9943185968. Do you mean have multiple classes attributed to the same tag? If so, you can separate the class names with a space:

<p class="class1 class2">

If you mean how do you target multiple classes, you can list the in CSS:

.class1, .class2 {
/*some CSS*/
}

I hope this helps!

1 Like