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
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.
1. onclick * Value:-- script * Description:-- Sepcifies what action to be performed on a mouse click * Note:--Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 2. ondblclick * Value:-- script * Description:-- Sepcifies what action to be performed on a mouse double click * Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 3. onmousedown * Value:-- script * Description:--Sepcifies what action to be performed when mouse button is pressed * Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 4. onmouseup * Value:-- script * Description:-- Sepcifies what action to be performed when mouse button is released * Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 5. onmouseover * Value:-- script * Description:-- Sepcifies what action to be performed when mouse pointer moves over an element * Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 6. onmousemove * Value:-- script * Description:-- Sepcifies what action to be performed when mouse pointer moves * Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 7. onmouseout 1. Value:-- script 2. Description:-- Sepcifies what action to be performed when mouse pointer moves out of an element 3. Note:-Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 8. onkeypress * Value:-- script * Description:-- Sepcifies what action to be performed when key is pressed and released * Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 9. onkeydown * Value:-- script * Description:-- Sepcifies what action to be performed when key is pressed. * Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 10. onkeyup * Value:-- script * Description:-- Sepcifies what action to be performed when key is released * Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements. 11. onLoad * Value:-- script * Description:--Script to be run when a document loads * Note:-Window Events Only valid in body and frameset elements 12. onunload * Value:-- script * Description:--Script to be run when a document unloads * Note:- Window Events Only valid in body and frameset elements 13. onchange * Value:-- script * Description:-- Script to be run when the element changes * Note:- Form Element Events Only valid in form elements. 14. onsubmit * Value:-- script * Description:-- Script to be run when the form is submitted * Note:- Form Element Events Only valid in form elements. 15. onreset * Value:-- script * Description:-- Script to be run when the form is reset * Note:- Form Element Events Only valid in form elements. 16. onselect * Value:-- script * Description:-- Script to be run when the element is selected * Note:- Form Element Events Only valid in form elements. 17. onblur * Value:-- script * Description:-- Script to be run when the element loses focus * Note:- Form Element Events Only valid in form elements. 18. onfocus * Value:-- script * Description:-- Script to be run when the element gets focus * Note:- Form Element Events Only valid in form elements.
== Thanks and Regards Meetu Choudhary Co-Founder: msdotnetmentor
For more details, visit http://www.msdotnetmentor.com/?p=262
|