4 ms·
One way to get to this is to start with almost-'94 HTML: <!doctype html> <html> <head> <title>Some Topic</title> </head> <body>
by neilv 10mo ago
One way to get to this is to start with almost-'94 HTML:
<!doctype html>
<html>
<head>
<title>Some Topic</title>
</head>
<body>
<h1>Some Topic</h1>
<p>Information goes here.</p>
<p>Information goes here.</p>
<p>Information goes here.</p>
</body>
</html>
Then add a little non-'94 CSS styling.
If you decide to add an off-the-shelf wad of CSS, like Pico.css, consider hosting it alongside your HTML (rather than turning it into another third-party dependency and CDN cross-site surveillance tracker). Minified, and single-request.
- divbzero 10mo agoThis should be every web developer’s first webpage. No npx create-react-app ... or pip install django or any other layers in between.
- valadaptive 10mo agoI always include `<meta charset="utf-8">`. Is that still necessary?
- kxrm 10mo agoif the server supplies this as a header, it's not necessary.
- genewitch 10mo agoyou don't even need `<!doctype html>`. I'm sure it's easy to look up when that was added/recommended, but i've never used it when i do a 94 html page/site like this. html head title /title /head body /body /html 'sit
- neilv 10mo agoI also do that and a couple other things. I used mostly '94 HTML for the comment, to try to make a point.
- nicbou 10mo agoIt's really that simple. I run a website that's primarily text-based. When I change the base template, I still check that it works without CSS. This just means semantic HTML. That being said, CSS is rarely that large. Even after a few years of relative indulgence, the gzipped CSS for the whole website is still something like 20kb.
- theandrewbailey 10mo agoHTML5 boilerplate: https://github.com/h5bp/html5-boilerplate/blob/main/src/index.html https://github.com/h5bp/html5-boilerplate/blob/main/src/inde...
- tsumnia 10mo agoNow that's a template I haven't seen in a long time! Thanks for the fun trip down memory lane that "started it all".