The class selector uses the class attribute name of the HTML element, and is defined with a code example Example: html create class <h1 class="write a name">H1 content</h1>