Attributes:
Attribute is a Pieces of information attached to an element and defined in its start tag. It is the Aspects of information about a content object. Attributes may be fields, tags. etc.
Special Note:- Please Provide the values of the attributes in the double quotation sign as "value"
Now let us divide these attributes into three categories for our convince
1. Standard Attributes:-- Common for most of the elements or tags 2. Event Attributes:- The ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element. Below is a list of attributes that can be inserted into HTML tags to define event actions. 3. Optional Attributes:- The Attributes which are specialy for the tag or element and are optional to use
Standard Attributes:--
1. Id * value:-- id_name * Description:-- A unique id for the element through which it will be accesed later anywhere in the document. * Note:-- Not valid in base, head, html, meta, param, script, style, and title elements. 2. class * Value:-- class_rule or style_rule * Description:-- The class of the element which describes its style or some scripts * Note:-- Not valid in base, head, html, meta, param, script, style, and title elements. 3. Title * Value:-- tooltip_text * Description:-- A text to display in a tool tipfor the element when mouse comes over the element. * Note:-- Not valid in base, head, html, meta, param, script, style, and title elements. 4. Style * Value:-- style_definition * Description:-- An inline style definition partivular for the element to give some special look * Note:-- Not valid in base, head, html, meta, param, script, style, and title elements. 5. Dir * Value:-- ltr | rtl * Description:-- Sets the text directionof the element from left to right or right to left. * Note:-- Not valid in base, br, frame, frameset, hr, iframe, param, and script elements. 6. Lang * Value:-- language_code * Description:--Sets the language code * Note:-- 7. accesskey * Value:-- character * Description:--Sets a keyboard shortcut to access an element if user wants to use keyboard. * Note:-- 8. tabindex * Value:-- number * Description:--Sets the tab order of an element to enable tab key of the keyboard * Note:--
== Thanks and Regards Meetu Choudhary Founder: msdotnetmentor
For more details, visit http://www.msdotnetmentor.com/?p=262
|
No responses found. Be the first to respond and make money from revenue sharing program.
|