Agyan
adda
Run
Reset
Copy
HTML Tutorial › HTML Classes and IDs › Classes and IDs with CSS
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> .note { background: #fff8e1; padding: 10px; border-left: 4px solid orange; } .important { font-weight: bold; } #title { color: #1e3a8a; } </style> <h1 id="title">Classes and IDs</h1> <p class="note">This is a note.</p> <p class="note important">This note is also important.</p>
Result