Skip to content
Learn Netverks

Lesson

Step 26/36 72% through track

badges-counters

Badges, marks, and counters

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Badges, marks, and counters—the ideas, syntax, and habits you need before moving on in Pico CSS.

Class-light frameworks teach when semantic HTML alone should carry the design.

You will apply Badges, marks, and counters in contexts like: Documentation sites, blogs, internal tools, and side projects where you want polish without a large class vocabulary.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs.

Toward the end of the track—use it to consolidate patterns before the capstone or summary lessons.

Pico does not ship Bootstrap-style .badge components. Status chips and counts come from semantic inline elements Pico already styles: small, mark, sup, kbd, and secondary button outlines for pill-like labels.

Patterns that work

  • small next to a heading for muted status (“Beta”, “Updated today”).
  • mark for search highlights or “new” emphasis in prose.
  • sup for footnote numbers or compact counts in nav links.
  • kbd for keyboard hints in documentation—pairs well with the search/dialog lesson.

Need strict brand-colored pills? Override Pico CSS variables or add a tiny project-specific class—avoid fighting element defaults with long utility chains.

Self-check

  1. Which element highlights matching text in docs search results?
  2. Why might small be better than a custom span.badge in Pico projects?

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • mark vs small?
  • Semantic for counts?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump