Hard Trance is My Life
By DJ Steve Hill and Technikal
**The album with the amusing punctuation has red artwork.
### Usage summary: nav element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the nav element, showing a navigation list with links. ```html **** ``` -------------------------------- ### Title example for a subsequent page Source: https://www.w3.org/TR/2014/REC-html5-20141028/document-metadata.html Example showing a title and heading for a page about dances used during bee mating rituals. ```html
This companion guide to the highly successful Introduction to Medieval Bee-Keeping book is... ``` -------------------------------- ### play() method Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Starts or resumes playback of the media resource. Handles resource selection, seeking to start if ended, and firing appropriate events. ```APIDOC ## play() method ### Description Initiates playback of the media resource. If the network state is empty, it invokes the resource selection algorithm. If playback has ended and direction is forwards, it seeks to the earliest possible position. It then brings the element up to speed with its media controller if present, and if paused, changes paused to false and fires appropriate events. ### Method `play()` ### Parameters None. ### Behavior 1. If `networkState` is `NETWORK_EMPTY`, invoke the resource selection algorithm. 2. If playback has ended and direction is forwards, and no current media controller, seek to the earliest possible position (this will fire a `timeupdate` event). 3. If there is a current media controller, bring the element up to speed with its new media controller. 4. If `paused` is true: - Set `paused` to false. - If show poster flag is true, set it to false and run the _time marches on_ steps. - Fire a `play` event. - If `readyState` is `HAVE_NOTHING`, `HAVE_METADATA`, or `HAVE_CURRENT_DATA`, fire a `waiting` event. - Otherwise (if `readyState` is `HAVE_FUTURE_DATA` or `HAVE_ENOUGH_DATA`), fire a `playing` event. 5. Set the autoplaying flag to false. 6. If there is a current media controller, report the controller state for the current media controller. ### Events Fired - `timeupdate` - when seeking to earliest possible position. - `play` - when playback starts. - `waiting` - when readyState is not enough data. - `playing` - when readyState is enough data. ``` -------------------------------- ### Example: script with document.write('
') Source: https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html Shows a script element containing a document.write call that emits a 'p' start tag token while the tree construction stage is handling the 'script' end tag token. This illustrates the reentrant nature of the HTML parser. ```html ... ... ``` -------------------------------- ### selectionStart Source: https://www.w3.org/TR/2014/REC-html5-20141028/forms.html Gets or sets the offset to the start of the selection. Setting acts as if setSelectionRange() was called with the new value as the first argument. ```APIDOC ## selectionStart ### Description Returns the offset (in logical order) to the character that immediately follows the start of the selection. If there is no selection, returns the offset to the character that immediately follows the text entry cursor. Can be set to change the start of the selection. ### Attributes - **selectionStart** (unsigned long) - On getting, returns the start offset. On setting, acts as if setSelectionRange() was called with the new value as the first argument, the current selectionEnd as the second (or the new value if selectionEnd is less), and the current selectionDirection as the third. ### Exceptions For input elements, throws InvalidStateError if the attribute does not apply. ### Example ```js let start = input.selectionStart; input.selectionStart = 0; ``` ``` -------------------------------- ### Usage summary: body element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the body element, showing its placement in a basic HTML document. ```html
Hard Trance is My Life.
**** ``` -------------------------------- ### Usage summary: header element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the header element, showing it containing a heading and author information within an article. ```htmlBy DJ Steve Hill and Technikal
**The album with the amusing punctuation has red artwork.
Tonight I swapped some of the songs I wrote with some friends, who gave me some of the songs they wrote. I love sharing my music.
``` -------------------------------- ### MathML example in an HTML document Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html A complete HTML document that uses MathML to render the quadratic formula. The example shows the required DOCTYPE, html, head, and body structure, with a math element containing mi, mo, mfrac, msqrt, msup, and mn elements. This is the only code example on the page. ```html``` -------------------------------- ### Usage summary: h1-h6 heading example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for heading elements h1-h6, showing a main heading and two subheadings. ```html **
If you want to play on a stage, you should bring one.
**Amplifiers up to 300W or 90dB are welcome.
``` -------------------------------- ### Usage summary: aside element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the aside element, showing it placed between paragraphs with a link. ```htmlAs any burner can tell you, the event has a lot of trance.
****This year we played a kind of trance that originated in Belgium, Germany, and the Netherlands in the mid 90s.
``` -------------------------------- ### Example: Using audio element with text track to play sound effects Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Shows how to use an audio element with a metadata text track to schedule sound effects. It defines a function addFX() to add cues with pauseOnExit, and playSound() to seek and play. The example also demonstrates using oncanplaythrough and onbeforeunload to trigger sounds. ```javascript var sfx = new Audio('sfx.wav'); var sounds = sfx.addTextTrack('metadata'); // add sounds we care about function addFX(start, end, name) { var cue = new VTTCue(start, end, ''); cue.id = name; cue.pauseOnExit = true; sounds.addCue(cue); } addFX(12.783, 13.612, 'dog bark'); addFX(13.612, 15.091, 'kitten mew')) function playSound(id) { sfx.currentTime = sounds.getCueById(id).startTime; sfx.play(); } // play a bark as soon as we can sfx.oncanplaythrough = function () { playSound('dog bark'); } // meow when the user tries to leave window.onbeforeunload = function () { playSound('kitten mew'); return 'Are you sure you want to leave this awesome page?'; } ``` -------------------------------- ### Example of using the base element Source: https://www.w3.org/TR/2014/REC-html5-20141028/document-metadata.html An HTML example demonstrating how to set the document base URL using the base element. The base href is set to 'http://www.example.com/news/index.html', and a relative link 'archives.html' will resolve against that base. ```htmlVisit the archives.
``` -------------------------------- ### HTML example using the `license` link type Source: https://www.w3.org/TR/2014/REC-html5-20141028/links.html Shows the `license` link type applied to a photograph inside a `
One of them has six toes!
This photograph is MIT Licensed
Hello``` ```html
Hello``` -------------------------------- ### Conversation example using p elements Source: https://www.w3.org/TR/2014/REC-html5-20141028/common-idioms.html Demonstrates marking up a dialogue using p elements and punctuation, as recommended for conversations. The example is an extract from a famous sketch. ```html
Costello: Look, you gotta first baseman?
Abbott: Certainly.
Costello: Who's playing first?
Abbott: That's right.
Costello becomes exasperated.
Costello: When you pay off the first baseman every month, who gets the money?
Abbott: Every dollar of it.
```
--------------------------------
### Usage summary: article element example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html
Usage summary example for the article element, showing two separate article elements with images and footers.
```html
** My fave Masif tee so far! Happy 2nd birthday Masif Saturdays!!! The album with the amusing punctuation has red artwork.
Hard Trance is My Life
``` -------------------------------- ### Example of vendor-specific extension attributes (x-vendor-feature) Source: https://www.w3.org/TR/2014/REC-html5-20141028/infrastructure.html Shows how to use custom attributes with the 'x-vendor-feature' form for experimental extensions. The example uses 'ferret' and 'mb' as vendor prefixes to add scratch-and-sniff functionality to a span element. ```html
This smells of lemons!
``` -------------------------------- ### Link with image alt text example Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Example of a list of color links where each link contains only an image, with the color name provided in the alt attribute for accessibility. ```html ``` -------------------------------- ### Meter example with title units Source: https://www.w3.org/TR/2014/REC-html5-20141028/forms.html Extends the previous correct example by adding title attributes to specify units in free-form text (centimeters). ```html
1500+ shows, 14+ countries
**100+ shows, 8+ countries
**Example: Emphasized text
``` -------------------------------- ### iframe example for advertising Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html An example of using an iframe to include advertising from an advertising broker. The src attribute includes a customer ID and format parameter, with width and height attributes set. ```html ``` -------------------------------- ### TextTrackCue.startTime Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Returns the text track cue start time, in seconds. Can be set. ```APIDOC ## TextTrackCue.startTime ### Description Returns the text track cue start time, in seconds. Can be set. ### Attribute startTime (read/write) ### Returns - **double** - The text track cue start time, in seconds. ### Example js const start = cue.startTime; cue.startTime = 5.0; ``` -------------------------------- ### Search forms with GET method Source: https://www.w3.org/TR/2014/REC-html5-20141028/forms.html Two search forms that submit to Google and Bing using the GET method. Each form contains a search input with the name "q" and a submit button. ```html ``` -------------------------------- ### hCalendar microformat example using time element Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Encodes an event's start and end dates using the `time` element with `datetime` attributes in a microformat. ```html ``` -------------------------------- ### Header for a specification, e.g., SVG 1.2 Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html A more complex header example for a specification document, containing a heading, version information, a definition list with links, and a copyright line. Note the source text includes a truncation marker "_..._" in the copyright paragraph; the example is shown as-is. ```htmlW3C Working Draft 27 October 2004
```
--------------------------------
### play()
Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html
Sets the paused attribute to false, loading the media resource and beginning playback if necessary. If the playback had ended, it will restart it from the start.
```APIDOC
## play()
### Description
Sets the paused attribute to false, loading the media resource and beginning playback if necessary. If the playback had ended, it will restart it from the start.
### Method
CALL
### Endpoint
media.play()
### Parameters
None
### Response
#### Success Response
No return value.
#### Response Example
undefined
```
--------------------------------
### Basic time element example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html
Shows a simple `time` element with text content representing a duration.
```html
```
--------------------------------
### Equivalent manifest written more concisely
Source: https://www.w3.org/TR/2014/REC-html5-20141028/browsers.html
This is an equivalent way to write the previous manifest, using the CACHE: header to list all cached files together.
```text
CACHE MANIFEST
NETWORK:
comm.cgi
CACHE:
style/default.css
images/sound-icon.png
images/background.png
```
--------------------------------
### Headings and sections outline example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html
Demonstrates how headings create implied sections and how sectioning roots like blockquote or sectioning content like section can stop or continue the outline. The h2 after blockquote starts a new implied section, and the explicit section restarts the outline so the final paragraph is at the top level.
```html
Baz Grunt Example: Emphasized text In the words of Charles Bukowski -
This is the Welcome to... I also have some kittens who are visiting me
these days. They're really cute. I think they like my garden! Maybe I
should adopt a kitten. www.w3.org/html/wg/ 15 Apr 2013 - The HTML Working Group is currently chartered to continue its
work through 31 December 2014. A Plan 2014 document published by the... Who is your favorite doctor (in Doctor Who)? Universal Declaration of Human Rights, United Nations,
December 1948. Adopted by General Assembly resolution 217 A (III). ♥ Bukowski in #HTML5 spec examples
http://t.co/0FIEiYN1pC Table 1.
This table shows the total score obtained from rolling two
six-sided dice. The first row represents the value of the first die,
the first column the value of the second die. The total is given in
the cell that corresponds to the values of the two dice.
If there's a microphone anywhere near you, assume it's hot and
sending whatever you're saying to the world. Seriously. _..._ [Fred] then said he liked [...] fish. The computer said Too much cheese in tray
two but I didn't know what that meant.Foo
Bar
Bla
Quux
Thud
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way.
Panel constructor:
```
--------------------------------
### MediaController() constructor
Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html
Creates a new MediaController object. The constructor returns a newly created MediaController instance.
```APIDOC
## MediaController() constructor
### Description
When invoked, must return a newly created MediaController object.
### Syntax
js
var controller = new MediaController();
```
--------------------------------
### readyState
Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html
Returns the current ready state of the media element, which can jump discontinuously between states.
```APIDOC
## readyState
### Description
Returns the current ready state of the media element. The ready state can jump discontinuously between states, e.g., from HAVE_METADATA to HAVE_ENOUGH_DATA without passing through intermediate states.
### Method
GET
### Endpoint
media.readyState
### Parameters
None
### Response
#### Success Response
- **readyState** (unsigned short) - The current ready state of the media element.
#### Response Example
HAVE_METADATA
```
--------------------------------
### meta generator example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/document-metadata.html
Example of a meta element with name=generator, used by a tool called Frontweaver to identify itself as the generator of the page.
```html
```
--------------------------------
### Basic header example for a game
Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html
A minimal header element containing a welcome message and a game title. Demonstrates typical introductory content for a section, here used for a game page.
```html
function Panel(element, canClose, closeHandler) {
this.element = element;
this.canClose = canClose;
this.closeHandler = function () { if (closeHandler) closeHandler() };
}Voidwars!
```
--------------------------------
### window.open()
Source: https://www.w3.org/TR/2014/REC-html5-20141028/browsers.html
Navigates an existing browsing context or opens and navigates an auxiliary browsing context. Accepts a URL, target name, features, and replace flag.
```APIDOC
## [GET] window.open()
### Description
Navigates an existing browsing context or opens and navigates an auxiliary browsing context. The method has four arguments, though they are all optional. The first argument, url, must be a valid non-empty URL for a page to load in the browsing context. If the first argument is the empty string, then the url argument must be interpreted as "about:blank". Otherwise, the argument must be resolved to an absolute URL (or an error), relative to the API base URL specified by the entry settings object when the method was invoked. The second argument, target, specifies the name of the browsing context that is to be navigated. It must be a valid browsing context name or keyword. The third argument, features, has no defined effect and is mentioned for historical reasons only. The fourth argument, replace, specifies whether or not the new page will replace the page currently loaded in the browsing context.
### Method
GET
### Endpoint
window.open(url, target, features, replace)
### Parameters
#### Path Parameters
None.
#### Query Parameters
None.
#### Request Body
- **url** (string) - Required - A valid non-empty URL for a page to load. If empty string, interpreted as "about:blank".
- **target** (string) - Required - The name of the browsing context to navigate. Must be a valid browsing context name or keyword.
- **features** (string) - Optional - Has no defined effect; mentioned for historical reasons only. User agents may interpret as size/position instructions but are encouraged to ignore.
- **replace** (boolean) - Optional - Whether the new page replaces the current page in the browsing context's session history when target identifies an existing browsing context.
### Request Example
```javascript
window.open(url, target, features, replace);
```
### Response
#### Success Response
Returns the WindowProxy object of the browsing context that was navigated, or null if no browsing context was navigated.
#### Response Example
```javascript
var newWindow = window.open('https://example.com', '_blank');
```
### Errors
- Throws InvalidAccessError if no browsing context is chosen after applying the rules for choosing a browsing context with the target argument.
### Notes
- The features argument has no defined effect and is mentioned for historical reasons only.
- If url is the empty string, it is interpreted as "about:blank".
```
```APIDOC
## [GET] window.name
### Description
Gets or sets the current name of the browsing context. The name is reset when the browsing context is navigated to another domain.
### Method
GET (getter) / SET (setter)
### Endpoint
window.name
### Parameters
#### Attributes
- **name** (string) - Required - The new name to set for the browsing context.
### Response
#### Success Response (200)
- **name** (string) - The current name of the browsing context.
#### Response Example
```json
{
"name": "exampleName"
}
```
```
```APIDOC
## [GET/SET] window.name
### Description
Gets or sets the current name of the browsing context. The name is reset when the browsing context is navigated to another domain.
### Method
GET or SET
### Endpoint
window.name
### Parameters
#### Path Parameters
None.
#### Query Parameters
None.
#### Request Body
- **value** (string) - Required for setter - The new name to assign to the browsing context.
### Request Example
```javascript
// Get the current name
let currentName = window.name;
// Set a new name
window.name = "myContext";
```
### Response
#### Success Response (200)
- **name** (string) - The current name of the browsing context.
#### Response Example
```json
{
"name": "myContext"
}
```
```
```APIDOC
## [GET] window.name
### Description
Gets the current name of the browsing context.
### Method
GET (property access)
### Endpoint
window.name
### Parameters
None.
### Request Example
```javascript
var currentName = window.name;
```
### Response
#### Success Response (200)
- **name** (string) - The current name of the browsing context.
#### Response Example
```json
{
"name": "exampleName"
}
```
```
```APIDOC
## [SET] window.name
### Description
Sets the name of the browsing context to the new value.
### Method
SET (property assignment)
### Endpoint
window.name = value
### Parameters
#### Request Body
- **value** (string) - Required - The new name for the browsing context.
### Request Example
```javascript
window.name = "myWindowName";
```
### Response
#### Success Response (200)
No return value.
#### Response Example
(no response body)
```
```APIDOC
## [GET] window.name
### Description
Returns the current name of the browsing context.
### Method
GET
### Endpoint
window.name
### Parameters
None.
### Request Example
```javascript
var name = window.name;
```
### Response
#### Success Response (200)
- **name** (DOMString) - The current name of the browsing context.
#### Response Example
```javascript
"myWindowName"
```
```
```APIDOC
## [SET] window.name
### Description
Sets the name of the browsing context to the new value.
### Method
SET (property assignment)
### Endpoint
window.name
### Parameters
#### Request Body
- **value** (DOMString) - Required - The new name for the browsing context.
### Request Example
```javascript
window.name = "myWindowName";
```
### Response
#### Success Response (200)
No response body. The operation completes silently.
```
```APIDOC
## [GET] window.name
### Description
Gets the current name of the browsing context.
### Method
GET (property access)
### Endpoint
window.name
### Parameters
None.
### Request Example
// No request body required
### Response
#### Success Response (200)
- **name** (DOMString) - The current name of the browsing context.
#### Response Example
{
"name": "exampleName"
}
```
```APIDOC
## [SET] window.name
### Description
Sets the name of the browsing context to the new value.
### Method
SET (property assignment)
### Endpoint
window.name
### Parameters
#### Request Body
- **value** (string) - Required - The new name for the browsing context.
### Request Example
{
"value": "newName"
}
### Response
#### Success Response (200)
No response body. The name is set on the browsing context.
#### Response Example
{}
```
```APIDOC
## [GET] window.name
### Description
Gets the current name of the browsing context.
### Method
GET
### Endpoint
window.name
### Parameters
None.
### Response
#### Success Response (200)
- **name** (string) - The current name of the browsing context.
#### Response Example
"myWindowName"
```
```APIDOC
## [SET] window.name
### Description
Sets the name of the browsing context to the new value.
### Method
SET (property assignment)
### Endpoint
window.name
### Parameters
#### Request Body
- **value** (string) - Required - The new name for the browsing context.
### Request Example
{
"value": "newName"
}
### Response
#### Success Response (200)
No response body. The operation is performed as a side effect.
```
```APIDOC
## [WINDOW] window.close()
### Description
Closes the browsing context if it is script-closable, the incumbent settings object is familiar with it, and is allowed to navigate it.
### Method
close
### Endpoint
window.close()
### Parameters
None.
### Request Example
```js
window.close();
```
### Response
#### Success Response (200)
No return value. The browsing context is closed if conditions are met.
#### Response Example
No response body.
```
--------------------------------
### HTML fragment with data-* attributes
Source: https://www.w3.org/TR/2014/REC-html5-20141028/infrastructure.html
Example element with data-* attributes (data-x, data-y, data-ai, data-hp, data-ability) used to demonstrate dataset access.
```html
```
--------------------------------
### Marking up a Pascal code block with pre and code
Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html
Shows how to mark up a block of Pascal code using the `pre` and `code` elements. A class attribute indicates the language used.
```html
```
--------------------------------
### address element non-conforming example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html
Non-conforming example: placing a timestamp inside address, which must not contain information other than contact information.
```html
Last Modified: 1999/12/24 23:37:50
```
--------------------------------
### Caption element example
Source: https://www.w3.org/TR/2014/REC-html5-20141028/tabular-data.html
Example of a caption element that provides context for a table, including a table number and explanation of the table's contents.
```html
var i: Integer;
begin
i := 1;
end.The Very First Rule of Life
```
--------------------------------
### Block of sample output with nested samp, kbd, and span
Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html
Shows a block of sample output using nested `samp` and `kbd` elements, with `span` elements for precise styling.
```html
jdoe@mowmow:~$ ssh demo.example.com
Last login: Tue Apr 12 09:10:17 2005 from mowmow.example.com on pts/1
Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SMP Tue Feb 1 11:22:36 PST 2005 i686 unknown
jdoe@demo:~$ _
```
--------------------------------
### Using samp element inline for sample output
Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html
Shows the `samp` element used inline to represent sample output from a program.
```html