StepsEasy
HTML Classes - Example
Run
Reset
Destroy & Close
← Back to lesson
Code Editor
html
<style> .highlight { background-color: yellow; } .important { font-weight: bold; color: red; } </style> <p class="highlight">This is highlighted.</p> <p class="important">This is important.</p> <p class="highlight important">Both styles applied.</p>
Result
Click "Run" to execute the code...
Loading runtime...
Ready
HTML | In-Browser Execution