This is basic HTML/CSS, and I cant really believe, that you did some research. Anyway, that’s how it works:
CSS
#first {
Color: red;
}
HTML
<div id="first">
<p> some text </p>
<p> some other text </p>
</div>
If you want to style classes you have to write .first, for ID’s #first
EDIT: Where are my thoughts? The class Tag is not a valid HTML Tag, if you need a wrapper you can use the div Tag, for example. BTW: An Id has to be unique, if you want to style multiple div’s red, use a class like this:
<div class="first">
<p> some text </p>
<p> some other text </p>
</div>
2
solved Creating class in CSS is correct by this method?