S
Supanote
Sign in Sign up

Modern HTML5 Responsive Boilerplate

html 1 day ago · 40 lines · 6 views
Scripts isolated
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Modern Web Application</title>
7 <meta name="description" content="Lightweight modern responsive HTML5 boilerplate.">
8 <meta name="theme-color" content="#09090b">
9
10 <style>
11 :root {
12 color-scheme: light dark;
13 --bg: #ffffff;
14 --text: #09090b;
15 }
16 @media (prefers-color-scheme: dark) {
17 :root {
18 --bg: #09090b;
19 --text: #f4f4f5;
20 }
21 }
22 body {
23 margin: 0;
24 font-family: system-ui, -apple-system, sans-serif;
25 background-color: var(--bg);
26 color: var(--text);
27 display: grid;
28 place-items: center;
29 min-height: 100vh;
30 }
31 </style>
32</head>
33<body>
34 <main>
35 <h1>Hello World</h1>
36 <p>Minimal, clean, accessible boilerplate.</p>
37 </main>
38</body>
39</html>

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Share Note

Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification