HTML Attributes

  • HTML Attributes are added to an HTML tag of an HTML element
  • HTML Attributes are added to provide additional information for the web browser
  • HTML attributes are always added to the open tag
  • An HTML Attribute consists of a name and a value and separated by an equal sign
<a href="http://scriptsbytes.com">Go to scriptsbytes.com</a>

This results to the following link below.

Go to scriptsbytes.com

IMPORTANT:

  • HTML Attributes names are case sensitive and it is recommended by the World Wide Web Consortium, W3C to use lowercase letters to name attributes and attribute values
  • HTML Attributes should always be enclosed in quotes usually double quotes and single quotes when the attricute value contains quotes e.g name=”SCRIPTSBYTES.COM” with double quotes and
    title=’ SCRIPTSBYTES.COM: the “best” tutorial website’
    for single quotes