This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.

Images

Prerequisites

This image helper template takes care of providing the right path and markup for images. To make this work efficiently, specify the GitHub repository in the page header, for example:

github:
  repository: w3c/wai-repo-name
  path: content/index.md

Put images always into the /content-images/wai-repo-name/ directory (with wai-repo-name being the actual repository of the resource). This template cannot be cached.

Usage

{% include image.html src="picture.jpg" alt="alternative text" class="someclass" %}

Attributes

Examples

Sizes

alternative text alternative text alternative text alternative text alternative text

Video

alternative text alternative text alternative text alternative text alternative text

Float “left”

alternative text alternative text alternative text alternative text alternative text

Float “right”

alternative text alternative text alternative text alternative text alternative text

clearing paragraph

Back to Top

This is an unpublished draft preview that might include content that is not yet approved. The published website is at w3.org/WAI/.