Friday, 21 December 2018

            15 part html
HTML stands for Hyper Text Markup Language, which is the most widely used language on Web to develop web pages. HTML was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012.
          14part html
When users visit your website, they do things like click various links, bring mouse over text and images etc. These are examples of what we call events in JavaScript and VBScript terminologies.
We can write our event handlers using JavaScript or VBScript and can specify some actions to be taken against these events. Though these are the events but they will be specified as attributes for the HTML tags.
The HTML 4.01 specification had defined 19 events but later HTML-5 has added many other events which we have listed down here −

Window Events Attributes

Following events have been introduced in older versions of HTML but all the tags marked with HTML-5are part of HTML-5.
EventsHTML-5Description
onafterprintHTML-5Triggers after a document is printed
onbeforeprintHTML-5Triggers before a document is printed
onbeforeonloadHTML-5Triggers before a document loads
onerrorHTML-5Triggers when an error occurs
onhaschangeHTML-5Triggers when a document has changed
onloadTriggers when a document loads
onmessageHTML-5Triggers when a message is triggered
onofflineHTML-5Triggers when a document goes offline
ononlineHTML-5Triggers when a document comes online
onpagehideHTML-5Triggers when a window is hidden
onpageshowHTML-5Triggers when a window becomes visible
onpopstateHTML-5Triggers when a window's history changes
onredoHTML-5Triggers when a document performs a redo
onresizeHTML-5Triggers when a window is resized
onstorageHTML-5Triggers when a document loads
onundoHTML-5Triggers when a document performs an undo
onunloadTriggers when a user leaves the document

Form Events

Following tags have been introduced in older versions of HTML but all the tags marked with HTML-5are part of HTML-5.
EventsHTML-5Description
onblurTriggers when a window loses focus
onchangeTriggers when an element changes
oncontextmenuHTML-5Triggers when a context menu is triggered
onfocusTriggers when a window gets focus
onformchangeHTML-5Triggers when a form changes
onforminputHTML-5Triggers when a form gets user input
oninputHTML-5Triggers when an element gets user input
oninvalidHTML-5Triggers when an element is invalid
onresetTriggers when a form is reset
onselectTriggers when an element is selected
onsubmitTriggers when a form is submitted

Keyboard Events

EventsHTML-5Description
onkeydownTriggers when a key is pressed
onkeypressTriggers when a key is pressed and released
onkeyupTriggers when a key is released

Mouse Events

Following tags have been introduced in older versions of HTML but all the tags marked with HTML-5are part of HTML-5.
EventsHTML-5Description
onclickTriggers on a mouse click
ondblclickTriggers on a mouse double-click
ondragHTML-5Triggers when an element is dragged
ondragendHTML-5Triggers at the end of a drag operation
ondragenterHTML-5Triggers when an element has been dragged to a valid drop target
ondragleaveHTML-5Triggers when an element leaves a valid drop target
ondragoverHTML-5Triggers when an element is being dragged over a valid drop target
ondragstartHTML-5Triggers at the start of a drag operation
ondropHTML-5Triggers when a dragged element is being dropped
onmousedownTriggers when a mouse button is pressed
onmousemoveTriggers when the mouse pointer moves
onmouseoutTriggers when the mouse pointer moves out of an element
onmouseoverTriggers when the mouse pointer moves over an element
onmouseup Triggers when a mouse button is released
onmousewheelHTML-5Triggers when the mouse wheel is being rotated
onscrollHTML-5Triggers when an element's scrollbar is being scrolled

Media Events

Following tags have been introduced in older versions of HTML but all the tags marked with HTML-5are part of HTML-5.
EventsHTML-5Description
onabortTriggers on an abort event
oncanplayHTML-5Triggers when a media can start play, but might has to stop for buffering
oncanplaythroughHTML-5Triggers when a media can be played to the end, without stopping for buffering
ondurationchangeHTML-5Triggers when the length of a media is changed
onemptiedHTML-5Triggers when a media resource element suddenly becomes empty.
onendedHTML-5Triggers when a media has reached the end
onerrorHTML-5Triggers when an error occurs
onloadeddataHTML-5Triggers when media data is loaded
onloadedmetadataHTML-5Triggers when the duration and other media data of a media element is loaded
onloadstartHTML-5Triggers when the browser starts loading the media data
onpauseHTML-5Triggers when media data is paused
onplayHTML-5Triggers when media data is going to start playing
onplayingHTML-5Triggers when media data has started playing
onprogressHTML-5Triggers when the browser is fetching the media data
onratechangeHTML-5Triggers when the playing rate of media data has changed
onreadystatechangeHTML-5Triggers when the ready-state changes
onseekedHTML-5Triggers when the seeking attribute of a media element is no longer true, and the seeking has ended
onseekingHTML-5Triggers when the seeking attribute of a media element is true, and the seeking has begun
onstalledHTML-5Triggers when there is an error in fetching media data
onsuspendHTML-5Triggers when the browser has been fetching media data, but stopped before the entire media file was fetched
ontimeupdateHTML-5Triggers when media changes its playing position
onvolumechangeHTML-5Triggers when a media changes the volume, also when volume is set to "mute"
onwaitingHTML-5Triggers when media has stopped playing, but is expected to resume

Featured Post