Modern HTML & CSS blog
Build the web
Build the web
the modern way
Practical, accessible HTML & CSS tutorials — no framework bloat, no outdated hacks. Just clean code you can use today.
4 Posts
9 Topics
100% Accessibility
modern.css
/* Fluid typography — no media queries */
h1 {
font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
}
/* Responsive card — container queries */
.card-wrapper { container-type: inline-size; }
@container (min-width: 400px) {
.card { grid-template-columns: 120px 1fr; }
}
/* No more padding-bottom hacks */
.video { aspect-ratio: 16 / 9; } Recent posts
-
How to Make a Register Page Using CSS and HTML
Build a clean, responsive registration form from scratch with semantic HTML and modern CSS.
-
How to Make a Login Page Using CSS and HTML
Create a polished, accessible login form with semantic HTML and modern CSS techniques.
-
Are You Still Using Media Query? Try These Modern CSS Features!
Container queries, clamp(), aspect-ratio, and more — modern CSS can replace most of your media queries.