css class by text in class code example
Example 1: class html
<p class="ThisIsAClassName">HI</p>
Example 2: css calss
.ThisIsAClassName{
font-family: sans-serif;
}
<p class="ThisIsAClassName">HI</p>
.ThisIsAClassName{
font-family: sans-serif;
}