Remix.run Logo
neilv 3 days 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 3 days ago | parent | next [-]

This should be every web developer’s first webpage. No npx create-react-app ... or pip install django or any other layers in between.

theandrewbailey 2 days ago | parent | prev | next [-]

HTML5 boilerplate: https://github.com/h5bp/html5-boilerplate/blob/main/src/inde...

tsumnia 2 days ago | parent [-]

Now that's a template I haven't seen in a long time! Thanks for the fun trip down memory lane that "started it all".

nicbou 3 days ago | parent | prev | next [-]

It'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.

valadaptive 3 days ago | parent | prev [-]

I always include `<meta charset="utf-8">`. Is that still necessary?

genewitch 3 days ago | parent | next [-]

you 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

qznc 2 days ago | parent | next [-]

Minimal valid HTML5:

    <!doctype html>
    <title>Hello</title>
    <h1>Hello World</h1>
neilv 3 days ago | parent | prev [-]

That particular doctype is HTML5. I was making a too-subtle joke about slapping it on '94 HTML.

neilv 3 days ago | parent | prev | next [-]

I also do that and a couple other things. I used mostly '94 HTML for the comment, to try to make a point.

kxrm 3 days ago | parent | prev [-]

if the server supplies this as a header, it's not necessary.