An inside look at the new Space Teddy 6
…
Cotton Fur
…
### Example of Plain Text Document Structure
Source: https://github.com/w3c/silver/blob/main/methods/visually-distinct/examples.html
This snippet provides an example of a plain text document, illustrating basic paragraph and heading separation. It shows how content flows naturally without any special formatting or markup, relying solely on line breaks and blank lines for structure. This format is suitable for simple, unformatted textual content.
```Text
Here’s the end of a paragraph about something very interesting that you’re fascinated in and want to read more about.
Here’s a heading to describe the next block of text
Here’s the beginning of a new paragraph about something even more interesting than the previous paragraph that was, frankly, amazing.
```
--------------------------------
### Inapplicable Image with Non-Empty Alt Attribute (HTML)
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example demonstrates an `img` element that is not subject to the 'purely decorative' evaluation because it explicitly provides meaningful alternative text via its `alt` attribute. This ensures it is included in the accessibility tree and its content is conveyed to assistive technologies.
```HTML
```
--------------------------------
### Setting Primary Page Language in HTML
Source: https://github.com/w3c/silver/blob/main/how-tos/changes-of-natural-language/get-started.html
This HTML snippet demonstrates how to declare the primary human language of an entire web page using the 'lang' attribute on the '' tag. This is crucial for assistive technologies to correctly interpret and pronounce content, ensuring the entire document is processed with the appropriate language rules.
```HTML
This is some content in English.
``` -------------------------------- ### Supplementing Content with Images in HTML Source: https://github.com/w3c/silver/blob/main/methods/informative-images/examples.html This example shows an image that supplements nearby text. The `alt` attribute describes visual information not fully explained in the surrounding text, such as 'A dog with a bell attached to its collar.' This ensures that users understand the visual context even if the image is not displayed. ```HTML
Off-duty guide dogs often wear ...
It seems a paradox, does it not,
that the image formed on
the Retina should be inverted?
It is puzzling, why is it
we do not see things upside-down?
Happy new year!
```
--------------------------------
### Basic Document Structure with Markdown
Source: https://github.com/w3c/silver/blob/main/methods/visually-distinct/examples.html
This Markdown example illustrates a basic document structure, including a top-level title and a second-level heading, followed by introductory and body paragraphs. It showcases how Markdown can be used to organize content hierarchically. This snippet is useful for understanding the fundamental layout of a Markdown document.
```Markdown
# An exciting document title
Here’s the introduction to the document, hopefully with a summary to help readers understand if the contents will be useful to them.
## Here’s an interesting second-level heading
This is the beginning of an interesting paragraph of text that you, dear reader, will hopefully enthuse about.
```
--------------------------------
### Using an Image as a Heading with Alt Text in HTML
Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html
This HTML snippet demonstrates using an image as the content of an `
```
--------------------------------
### Failing Non-Decorative Image with Empty Alt (HTML)
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example demonstrates an `img` element that fails accessibility because it is not purely decorative (it's a logo) but has an empty `alt` attribute. This makes it inaccessible to users of assistive technologies who rely on the `alt` text to understand the image's content.
```HTML
```
--------------------------------
### Editor Interface Buttons with Informative Icons - HTML
Source: https://github.com/w3c/silver/blob/main/methods/functional-images/examples.html
This example presents a list of buttons within an editor interface, each using an icon to represent a specific action. Crucially, each image's `alt` attribute is set to the corresponding action name (e.g., 'Bold', 'Italics'), providing essential accessibility for users who rely on screen readers.
```HTML
Happy new year!
``` -------------------------------- ### Failing Non-Decorative Image with role='none' (HTML) Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html This example illustrates an `img` element that fails accessibility. It has meaningful content (a logo) but is incorrectly marked with `role="none"`, which removes its semantic meaning and hides it from assistive technologies, making its content inaccessible. ```HTML
```
--------------------------------
### Declaring Decorative Image with role='none' (HTML)
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example illustrates an `img` element designated as purely decorative by setting its `role` attribute to `none`. This explicit semantic role removes the element's default semantics, causing assistive technologies to ignore it, regardless of its `alt` attribute content.
```HTML
Happy new year!
```
--------------------------------
### Displaying Guidelines with Liquid in Jekyll
Source: https://github.com/w3c/silver/blob/main/prototypes/PlainLanguage/home.html
This Liquid templating snippet iterates through all pages in the Jekyll site. It checks if a page's layout is 'guideline' and, if so, generates an HTML link to that guideline. The link text includes the guideline's success criteria and title, providing a dynamic navigation list for all documented guidelines.
```Liquid
{% for instance in site.pages %} {% if instance.layout=="guideline"%}
[Guideline {{instance.successCriteria}}: {{instance.successCriteriaTitle}}]({{instance.successCriteria}}/index.html)
{% endif %} {% endfor %}
```
--------------------------------
### Specifying Language for Content Blocks in HTML
Source: https://github.com/w3c/silver/blob/main/how-tos/changes-of-natural-language/get-started.html
This HTML snippet illustrates how to declare a language change for a specific block or phrase of content within a page using the 'lang' attribute on elements like 'The French phrase for 'hello' is Bonjour.
Dies ist ein Absatz auf Deutsch.
This paragraph is in German.
```
--------------------------------
### Positioning Image Off-Screen with CSS
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example shows an `img` element that is not visible because it is positioned far off-screen using CSS. The `position: absolute` and `top: -9999em` properties effectively remove it from the viewport, making it visually inaccessible.
```HTML
```
--------------------------------
### Drawing Text on Accessible Canvas with JavaScript
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example demonstrates a `canvas` element with a `role="img"` and `aria-label` attribute, making it semantically an image with an accessible name. The accompanying JavaScript draws text onto the canvas, providing visual content for the accessible image.
```HTML
```
--------------------------------
### Implementing a Three-Column HTML Layout with Headings
Source: https://github.com/w3c/silver/blob/main/methods/headings-in-html/examples.html
This example illustrates an HTML structure for a three-column page layout. It highlights how the main content's `h1` can be placed within the middle column, not necessarily as the first element on the page, while side columns use `h2`, reflecting the content's relative importance rather than strict sequential order.
```HTML
```
--------------------------------
### Defining Accessible SVG Image with ARIA
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This example demonstrates an `svg` element explicitly given a semantic role of `img` and an accessible name through the `aria-label` attribute. This ensures that the SVG graphic is treated as an image by assistive technologies and conveys its purpose.
```SVG
```
--------------------------------
### Structuring HTML Headings with ARIA for Space Teddy Inc.
Source: https://github.com/w3c/silver/blob/main/methods/headings-in-html/examples.html
This snippet demonstrates how to structure HTML headings (h1, h2, h3) and use `aria-labelledby` for navigation and content sections. It illustrates a hierarchical content organization, ensuring accessibility by linking ARIA labels to corresponding heading elements.
```HTML
…
…
It seems a paradox, does it not,
that the image formed on
the Retina should be inverted?
It is puzzling, why is it
we do not see things upside-down?
Only
5.99!
Best W3C logo:
``` -------------------------------- ### Declaring Decorative SVG without Accessible Name (HTML) Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html This example demonstrates an `svg` element correctly treated as purely decorative. It lacks any attributes that would provide an accessible name, ensuring it is ignored by assistive technologies, which is appropriate for purely visual, non-informative graphics. ```HTMLHappy new year!
``` -------------------------------- ### Styling Text with Relative Units in CSS Source: https://github.com/w3c/silver/blob/main/methods/visually-distinct/examples.html This CSS snippet demonstrates the use of relative units like `rem` and `em` for text sizing and margins, ensuring text resizes proportionally with user browser settings for improved accessibility. It also shows unitless `line-height` for adaptive line spacing based on computed font size. This approach maintains visual consistency and responsiveness across different display environments. ```CSS :root{ font-size:100%; } body{ font-size:1rem; } h1, .h1{ font-size:2.441rem; font-weight:700; line-height:1.25; margin:0.8em 0 0.262em; } h2, .h2{ font-size:1.953rem; font-weight:700; line-height:1.25; margin:1em 0 0.262em; } p{ margin-top:0; } ``` -------------------------------- ### Indicating File Format with Images in HTML Source: https://github.com/w3c/silver/blob/main/methods/informative-images/examples.html This snippet shows how images can indicate file formats within text links. The `alt` attributes ('[HTML]', '[Word document]', '[PDF]') clearly distinguish the file type for each download link, improving usability and accessibility by informing users about the expected file format before they click. ```HTML
2012 Annual report and accounts
(43KB)
, also available in
(254KB)
or
(353KB)
format.
Happy new year!
``` -------------------------------- ### Creating a Linked Image with Text Alternative in HTML Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html This HTML snippet demonstrates how to embed an image that serves as a link to a newsletter. The `alt` attribute provides a comprehensive text alternative that matches the visible text within the image, ensuring accessibility for users who cannot see the image. ```HTML
```
--------------------------------
### Including Visible Image in Accessibility Tree in HTML
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This snippet shows an `img` element that is both visible and included in the accessibility tree, providing an `alt` attribute. While it might lead to redundant announcements if text is also present, it correctly conveys the image's purpose to assistive technologies.
```HTML
```
--------------------------------
### HTML Multilingual Newsletter Example
Source: https://github.com/w3c/silver/blob/main/how-tos/changes-of-natural-language/examples.html
This HTML snippet demonstrates how to define the primary language of a document using `lang="es"` on the `` tag and how to switch to a different language for specific content blocks using `lang="en"` on a `` tag. This ensures proper rendering, accessibility, and search engine indexing for multilingual content. ```HTML
¡Hemos comenzado a contar las últimos días antes de verano! Es hora de apreciar el arduo trabajo de los maestros y los estudiantes por un flujo constante de compromiso en el mejor trabajo que existe, el desarrollo infantil. Qué tremendo tiempo hemos tenido. Estoy asombrado por los logros del año.
We have started counting down the last days before summer! It is time to appreciate the hard work of the staff and students for a steady stream of engagement in the best work there is, childhood development. What a tremendous time we have had. I am in awe of the year’s accomplishments.
``` -------------------------------- ### Using longdesc for Detailed Illuminated Letter Descriptions (HTML) Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html This HTML example demonstrates using both `alt` and `longdesc` attributes for an illuminated letter. The `alt` attribute provides the character 'O', while `longdesc` links to 'letters/story-0.html' for a more detailed description of the letter's design, useful when visual details are crucial for understanding. ```HTML
nce upon a time and a long long time ago...
Happy new year!
``` -------------------------------- ### Indicating All Inputs Required with Page Instructions (HTML) Source: https://github.com/w3c/silver/blob/main/methods/required-inputs-indicated/examples.html This example shows how to inform users that all form inputs are required by providing a general instruction at the top of the page using atag. Individual input fields use 'aria-required="true"' to programmatically convey their required status. ```HTML
Note: All inputs are required
``` -------------------------------- ### Concise Alt Text for Advertising Images (HTML) Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html This HTML snippet demonstrates providing `alt` text for an advertising image. The `alt` attribute contains a concise description, 'The BIG sale ...ends Friday.', avoiding repetition for visual effects to prevent confusion for screen reader users. It ensures the core message is conveyed without unnecessary verbosity. ```HTML
W3C Home
```
--------------------------------
### Displaying W3C Accessibility Guidelines Flavor (HTML/Bootstrap)
Source: https://github.com/w3c/silver/blob/main/prototypes/FlavorPrototype/site/componentExamples.html
This HTML snippet demonstrates how to structure a 'flavor' section using Bootstrap's grid system. It includes a column, a flavor-specific area, a title, and placeholder content, illustrating the visual presentation of a W3C Accessibility Guideline 'flavor'. This example uses Bootstrap classes like 'col-md-6' for layout.
```HTML
Lorem ipsum...
0123 456 7890
0123 456 7891
```
--------------------------------
### Embedding Decorative Text Image with Alt Text in HTML
Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html
This HTML snippet shows an image used to convey a slogan with decorative effects. The `alt` attribute provides the slogan text, 'Your access to the city', without describing the decorative styling, as the styling is not relevant to the image's core meaning.
```HTML
```
--------------------------------
### Indicating Required Input with Image and Instructions (HTML)
Source: https://github.com/w3c/silver/blob/main/methods/required-inputs-indicated/examples.html
This example demonstrates using an image as a non-text indicator for required fields, such as a star icon. A paragraph explains the image's meaning, and the image is included both in the legend and within the label itself, with the 'required' attribute on the input.
```HTML
Note:
denotes a required field
```
--------------------------------
### Image Input Button with Alt Text - HTML
Source: https://github.com/w3c/silver/blob/main/methods/functional-images/examples.html
This snippet shows an `` element used as a button. The `alt` attribute is set to 'Search' to provide a textual description of the button's purpose (a magnifying lens icon), ensuring accessibility for users who cannot see the image.
```HTML
```
--------------------------------
### Embedding SVG within an Accessible Link in HTML
Source: https://github.com/w3c/silver/blob/main/methods/decorative-images/examples.html
This snippet illustrates an `svg` element nested within an `` tag. The `svg` is ignored for accessibility purposes because the parent link provides its accessible name via the `aria-label` attribute, making the SVG content redundant for screen readers.
```HTML
```
--------------------------------
### Alt Text for Illuminated Manuscript Letters (HTML)
Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html
This HTML snippet shows how to provide `alt` text for an image representing a single character, like an illuminated letter in a manuscript. The `alt` attribute simply contains the character itself, 'O', ensuring that the character's meaning is conveyed to assistive technologies.
```HTML
nce upon a time and a long long time ago...
```
--------------------------------
### Embedding Mathematical Expression Image with Detailed Alt Text in HTML
Source: https://github.com/w3c/silver/blob/main/methods/images-of-text/examples.html
This HTML snippet shows an image of a recurring decimal number. The `alt` attribute provides the numerical value and a crucial description of how the recurrence is visually indicated, ensuring that important visual information is conveyed to users who cannot see the image.
```HTML
```
--------------------------------
### Distinguishing Navigation Landmarks with aria-label in HTML
Source: https://github.com/w3c/silver/blob/main/prototypes/FlavorPrototype/site/1-1-1/aria.html
This example demonstrates how to use the `aria-label` attribute to provide unique, accessible labels for multiple navigation landmarks of the same type on a single HTML page. It is particularly useful when no existing text can serve as a label, allowing assistive technologies to differentiate between similar elements.
```HTML
```
--------------------------------
### Embedding an Image as a Search Button Icon - HTML
Source: https://github.com/w3c/silver/blob/main/methods/functional-images/examples.html
This snippet illustrates embedding an image within a `