So I’ve been studying the basics with CSS and don’t quite understand multiple classes.
For example my heading needs to be red and bold. in CSS the rule would be:
in HTML the code would be -
< h1 class=“red bold”> Im learning to code
This seems to work fine in JS fiddle. However when I try and add a third into the class (such as font-size 18px or font-family it doesn’t work.
Surely it is easier to have class=“headline”> Breaking News!
font-size: 20 px;
and then you can customise the headline as many times as you want to how you want it to look?