same div different p css same class code example
Example 1: html create class
<h1 class="write a name">H1 content</h1>
Example 2: html specific class color
<!-- 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>