Pages

Wednesday, December 19, 2012

HTML Attributes



HTML Tip: Use Lowercase Attributes

Attribute names and attribute values are case-insensitive.
However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation.
Newer versions of (X)HTML will demand lowercase attributes.

HTML Attributes Reference

A complete list of legal attributes for each HTML element is listed in our: HTML Tag Reference.
Below is a list of some attributes that can be used on any HTML element:






AttributeDescription



  • class   Specifies one or more classnames for an element (refers to a class in a style sheet
  • id     Specifies a unique id for an element
  • style     Specifies an inline CSS style for an element
  • title     Specifies extra information about an element (displayed as a tool tip)
Drag Over the mouse to "heelo" and see title funsction

<your tag object title="any hting">hello</tagboject>

No comments:

Post a Comment