C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Html »

Standard Attributes:


Posted Date: 17 Oct 2008    Resource Type: Code Snippets    Category: Html
Author: Miss Meetu ChoudharyMember Level: Diamond    
Rating: 1 out of 5Points: 25



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



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Standard Attributes  .  Meetu Choudhary  .  Meetu  .  Attributes  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to edit Scroll bar style
Previous Resource: Event Attributes
Return to Discussion Resource Index
Post New Resource
Category: Html


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use