24 Jun 2016

HTML Attributes:

Attributes:

  • HTML elements can have attributes
  • Attributes provide additional information about an element
  • Attributes are always specified in the start tag
  • Attributes come in name/value pairs like: name="value"


The lang Attribute:

  • The document language can be declared in the tag.
  • The language is declared in the lang attribute.
  • Declaring a language is important for accessibility applications (screen readers) and search engines:


My First Heading

My first paragraph.

Chapter Summary:

  • All HTML elements can have attributes
  • The HTML title attribute provides additional "tool-tip" information
  • The HTML href attribute provides address information for links
  • The HTML width and height attributes provide size information for images
  • The HTML alt attribute provides text for screen readers

Share this

0 Comment to "HTML Attributes:"

Post a Comment