Enter HTML5 entry to Mastery: HTML5 Standard properties and Event properties
Source: Internet
Author: User
KeywordsHTML5 standard properties getting started to proficient event properties
HTML 5 Standard Properties
All HTML 5 tags support the attributes listed below, with only a few exceptions.
HTML 5 Standard Properties
New Standard attribute in new:html 5.
Note: HTML 4.01 no longer supports the AccessKey property:
HTML 5 Event Properties
Standard Event Properties
HTML 4 increases the ability to trigger behavior in the browser through events, such as starting a http://www.aliyun.com/zixun/aggregation/33906.html ">javascript" When a user clicks on an element.
If you need to learn more about programming with these events, learn about our JavaScript tutorials and DHTML tutorials.
The following table lists the standard event properties that can be inserted into an HTML 5 element to define event behavior.
Window Event Properties-Window events Attributes
Form Event-Form events Keyboard Event-Keybord events Mouse Event-Mouse events Media events
Window Event Properties
The event that is triggered by the Window object.
Apply to <body> Tags:
Property values describe Onafterprint script to run scripts after printing a document Onbeforeprint script runs scripts before the document is printed onbeforeonload script runs scripts before the document is loaded onblur scripting Run script when the window loses focus onerror script runs when the error occurs onfocus script runs when the window gets the focus Onhaschange script runs when a document changes the onload script runs when a document loads OnMessage script runs scripts when a message is fired Onoffline script runs when the document is offline Ononline script runs when the document is online Onpagehide script runs when the window is hidden onpageshow Script runs scripts when the window is visible onpopstate script runs when window history changes Onredo script runs scripts when the document executes again (Redo) onresize script runs scripts when resizing windows for large hours Onstorage script runs scripts when a document loads load OnUndo script runs when a document performs a undo Operation OnUnload script runs when the user leaves the document
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.