HTMLHTML Attributes

Attributes provide extra information about elements. Example attributes include:

  • id → unique identifier
  • class → group for styling
  • style → inline CSS
  • title → tooltip text
<p id='intro' class='highlight' title='Hello!'>Hover over me to see tooltip.</p>