HTML Tags & Elements


definition:

  • HTML stands for HyperText Markup Language.
  • It is a standard markup language for web page creation.
  • It allows the creation and structure of sections, paragraphs, and
    links using HTML elements (the building blocks of a web page)
    such as tags and attributes.

Tags:


HTML class Attribute

  • The class attribute is used to
    specify a class for an HTML
    element
  • Multiple HTML elements can
    share the same class

HTML id Attribute

  • id attribute is used to specify a
    unique id for an HTML
    element.
  • You cannot have more than
    one element with the same id
    in an HTML document.

TAGS