Results 181 - 200 of 631

Link types

In HTML, the following link types indicate the relationship between two documents, in which one links to the other using an <a>, <area>, or <link> element.
HTML Link Link types Reference

<audio>

The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element; the browser will choose the most suitable one.
Element HTML HTML embedded content HTML5 Media Multimedia NeedsMobileBrowserCompatibility Reference Web

<input>

The HTML element <input> is used to create interactive controls for web-based forms in order to accept data from the user. How an <input> works varies considerably depending on the value of its type attribute.
Element Forms HTML HTML forms HTML input tag MakeBrowserAgnostic NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Reference Web

<span>

The HTML <span> element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. <span> is very much like a <div> element, but <div> is a block-level element whereas a <span> is an inline element.
Element HTML HTML text-level semantics HTML:Flow content Reference Web

<video>

Use the  HTML <video> element to embed video content in a document. The video element contains one or more video sources. To specify a video source, use either the src attribute or the <source> element; the browser will choose the most suitable one.
Element HTML HTML embedded content HTML5 Media Multimedia NeedsMobileBrowserCompatibility Reference Web

Drawing DOM objects into a canvas

Although it's not trivial (for security reasons), it's possible to draw DOM content—such as HTML—into a canvas. This article, derived from this blog post by Robert O'Callahan, covers how you can do it securely, safely, and in accordance with the specification.
Canvas DOM Guide HTML Intermediate SVG

Channel Messaging API

The Channel Messaging API allows two separate scripts running in different browsing contexts attached to the same document (e.g., two IFrames, or the main document and an IFrame, two documents via a SharedWorker, or two workers) to communicate directly, passing messages between one another through two-way channels (or pipes) with a port at each end.
API Channel messaging HTML API Overview Reference

Using channel messaging

The Channel Messaging API allows two separate scripts running in different browsing contexts attached to the same document (e.g., two IFrames, or the main document and an IFrame, or two documents via a SharedWorker) to communicate directly, passing messages between one another through two-way channels (or pipes) with a port at each end. In this article we'll explore the basics of using this technology.
API Channel messaging HTML5 MessageChannel MessagePort Tutorial

Document.defaultView

In browsers, document.defaultView returns the window object associated with a document, or null if none is available.
API Document HTML DOM Property Reference

Document.links

The links property returns a collection of all <area> elements and <a> elements in a document with a value for the href attribute.
API Document HTML DOM Property Reference Référence

GlobalEventHandlers

The GlobalEventHandlers mixin describes the event handlers common to several interfaces like HTMLElement, Document, or Window. Each of these interfaces can implement more event handlers.
API DOM HTML-DOM Mixin Reference

GlobalEventHandlers.onblur

The onblur property returns the onBlur event handler code, if any, that exists on the current element.
API HTML DOM NeedsMarkupWork Property Reference

GlobalEventHandlers.onchange

The onchange property sets and returns the event handler for the change event.
API HTML DOM Property Reference Référence

GlobalEventHandlers.onclick

The onclick property returns the click event handler code on the current element.
API HTML DOM Property Reference Référence

GlobalEventHandlers.oncontextmenu

An event handler property for right-click events on the window. Unless the default behavior is prevented (see examples below on how to do this), the browser context menu will activate (though IE8 has a bug with this and will not activate the context menu if a contextmenu event handler is defined). Note that this event will occur with any non-disabled right-click event and does not depend on an element possessing the "contextmenu" attribute.
API HTML DOM Property Reference Référence