Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light

Blog Archive

Powered by Blogger.

Thursday, February 23, 2017

[HTML5] Attributes


# HTML Attributes


● HTML Attributes

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

● The lang Attribute

 The language of the document can be declared in the <html> tag.
The language is declared with the lang attribute.
Declaring a language is important for accessibility applications and search engines.

● The title Attribute

 Here, a title attribute is added to the <p> element. The value of the title attribute will be displayed as a tooltip when User mouse over the paragraph.

● The href Attribute

 HTML links are defined with the <a> tag. The link address is specified in the href attribute.

● Size Attributes

       HTML images are defined with the <img> tag.
      The filename of the source (src), and the size of the images (width and height) are all provided as attributes.

      ● The alt Attribute

       The alt attribute specifies an alternative text to be used, when an image can not be displayed. 

       The value of the attribute can be read by screen readers. This way, someone "listening" to the webpage, e.g. a blind person, can "hear" the element.

      ● HTML Attributes

       Below is an alphabetical list of some attributes often used in HTML.



          QuickEdit
          Unknown
          0 Comments
          Share This Post :

          You Might Also Like

          No comments:

          Post a Comment

          Follow @SunriseSunsetBlog