html specific class color

HTML
<!-- 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><h1 class="write a name">H1 content</h1>
Source

Also in HTML: