Tag attributes

Add properties to your HTML elements!

  • id: Must be unique
  • class: May be shared by multiple elements
<div class="awesome-item" id="this-item"></div>
<span class="awesome-item"></span>

Both attributes are widely used by CSS and JavaScript to apply a custom style to a web page.