htmlbeginnermit
Stat Card
A dashboard stat card with trend indicator.
5.1k569309259
About this module
A compact KPI card with a value, delta badge and sparkline placeholder — bread and butter for dashboards.
#card#stat#dashboard#kpi
Source code
Installation
- 1
Create the files
Create `index.html` and `style.css` in the same folder.
- 2
Paste the code
Copy each file's source into its matching file.
- 3
Open in the browser
Open `index.html` in any modern browser.
Usage
- 1
Copy the HTML
Paste the card markup where you need it.
<link rel="stylesheet" href="style.css" /> <article class="mh-stat"> <div class="mh-top"> <span class="mh-label">Total views</span> <span class="mh-delta up">+12.4%</span> </div> <div class="mh-value">48,291</div> <div class="mh-foot">vs 42,956 last month</div> </article>