Article as a card
An <article> is a self-contained surface: white ground,
black outline, offset shadow. No wrapper class needed.
Every element on this page is plain, class-free HTML. Nothing here uses
class, style, or JavaScript. Delete the
<link> in the head and reload to see the same markup
rendered with browser defaults — see plain.html
for that comparison.
A normal paragraph sets the reading rhythm: strong text
carries weight, emphasis leans, a mark is highlighted,
deleted text and inserted text record edits,
CSS gets a hint on hover, and
a link is unmistakably a link. Press
Ctrl + K to search. Inline const x = 1
keeps its own face. Water is H2O, and the area is 12m2.
Small text is for captions, footnotes, and metadata.
HTML stays simple. CSS does the hard work.
— the whole idea
<link rel="stylesheet" href="default-ui.css">
<h1>Tambah Buku</h1>
<button type="submit">Simpan</button>
| Judul | Penulis | Tahun | Stok |
|---|---|---|---|
| Laskar Pelangi | Andrea Hirata | 2005 | 12 |
| Bumi Manusia | Pramoedya Ananta Toer | 1980 | 7 |
| Cantik Itu Luka | Eka Kurniawan | 2002 | 4 |
| Total stok | 23 | ||
An <article> is a self-contained surface: white ground,
black outline, offset shadow. No wrapper class needed.
Landmarks nest without extra markup.
A named value — colour, size, radius, shadow — stored once as a CSS custom property and reused everywhere.
Because semantic HTML already describes intent. The stylesheet reads that intent through element, attribute, and state selectors.