•  HTML attributes provide  information about HTML elements. 
  • Attributes define with in start tags.
  • Attributes used name/value like this name="value"

 

1.  id: Unique identifier for an HTML element.

<div id="Unique_ID">HTML Tutorial On Tutorialsonweb</div>

2. class: Specifies one or more class names for an HTML element. Used for styling  CSS or JavaScript selection.

<p class="class_name_here">HTML Tutorial On Tutorialsonweb</p>

3.  style: Defines inline CSS styles with in starting tag

<span style="color: red; font-weight: bold;">HTML Tutorial On Tutorialsonweb</span>