How do i make two classes in one element?

How do i make two classes in one element?
0

#1
body { background-color: black; font-family: Monospace; color: green; } .pink-text { color: pink; } .blue-text { color: blue; }

Hello World!


#2

Simply put them in sequence in the tag’s class.

<h1 class="class1 class2 another-class">Content</h1>

Just an extra: The sequence of the classes you set in a tag can cause different styling, so be mindful of that. :slight_smile:


#3

sweet! thanks :grinning: