html specific class color
snippet in html

html create class

user7302

<h1 class="write a name">H1 content</h1>

html specific class color

user6780

<!-- in the head element -->
<style> h1 { color:blue; } </style>

<!-- in the body element -->
<h1> text in blue because all "h1" element is in blue </h1>