Skip to content
Marcos Cáceres edited this page Jun 14, 2016 · 9 revisions

Marks a div, <pre>, or aside as being an example. This provides an element with a specific styling and header.

Example

<div class=example>
  <p>Here we see how to use a fat arrow in ES.
  <pre>
  const sum = [...items]
    .map(item => item * 2)
    .reduce((sum, next) => sum + (next || 0) );
  </pre>
</div>

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally