- id: Unique, used for one element.
- class: Can be used for multiple elements.
✔ Example:
<p id="intro">This is unique.</p>
<p class="highlight">This is styled text.</p>
<p class="highlight">Another styled text.</p>
✔ Example:
<p id="intro">This is unique.</p>
<p class="highlight">This is styled text.</p>
<p class="highlight">Another styled text.</p>
Leave a Reply