### 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 Dances used during bee mating rituals ...

The Dances

``` -------------------------------- ### Title example with heading Source: https://www.w3.org/TR/2014/REC-html5-20141028/document-metadata.html Example showing a title and a corresponding h1 heading for a page about bee mating rituals. ```html Introduction to The Mating Rituals of Bees ...

Introduction

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 Steve Hill's Home Page ****

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. ```html
**
**

Hard Trance is My Life

By DJ Steve Hill and Technikal

**
**

The album with the amusing punctuation has red artwork.

``` -------------------------------- ### Example of html element with lang attribute Source: https://www.w3.org/TR/2014/REC-html5-20141028/semantics.html A complete HTML document example showing the html element with a lang attribute set to 'en'. The example is from the specification and demonstrates the recommended practice of specifying the document's language. ```html Swapping Songs

Swapping Songs

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 The quadratic formula

The quadratic formula

x = − b ± b 2 − 4 ⁢ a ⁢ c 2 ⁢ a

``` -------------------------------- ### 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 **

**The Guide To Music On The Playa**

** **

**The Main Stage**

**

If you want to play on a stage, you should bring one.

**

**Amplified Music**

**

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. ```html

Music

As 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. ```html This is an example for the <base> element

Visit 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 `
` element, making it clear that the license applies only to the main content, not the whole document. The example uses an `` element with `rel="license"` to reference the MIT license. ```html Exampl Pictures: Kissat

Kissat

Kissat

One of them has six toes!

This photograph is MIT Licensed

``` -------------------------------- ### Equivalent pre blocks with newline handling Source: https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html Shows two pre blocks that are equivalent: the first starts with 'Hello' immediately, the second has a newline after the start tag, which is ignored per the newline restriction. ```html
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 **

** Yellow smiley face with the caption 'masif'

My fave Masif tee so far!

Posted 2 days ago
**
** **
**

Happy 2nd birthday Masif Saturdays!!!

Posted 3 weeks ago
**
** ``` -------------------------------- ### Usage summary: footer element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the footer element, showing it at the end of an article with artist information. ```html

Hard Trance is My Life

The album with the amusing punctuation has red artwork.

**
**

Artists: DJ Steve Hill and Technikal

**
**
``` -------------------------------- ### Using param element with O3D plugin Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Example showing how to pass a parameter to a plugin using the param element, specifically for the O3D plugin. ```html O3D Utah Teapot

When O3D renders the Utah Teapot, it appears as a squat
          teapot with a shiny metallic finish on which the
          surroundings are reflected, with a faint shadow caused by
          the lighting.

To see the teapot actually rendered by O3D on your computer, please download and install the O3D plugin.

``` -------------------------------- ### 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
Radius:
12cm
Height:
2cm
``` -------------------------------- ### Valid meter examples with value, max, min Source: https://www.w3.org/TR/2014/REC-html5-20141028/forms.html Shows three valid meter examples with attributes: value, max, min, and nested content. The first includes a textual fallback, the second uses an image fallback, and the third omits content. All are three-quarters full. ```html Storage space usage: 6 blocks used (out of 8 total) Voter turnout: 75% Tickets sold: ``` -------------------------------- ### Infinite loop script example Source: https://www.w3.org/TR/2014/REC-html5-20141028/webappapis.html An example of a script that never terminates, used to illustrate resource limitations. A user agent could prompt the user to terminate or let it continue. ```html ``` -------------------------------- ### Usage summary: section element example Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Usage summary example for the section element, showing two sections with their own headings under a main biography heading. ```html

Biography

**
**

The facts

1500+ shows, 14+ countries

**
** **
**

2010/2011 figures per year

100+ shows, 8+ countries

**
** ``` -------------------------------- ### Example of correctly nested emphasis Source: https://www.w3.org/TR/2014/REC-html5-20141028/introduction.html Shows the correct way to nest emphasis elements in HTML. ```html

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
http://www.web2con.com/ Web 2.0 Conference: - , at the Argent Hotel, San Francisco, CA
``` -------------------------------- ### 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. ```html

Scalable Vector Graphics (SVG) 1.2

W3C Working Draft 27 October 2004

This version:
http://www.w3.org/TR/2004/WD-SVG12-20041027/
Previous version:
http://www.w3.org/TR/2004/WD-SVG12-20040510/
Latest version of SVG 1.2:
http://www.w3.org/TR/SVG12/
Latest SVG Recommendation:
http://www.w3.org/TR/SVG/
Editor:
Dean Jackson, W3C, dean@w3.org
Authors:
See Author List

Foo

Bar

Bla

Baz

Quux

Thud

Grunt

``` -------------------------------- ### Example manifest with comments, whitelist, and cache sections Source: https://www.w3.org/TR/2014/REC-html5-20141028/browsers.html This manifest requires two images and a style sheet to be cached and whitelists a CGI script. It shows the use of comments, blank lines, and the NETWORK: and CACHE: section headers. ```text CACHE MANIFEST # the above line is required # this is a comment # there can be as many of these anywhere in the file # they are all ignored # comments can have spaces before them # but must be alone on the line # blank lines are ignored too # these are files that need to be cached they can either be listed # first, or a "CACHE:" header could be put before them, as is done # lower down. images/sound-icon.png images/background.png # note that each file has to be put on its own line # here is a file for the online whitelist -- it isn't cached, and # references to this file will bypass the cache, always hitting the # network (or trying to, if the user is offline). NETWORK: comm.cgi # here is another set of files to cache, this time just the CSS file. CACHE: style/default.css ``` -------------------------------- ### Example of incorrectly nested emphasis (invalid nesting) Source: https://www.w3.org/TR/2014/REC-html5-20141028/introduction.html Shows an example of incorrectly nested emphasis markup in HTML. The example is presented as a contrast to the correct nesting pattern. ```html

Example: Emphasized text

``` -------------------------------- ### meta keywords example Source: https://www.w3.org/TR/2014/REC-html5-20141028/document-metadata.html Example of a meta element with name=keywords, specifying keywords for a page about typefaces on British motorways. ```html Typefaces on UK motorways ... ``` -------------------------------- ### MediaController.readyState Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Returns the ready state of the media controller. Initially set to 0 (HAVE_NOTHING) and updated by the report the controller state algorithm. ```APIDOC ## MediaController.readyState ### Description Returns the value to which it was most recently set. When the MediaController object is created, the attribute is set to 0 (HAVE_NOTHING). The value is updated by the report the controller state algorithm. ### Property `readyState` (unsigned short) ### Example js var state = controller.readyState; ``` -------------------------------- ### cite element example: quoting an author Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using the cite element to reference the author of a quote within a paragraph. ```html

In the words of Charles Bukowski - An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way.

``` -------------------------------- ### pre element with code: Panel constructor example Source: https://www.w3.org/TR/2014/REC-html5-20141028/grouping-content.html Shows a sample of computer code presented using pre and code elements. The code defines a Panel constructor function. ```html

This is the Panel constructor:

function Panel(element, canClose, closeHandler) {
  this.element = element;
  this.canClose = canClose;
  this.closeHandler = function () { if (closeHandler) closeHandler() };
}
``` -------------------------------- ### 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

Welcome to...

Voidwars!

``` -------------------------------- ### Highlighting search matches with mark Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using mark to highlight parts of a document that match a search string, such as the word 'kitten'. ```html

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.

``` -------------------------------- ### cite element example: referencing a search result URL Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using the cite element to reference the URL of a search result. ```html
About 416,000,000 results 0.33 seconds)
...

W3C HTML Working Group

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...

... ``` -------------------------------- ### cite element example: referencing a TV show title Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using the cite element to reference the title of a television show. ```html

Who is your favorite doctor (in Doctor Who)?

``` -------------------------------- ### cite element example: referencing a work title in a bibliography Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using the cite element to reference the title of a work in a bibliography. ```html

Universal Declaration of Human Rights, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).

``` -------------------------------- ### cite element example: identifying a tweet author Source: https://www.w3.org/TR/2014/REC-html5-20141028/text-level-semantics.html Example of using the cite element to identify the author of a tweet within a blockquote. ```html ``` -------------------------------- ### 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
var i: Integer;
begin
   i := 1;
end.
``` -------------------------------- ### 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

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. ``` -------------------------------- ### document.readyState Source: https://www.w3.org/TR/2014/REC-html5-20141028/dom.html Returns the current document readiness as a string: 'loading', 'interactive', or 'complete'. The readystatechange event fires when the value changes. ```APIDOC ## document.readyState ### Description Returns the current document readiness. The value is 'loading' while the document is loading, 'interactive' once parsing is finished but sub-resources are still loading, and 'complete' once fully loaded. ### Method GET ### Endpoint document.readyState ### Parameters None ### Response #### Success Response - **readyState** (string) - The current document readiness: 'loading', 'interactive', or 'complete'. #### Response Example "complete" ``` -------------------------------- ### Blog post with schema.org annotations using article element Source: https://www.w3.org/TR/2014/REC-html5-20141028/sections.html Example of an article element with schema.org annotations for a single blog post, demonstrating itemscope, itemtype, and various itemprop attributes for headline, datePublished, url, and discusionUrl. ```html

The Very First Rule of Life

If there's a microphone anywhere near you, assume it's hot and sending whatever you're saying to the world. Seriously.

_..._

``` -------------------------------- ### Presentational markup example: font element Source: https://www.w3.org/TR/2014/REC-html5-20141028/introduction.html Example of presentational markup using the font element with a color attribute, which is no longer allowed in HTML5. ```html ``` -------------------------------- ### blockquote with abbreviation example Source: https://www.w3.org/TR/2014/REC-html5-20141028/grouping-content.html Shows how to quote text with abbreviations indicated using square brackets, as in the example 'Fred ate the cracker...'. ```html

[Fred] then said he liked [...] fish.

``` -------------------------------- ### 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

The computer said Too much cheese in tray two but I didn't know what that meant.

``` -------------------------------- ### MediaController constructor Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Creates a new MediaController object. ```APIDOC ## Constructor: MediaController() ### Description Returns a new MediaController object. ### Syntax controller = new MediaController() ### Returns A new MediaController object. ``` -------------------------------- ### Empty attribute syntax example: disabled Source: https://www.w3.org/TR/2014/REC-html5-20141028/syntax.html Shows the empty attribute syntax where only the attribute name is given, implying an empty string value. The example uses the 'disabled' attribute. ```html ``` -------------------------------- ### MediaController.muted Source: https://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html Gets or sets the muted state of the controller. ```APIDOC ## Property: muted ### Description Gets or sets the muted state of the controller. ### Type attribute boolean ```