Article
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    API(s)
    Sencha-Touch
    Single Page App
    Bootstrap
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog

Home >> HTML5 >> Global attributes HTML 5
Global attributes HTML 5
Global attributes HTML 5


by Awadhendra Tiwari on 7/23/2011 5:22:23 PM

Views: 1566       Comments: 0

Global attributes HTML 5

The attributes listed below are supported by all HTML 5 tags.

HTML 5 global attributes

access key

Specifies shortcut key that can be used to access element.

<a href="http://www.mindstick.com/" accesskey="m">MINDSTICK</a>

class

We will use class attribute to specify css on element tag in html5.

contenteditable

Sets whether the user can edit the content or not. This is a boolean attribute. If true then user can edit content of element if false then user can not edit content of element. By default it is false.

<div contenteditable="true" style="width:300px;height:300px;overflow:auto;border:3px solid red">

</div>

contextmenu

This attribute specifies the context menu for an element in html5.

dir

This attribute specifies the direction of the text for an element in html5.

draggable

This attribute specifies that users are allowed drag element or not.

hidden

This attribute specifies whether element should visible or not. This is a Boolean attribute.

id

This attribute specifies the elements identity that should be unique. On scripting language we can access element via this id.

lang

This attribute specifies a language code for the content in an element in html5.

spellcheck

Specifies whether the element should have its spelling checked or not.

dropzone

Specifies what happens when dragged items/data is dropped in the element.

tabindex

Determine the tabbing order (when the user 'tabs' through the elements on the page).

title

Specifies extra information about an element

style

This attribute is used to apply css style on elements. We will used it as follows.

style="width:300px;height:300px;overflow:auto;border:3px solid red"

 

 

Report Abuse Form
Reason:    
 

Title :
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
     
 
Latest Article by Awadhendra TiwariRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Latest BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 4986
Advertisement
MindStick Cleaner
Advertise with Us
  
Copyright © 2009 - 2014MindStick. All Rights Reserved.