Results 21 - 40 of 631

<time>

The HTML <time> element represents either a time on a 24-hour clock or a precise date in the Gregorian calendar (with optional time and timezone information).
Element HTML HTML text-level semantics HTML5 Reference Web

<track>

The HTML <track> element is used as a child of the media elements—<audio> and <video>. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files) — Web Video Text Tracks.
Element HTML HTML embedded content HTML5 Multimedia Reference Web

Applying styles and colors

Up until now we have only seen methods of the drawing context. If we want to apply colors to a shape, there are two important properties we can use: fillStyle and strokeStyle.
Canvas Graphics HTML HTML5 Intermediate Tutorial

Basic animations

Probably the biggest limitation is, that once a shape gets drawn, it stays that way. If we need to move it we have to redraw it and everything that was drawn before it. It takes a lot of time to redraw complex frames and the performance depends highly on the speed of the computer it's running on.
Canvas Graphics HTML HTML5 Intermediate Tutorial

Compositing and clipping

We can not only draw new shapes behind existing shapes but we can also use it to mask off certain areas, clear sections from the canvas (not limited to rectangles like the clearRect() method does) and more.
Canvas Graphics HTML HTML5 Intermediate Tutorial

Compositing example

This sample program demonstrates a number of compositing operations. The output looks like this:
Canvas Example Graphics HTML HTML5 Tutorial

Optimizing canvas

The following is a collection of tips to improve performance
Advanced Canvas Graphics HTML HTML5 Tutorial

Transformations

Before we look at the transformation methods, let's look at two other methods which are indispensable once you start generating ever more complex drawings.
Canvas Graphics Guide HTML HTML5 Intermediate Web

Block-level elements

HTML (Hypertext Markup Language) elements are usually either "block-level" elements or "inline" elements. A block-level element occupies the entire space of its parent element (container), thereby creating a "block." This article helps to explain what this means.
Beginner beginner Development Guide HTML HTML5 Web

Content categories

Each HTML element must abide by rules defining what kind of content it can have. These rules are grouped into content models common to several elements. Each HTML element belongs to zero, one, or multiple content models, each setting rules that the element's content must follow in an HTML-conformant document.
Advanced Guide HTML HTML5 NeedsUpdate Web

<address>

The HTML <address> element supplies contact information for its nearest <article> or <body> ancestor; in the latter case, it applies to the whole document.
Element HTML HTML sections Reference Web

<article>

The HTML <article> element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). This could be a forum post, a magazine or newspaper article, a blog entry, an object, or any other independent item of content. Each <article> should be identified, typically by including a heading (<h1>-<h6> element) as a child of the <article> element.
Element HTML HTML sections Reference Web

<base>

The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document. 
Element HTML HTML document metadata Reference Web

<blockquote>

The HTML <blockquote> Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite> element.
Element HTML HTML:Flow content Reference Web

<dd>

The HTML <dd> element (HTML Description Element) indicates the description of a term in a description list (<dl>) element. This element can occur only as a child element of a description list and it must follow a <dt> element.
Element HTML HTML grouping content Reference Web

<del>

The HTML Deleted Text Element (<del>) represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.
Element HTML HTML edits Reference Web

<details>

The HTML Details Element (<details>) is used as a disclosure widget from which the user can retrieve additional information.
Element HTML HTML interactive elements Reference Web

<dl>

The HTML <dl> element (or HTML Description List Element) encloses a list of pairs of terms and descriptions. Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
Element HTML HTML grouping content Reference Web

<dt>

The HTML <dt> element (or HTML Definition Term Element) identifies a term in a definition list. This element can occur only as a child element of a <dl>. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.
Element HTML HTML grouping content Reference