HTML5 Global Properties

Source: Internet
Author: User

Global properties: They are used to configure the behavior common to all elements. Global attributes can be used on any element, but this does not necessarily lead to meaningful or useful changes.

AccessKey: property to set one or several shortcut keys to select the element on which the page is on.

For example: <input type= "text" accesskey= "n"/>

Class properties   Learn the front end all know the

id attribute above. The

Contenteditable property   is a new property of HTML5, and is intended to allow users to modify the content on the page.

For example: <p contenteditable= "true" >it is raining right now</p>

ContextMenu: Used to set the shortcut menu for the element. The menu bounces out when it's triggered. There are currently no mainstream browsers that support the ContextMenu property.

Dir: Used to specify the direction of the text in the element, with a valid value of two ltr and RTL

Draggable and Dropzone are HTML5 properties that support drag and drop

Lang: Property used to describe the language of the element content

SpellCheck: Used to indicate whether the browser should check spelling of the content of the element. This property is only meaningful if the user can edit the element. The keyboard focus on the

tabindex:html page can be toggled between elements by pressing the TAB key. Use the TabIndex property to change the default transfer order.

For example: <input type= "Text" tableindex= "1"/>

TabIndex A value of 1 is the first selected element. TabIndex is not selected when the value is-1

HTML5 Global Properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.