HTML

HTML Class Attribute:
Class attribute is used to define styles for many elements.We can use class attribute in any html element.Class attribute will have the same format and same styles for all elements.
EX
OUTPUT
HTML Id Attribute:
  • The id  attribute specifies a unique id for an HTML element 
  • The id  attribute specifies a unique id for an HTML element
  • the value must be unique within the HTML document.
  • By using this we can implement styles for any html element.
EX
OUTPUT