Tags and Global Attributes

Most HTML tags will allow attributes. The list below are global attributes that work with almost all HTML Tags.

  • class - Defines a classname.
  • data- - Data Attribute. Used to add custom attributes. Ex: data-id, data-name, etc
  • id - Defines an ID.
  • style - Inline CSS styles.
  • title - A title to display when the element is hovered.

Help Us to Help You

This website and it's tutorials are only made possible with your support. Support money goes towards keeping our servers online.


Link to Us

Spread the word! Let people know about our tutorials by placing links on blogs, websites, forums and other places.


Copyright 2019 Step By Step HTML. All Rights reserved.