### Form submission with GET method Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example form using the GET method. When submitted, the user agent loads the action URL with query parameters appended. ```html
``` -------------------------------- ### Correct alternatives to non-conforming br examples Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Correct alternatives to the previous non-conforming examples, using separate paragraphs instead of br. ```html

34 comments.

Add a comment.

``` ```html

``` -------------------------------- ### Example of using the base element Source: https://www.w3.org/TR/2016/WD-html51-20160310/document-metadata.html An HTML example showing how to set the document base URL with the base element. The link to 'archives.html' resolves to 'http://www.example.com/news/archives.html'. ```html This is an example for the <base> element

Visit the archives.

``` -------------------------------- ### Example of script nesting in HTML parsing Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html Illustrates how the tree construction stage handles a 'p' start tag token while processing a 'script' end tag token, demonstrating the reentrant parsing model. ```html ... ... ``` -------------------------------- ### HTML example with omitted tags Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html This example shows the document after omitting the html, head, and body start and end tags, resulting in a minimal but equivalent markup. ```html Hello

Welcome to this example.

``` -------------------------------- ### Table with all optional tags present Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html A complete HTML table with all start and end tags explicitly written. This serves as the baseline example before omitting optional tags. ```html
37547 TEE Electric Powered Rail Car Train Functions (Abbreviated)
Function Control Unit Central Station
Headlights ✔ ✔
Interior Lights ✔ ✔
Electric locomotive operating sounds ✔ ✔
Engineer’s cab lighting ✔
Station Announcements - Swiss ✔
``` -------------------------------- ### Example of vendor-specific extensions using x-vendor-feature attributes Source: https://www.w3.org/TR/2016/WD-html51-20160310/infrastructure.html Shows how multiple vendor extensions can coexist on a single element using x-vendor-feature attributes. This example is non-conforming but illustrates the extension mechanism. ```html

This smells of lemons!

``` -------------------------------- ### Example: Grouping options with optgroup in a select element Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Shows how to offer a set of lessons from three courses in a select drop-down widget using optgroup elements to label each course. The form uses the GET method and includes a submit button. ```html

Which course would you like to watch today?

``` -------------------------------- ### Dialog system with fixed character lines Source: https://www.w3.org/TR/2016/WD-html51-20160310/common-idioms-without-dedicated-elements.html Example of a game FAQ/walkthrough listing known possible responses for each character, using sections, headings, and lists. The example shows ordered and unordered lists for different characters and scenarios. ```html

Dialog

Some characters repeat their lines in order each time you interact with them, others randomly pick from amongst their lines. Those who respond in order have numbered entries in the lists below.

The Shopkeeper

The pilot

Before the accident:

After the accident:

  1. I’m about to fly out, sorry!
  2. Ok, I’m not leaving right now, my plane is being cleaned.
  3. Ok, it’s not being cleaned, it needs a minor repair first.
  4. Ok, ok, stop bothering me! Truth is, I had a crash.

Clan Leader

During the first clan meeting:

After the earthquake:

  1. Everyone is safe in the shelter, we just have to put out the fire!
  2. I’ll go and tell the fire brigade, you keep hosing it down!
``` -------------------------------- ### TextTrackCue.startTime Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Gets or sets the text track cue start time in seconds. ```APIDOC ## TextTrackCue.startTime ### Description Returns the text track cue start time, in seconds. Can be set. ### Attribute - **startTime** (double) - Read/Write - The text track cue start time in seconds. On setting, the start time is set to the new value, and if the cue is in a media element's list of text tracks, the time marches on steps are run. ``` -------------------------------- ### Blog post example with article element and schema.org annotations Source: https://www.w3.org/TR/2016/WD-html51-20160310/sections.html Example of a blog post using the article element with schema.org annotations. Shows the basic structure for a self-contained article, including header, content, and footer, using microdata attributes. ```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.

_..._

``` -------------------------------- ### Markup for foster parenting example Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html The markup used in the parsing model example to illustrate foster parenting and the handling of active formatting elements. ```html bbb
aaa
ccc ``` -------------------------------- ### HTML document after omitting start tag Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html The same document as the previous example but with the start tag removed. The DOM is identical, and whitespace around the root element is ignored. ```html Hello

Welcome to this example.

``` -------------------------------- ### Numeric input control example (type=number) Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example of an input element with type=number, min=0, step=0.01, and name=price, used to collect a monetary amount. The step value allows two decimal places. ```html ``` -------------------------------- ### media.play() Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Starts playback of the media resource. Sets the paused attribute to false, loading the media resource and beginning playback if necessary. If playback had ended, it will restart from the start. ```APIDOC ## media.play() ### Description Starts playback of the media resource. Sets the paused attribute to false, loading the media resource and beginning playback if necessary. If playback had ended, it will restart from the start. ### Method play() ### Parameters None. ### Return Value None. ### Example ```js media.play(); ``` ``` -------------------------------- ### URL input with datalist example Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example markup for an input element in the URL state with a datalist providing suggested URLs. The user agent may use session history to offer additional matches, which are not exposed to the DOM. ```html ``` -------------------------------- ### HTML example with white space added back Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html This example shows the same minimal markup with some white space added back for readability, which is still equivalent to the original document. ```html Hello

Welcome to this example.

``` -------------------------------- ### Dialog box example with form for adding coins Source: https://www.w3.org/TR/2016/WD-html51-20160310/interactive-elements.html An HTML example of a dialog element containing a form to add coins to a wallet. It uses the main element to highlight important content and includes input fields for amount and rounding. ```html

Add to Wallet

How many gold coins do you want to add to your wallet?

You add coins at your own risk.

``` -------------------------------- ### Multipart form data entity body example Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example of the entity body sent when submitting the POST form with multipart/form-data. Shows the multipart boundaries and field values. ```text ------kYFrd4jNJEgCervEContent-Disposition: form-data; name="t" cats ------kYFrd4jNJEgCervE Content-Disposition: form-data; name="q" fur ------kYFrd4jNJEgCervE-- ``` -------------------------------- ### Conforming p element examples Source: https://www.w3.org/TR/2016/WD-html51-20160310/grouping-content.html Three separate examples of conforming HTML fragments using the p element: a simple paragraph, a fieldset with paragraphs containing form controls, and a limerick with line breaks. ```html

The little kitten gently seated itself on a piece of carpet. Later in his life, this would be referred to as the time the cat sat on the mat.

``` ```html
Personal information

``` ```html

There was once an example from Femley,
Whose markup was of dubious quality.
The validator complained,
So the author was pained,
To move the error from the markup to the rhyming.

``` -------------------------------- ### HTML example: Explicit paragraphs with split link Source: https://www.w3.org/TR/2016/WD-html51-20160310/dom.html Shows the same content as the previous example but with explicit p elements and the link split into three separate elements, demonstrating proper paragraph separation. ```html

Welcome! This is home of...

The Falcons!

The Lockheed Martin multirole jet fighter aircraft! This page discusses the F-16 Fighting Falcon’s innermost secrets.

``` -------------------------------- ### Long head example with meta, base, link, script, title Source: https://www.w3.org/TR/2016/WD-html51-20160310/document-metadata.html A more extensive head example using uppercase HTML tags and attributes, including meta charset, base href, title, link stylesheets, script, and meta application-name. Demonstrates a longer head structure. ```html An application with a long head ... ``` -------------------------------- ### Blog post with nested article comments example Source: https://www.w3.org/TR/2016/WD-html51-20160310/sections.html Expanded version of the blog post example, adding a nested section for comments. Demonstrates nested article elements for user comments, using schema.org and microdata to mark up comments and their authors. ```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.

_..._

Comments

Posted by: George Washington

Yeah! Especially when talking about your lobbyist friends!

Posted by: George Hammond

Hey, you have the same first name as me.

``` -------------------------------- ### Paragraph example with ins and del elements Source: https://www.w3.org/TR/2016/WD-html51-20160310/dom.html Shows the same markup as the previous example but with ins and del elements around some content. Demonstrates that these elements can straddle paragraph boundaries without changing the paragraph structure. ```html

Example of paragraphs

This is the first paragraph in
this example.

This is the second.

``` -------------------------------- ### Seamless iframe inclusion example Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Example of using the seamless attribute to include a site-wide navigation bar. In new user agents, links open in the parent and styles are applied automatically; legacy user agents may need a base element with target=_parent and explicit styles. ```html Mirror Mirror — MovieInfo™

Mirror Mirror

Part of the MovieInfo™ Database

... ``` -------------------------------- ### Dropzone example: accept image files and display them Source: https://www.w3.org/TR/2016/WD-html51-20160310/editing.html This example creates a drop target for image files using the dropzone attribute with copy operation and MIME types for PNG, GIF, and JPEG. The ondrop handler receives the event and appends an image element to the div when a file with an image MIME type is dropped. ```html

Drop an image here to have it displayed.

``` -------------------------------- ### HTML document after removing start tag with comment Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html The result of removing the start tag from the previous example: the comment moves to before the element, changing the DOM. ```html Hello

Welcome to this example.

``` -------------------------------- ### selectionStart attribute Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Gets or sets the offset to the character immediately following the start of the selection. Setting acts as if setSelectionRange() was called. ```APIDOC ## selectionStart attribute ### Description Gets or sets the offset (in logical order) to the character immediately following the start of the selection. If there is no selection, returns the offset to the character immediately following the text entry cursor. ### Method selectionStart (getter/setter) ### Parameters - **newValue** (number) - Required - The new start offset. ### Behavior - On getting: returns the offset to the character immediately following the start of the selection, or the cursor position if no selection. - On setting: acts as if `setSelectionRange()` was called with the new value as first argument, the current `selectionEnd` (or new value if `selectionEnd` is less) as second argument, and current `selectionDirection` as third argument. ``` -------------------------------- ### Use a plugin with fallback content (Flash video example) Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Shows how to embed a Flash plugin to play a video, with fallback to a video element and a link for browsers without Flash or video support. The object element uses type="application/x-shockwave-flash" and param elements for configuration. ```html

Look at my video:

``` -------------------------------- ### TimeRanges interface Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html The TimeRanges interface represents a list of time ranges. It provides methods to get the start and end times of ranges by index. ```APIDOC ## TimeRanges interface ### Description The TimeRanges interface represents a list of ranges (periods) of time. It provides read-only access to the number of ranges and methods to retrieve the start and end times of each range. ### Interface Definition ``` interface TimeRanges { readonly attribute unsigned long length; double start(unsigned long index); double end(unsigned long index); }; ``` ### Attributes - **length** (unsigned long) - Read-only. Returns the number of ranges in the object. ### Methods #### start(index) - **index** (unsigned long) - Required. The index of the range. - Returns the time for the start of the range with the given index, in seconds. - Throws an `IndexSizeError` exception if the index is out of range (greater than or equal to the number of ranges). #### end(index) - **index** (unsigned long) - Required. The index of the range. - Returns the time for the end of the range with the given index, in seconds. - Throws an `IndexSizeError` exception if the index is out of range (greater than or equal to the number of ranges). ### Behavior - The `length` attribute must return the number of ranges represented by the object. - The `start(index)` method must return the position of the start of the indexth range, in seconds measured from the start of the timeline. - The `end(index)` method must return the position of the end of the indexth range, in seconds measured from the start of the timeline. - These methods must throw `IndexSizeError` exceptions if called with an index argument greater than or equal to the number of ranges. - Ranges in a `TimeRanges` object must be inclusive. - A normalized `TimeRanges` object has ranges that are ordered, don’t overlap, and don’t touch (adjacent ranges are folded into one bigger range). ``` -------------------------------- ### Pass a parameter to a plugin using param (O3D example) Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Complete HTML document showing how to use the param element to pass a parameter (o3d_features) to the O3D plugin. Includes fallback content (img and text) and a script reference. ```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.

``` -------------------------------- ### HTML example with white space preventing tag omission Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html This example shows a basic HTML document with white space around the head and body start tags, which prevents those tags from being omitted. The body and html end tags could be omitted without affecting the parse tree. ```html ** **** **Hello** **** **** **

Welcome to this example.

``` -------------------------------- ### HTML comment syntax example Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html Shows the required syntax for HTML comments: start with . ```html ``` -------------------------------- ### Example of a select element with options Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Shows a select element with a label and five options, with the third option preselected using the selected attribute. ```html

``` -------------------------------- ### hCalendar microformat example using time element Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Shows a hypothetical way of encoding an event using a variant on hCalendar that uses the time element for event start and end dates. ```html
http://www.web2con.com/ Web 2.0 Conference: - , at the Argent Hotel, San Francisco, CA
``` -------------------------------- ### Flight booking example with datetime-local input Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Shows a fieldset with an airport selection and a departure time input using type=datetime-local with step=3600, plus a datalist of airports. ```html
Destination

``` -------------------------------- ### window.open() Source: https://www.w3.org/TR/2016/WD-html51-20160310/browsers.html Opens or navigates a browsing context by name, optionally creating a new auxiliary browsing context. Returns the WindowProxy of the target browsing context. ```APIDOC ## [GET] window.open() ### Description Opens a new browsing context or navigates an existing one by name, optionally creating an auxiliary browsing context. ### Method GET ### Endpoint window.open(url, target, features, replace) ### Parameters #### Path Parameters None. #### Query Parameters None. #### Request Body - **url** (string) - Required - The URL to navigate to. If empty, navigates to about:blank. - **target** (string) - Required - The name of the browsing context. If empty, defaults to "_blank". - **features** (string) - Optional - A string of comma-separated features for the new window, interpreted per the CSSOM View specification. - **replace** (boolean) - Optional - Indicates whether to replace the current entry in the session history. ### Request Example ```javascript window.open("https://example.com", "_blank", "width=500,height=400"); ``` ### Response #### Success Response (200) - **WindowProxy** (object) - The WindowProxy object of the target browsing context. #### Response Example ```json { "windowProxy": {} // WindowProxy object of the target browsing context } ``` ``` -------------------------------- ### WebVTT chapter track example Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Shows the WebVTT cue format for chapter tracks, with time ranges and chapter titles. ```webvtt 01:30:00.000 --> 01:35:00.000 Answers to Last Exam 01:35:00.000 --> 01:40:00.000 Coursework Description 01:40:00.000 --> 02:30:00.000 General Relativity 01:40:00.000 --> 02:00:00.000 Tensor Algebra 02:00:00.000 --> 02:30:00.000 The General Relativistic Field Equations ``` -------------------------------- ### Ambiguous heading example:

Contact details

Source: https://www.w3.org/TR/2016/WD-html51-20160310/introduction.html Shows an example of markup where the author's intent is unclear, used to illustrate a syntax error. The example is an h2 element containing the text 'Contact details'. ```html

Contact details

``` -------------------------------- ### Autofocus text input example Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html A text input with the autofocus attribute, which will be focused when the document is loaded. The example includes a submit button. ```html ``` -------------------------------- ### Rendering of multi-annotation ruby with rp in non-ruby user agents Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Shows the expected rendering of the previous multi-annotation ruby example in non-ruby-capable user agents, with the fallback punctuation and text. ```text ♥: Heart, Cœur. ☘: Shamrock, Trèfle. ✶: Star, Étoile. ``` -------------------------------- ### Sample header for a game Source: https://www.w3.org/TR/2016/WD-html51-20160310/sections.html A simple header element containing a welcome message and the game title. ```html

Welcome to...

Voidwars!

``` -------------------------------- ### setRangeText(replacement, start, end, selectMode) Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Replaces a range of text with the given replacement string. Throws IndexSizeError if start > end. ```APIDOC ## setRangeText(replacement, start, end, selectMode) ### Description Replaces the text in the specified range with the replacement string. If only one argument is given, uses the current selection. Throws an IndexSizeError if start > end. ### Method setRangeText(replacement, start, end, selectMode) ### Parameters - **replacement** (string) - Required - The replacement text. - **start** (number) - Optional - The start offset. If omitted, uses the value of `selectionStart`. - **end** (number) - Optional - The end offset. If omitted, uses the value of `selectionEnd`. - **selectMode** (string) - Optional - The selection mode after replacement. (Not detailed in source.) ### Behavior - If only one argument is provided, start and end are set to the current selectionStart and selectionEnd. - If start > end, throws an `IndexSizeError` exception and aborts. ``` -------------------------------- ### Inline samp element example Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Shows the samp element used inline to represent sample output from a computer system. ```html

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

``` -------------------------------- ### Markup for a toolbar menu with meter elements Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example of a toolbar menu with links and a list of groups, each showing a meter element with value attributes. The meter elements indicate activity levels. ```html

Suggested groups

Hide suggested groups ``` -------------------------------- ### Non-conforming usage of br element (two examples) Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Two examples that abuse the br element for separating thematic groups in a paragraph. They are non-conforming. ```html

34 comments.
Add a comment.

``` ```html


``` -------------------------------- ### Bad example: all label text inside link Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html This example shows that placing all label text inside a link reduces the activation area to the checkbox only. ```html ``` -------------------------------- ### Rendering of ruby with rp in non-ruby user agents Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Shows the expected rendering of the previous ruby example in user agents that do not support ruby: the fallback text (parentheses) is displayed around the readings. ```text ... 漢字 (かんじ) ... ``` -------------------------------- ### HTML boolean attribute example: checked=checked and disabled=disabled Source: https://www.w3.org/TR/2016/WD-html51-20160310/infrastructure.html Equivalent form of the boolean attribute example using the canonical name as the value for checked and disabled. ```HTML ``` -------------------------------- ### Misnested tags example: Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html Shows erroneous markup with misnested tags that the HTML parser handles. The example is from section 8.2.8.1 and is non-normative. ```html

12345

``` -------------------------------- ### WebVTT metadata track example for scores Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Shows a WebVTT file fragment with metadata cues for match type, match number, and team scores, demonstrating the recommended practice of using cues that span the duration of the relevant event. ```webvtt WEBVTT ... 05:10:00.000 --> 05:12:15.000 matchtype:qual matchnumber:37 ... 05:11:02.251 --> 05:11:17.198 red:78 05:11:03.672 --> 05:11:54.198 blue:66 05:11:17.198 --> 05:11:25.912 red:80 05:11:25.912 --> 05:11:26.522 red:83 05:11:26.522 --> 05:11:26.982 red:86 05:11:26.982 --> 05:11:27.499 red:89 ... ``` -------------------------------- ### Sudoku table markup example Source: https://www.w3.org/TR/2016/WD-html51-20160310/tabular-data.html An example of a table used to mark up a Sudoku puzzle, showing the lack of headers. Includes scoped styles and table structure. ```html

Today’s Sudoku

1 3 6 4 7 9
2 9 1
7 6
2 4 3 9 8
5 9 7 1
6 5 2
7
9 8 2 5
``` -------------------------------- ### Cache manifest with images, stylesheet, and network safelist Source: https://www.w3.org/TR/2016/WD-html51-20160310/browsers.html Example manifest that caches two images and a style sheet, and safelists a CGI script. The manifest requires the 'CACHE MANIFEST' line, uses comments and blank lines, and demonstrates the NETWORK: and CACHE: sections. ```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 safelist -- 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 ``` -------------------------------- ### Form submission with POST and multipart/form-data Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html Example form using the POST method with enctype="multipart/form-data". The submission results in an HTTP POST with a multipart entity body. ```html
``` -------------------------------- ### getStartDate() method Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Returns a new Date object representing the current timeline offset of the media resource. ```APIDOC ## getStartDate() method ### Description Returns a new `Date` object representing the current timeline offset. The timeline offset is initially set to NaN. ### Method `getStartDate()` ### Return Value - **Date** - A new Date object representing the current timeline offset. ``` -------------------------------- ### Good example: link outside label Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html This example shows that placing the link outside the label maintains the checkbox activation area including the checkbox and all label text. ```html (read Terms and Conditions) ``` -------------------------------- ### Bad example: link inside label Source: https://www.w3.org/TR/2016/WD-html51-20160310/sec-forms.html This example shows that placing a link inside a label reduces the checkbox activation area. Clicking the link does not toggle the checkbox. ```html ``` -------------------------------- ### HTML example with white space removed Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html This example shows the same document with all unnecessary white space removed, making it possible to omit several tags without affecting the DOM. ```html Hello

Welcome to this example.

``` -------------------------------- ### media.readyState Source: https://www.w3.org/TR/2016/WD-html51-20160310/semantics-embedded-content.html Returns the current ready state of the media element, which can jump between states discontinuously. ```APIDOC ## media.readyState ### Description Returns the current ready state of the media element, which can jump between states discontinuously. ### Property readyState (read-only) ### Return Value Number - The current ready state (e.g., HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTURE_DATA, HAVE_ENOUGH_DATA). ### Example ```js const state = media.readyState; ``` ``` -------------------------------- ### addShortcutKeyLabel example Source: https://www.w3.org/TR/2016/WD-html51-20160310/editing.html Shows how to add a shortcut key label to an element using the addShortcutKeyLabel method. The label displayed varies by platform and key combination. ```javascript addShortcutKeyLabel(document.getElementById('c')); ``` -------------------------------- ### Unquoted attribute value syntax example: value=yes Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html Shows the unquoted attribute value syntax where the value is not enclosed in quotes. The example uses the 'value' attribute with the value 'yes'. ```html ``` -------------------------------- ### HTML example with parser-implied tags Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html This example shows the document with the omitted tags shown in their parser-implied positions, illustrating that the only white space text node is the newline at the end of the head element. ```html Hello

Welcome to this example.

``` -------------------------------- ### kbd element: indicating keys to press Source: https://www.w3.org/TR/2016/WD-html51-20160310/textlevel-semantics.html Shows how to mark up keyboard input with nested kbd elements to represent individual keys. The example instructs the user to press Shift+F3. ```html

To make George eat an apple, press Shift+F3

``` -------------------------------- ### Single-quoted attribute value syntax example: type='checkbox' Source: https://www.w3.org/TR/2016/WD-html51-20160310/syntax.html Shows the single-quoted attribute value syntax where the value is enclosed in single quotes. The example uses the 'type' attribute with the value 'checkbox'. ```html ```