HTML Attributes


HTML 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:

    The title Attribute

    HTML paragraphs are defined with the tag.
    In this example, the element has a title attribute. The value of the attribute is "About W3Schools":

 
Video for free © 2013 | Plantilla diseñada por Ciudad Blogger