Skip to content

Search Feitio

↵ opens the first↑↓ chooseEsc closes

Block

A piece of paper on the page: it groups what belongs together.

On this page

Playground

Weekly backup
Element
Background
HTML
<div style="inline-size: min(100%, 26rem)"><div class="feitio-block"><strong>Weekly backup</strong></div></div>

When to use

When not to use

Examples

Reminders

Water the plants, Tuesday at 9. Report, on the 1st.

A block

Raised surface, uneven corners and padding from the scale. No border and no shadow: it sits on the page, it does not float.

Show code
HTML
<section class="feitio-block" aria-labelledby="lembretes">
  <h3 id="lembretes">Lembretes</h3>
  …
</section>

Do and don’t

Do

SchedulesWeekly backup, water the plants, monthly report.

One block with a list inside.

Don’t

Weekly backup
Water the plants
Monthly report

A block per item becomes a pile of identical cards, with no hierarchy.

Attributes

AttributeValuesWhat for
class="feitio-block"requiredRaised surface, uneven corners, padding from the scale.
aria-labelledbythe heading’s idOn a <section>, names the region.
Top