HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML Attributes

Attributes

 

 

HTML attributes are basically used for adding additional information to the tag, It gives some extra data or information about the relative tag which helps the tag in changing its behavior. They exist in the form of name="value" pairs.

 

Syntax:-

 

Its syntax is:- {attribute_name="attribute_value"}

 

Example:-

 

  • href attribute (used in tag)
  • src attribute (used in img tag)
  • width attribute (used in img tag)
  • height attribute (used in img tag)
  • accesskey attribute (used with all tags)
  • class attribute (used with all tags)
  • title attribute (used with all tags)
  • id attribute (used with all tags)
  • style attribute (used with all tags)
  • contenteditable attribute (used with all tags)

Code Explanation

All Tutorials related to HTML Basics

All Sections related to HTML