Lurker News

Comments (220) 38 threads

Show all comments

Showing thread 8 of 38

divbzero1 reply#
I love the order of tutorial, starting simple to deploy something first:

1. Use Notepad/TextEdit to create a plain text index.html.
2. Deploy index.html to Neocities or similar.
3. Add content with headings and images.
And only then going back to:
4. Make it proper HTML with and .
5. Upgrade Notepad/TextEdit to Visual Studio Code.

have_faith1 reply#
You're probably already aware, but , and is optional in HTML5, so it's a "proper" document without them.
cryptoz3 replies#
Isn't doctype still required by the spec in HTML5 in order to be "proper"? Perhaps I'm mistaken but I thought I remembered that it's technically 'required'.
edflsafoiewq#
It enables quirks mode when missing.
wild_egg1 reply#
The only elements that are absolutely required are doctype and a non-empty title. Most minimal valid HTML doc:


    Foo
sureIy1 reply#
Correct.

Fun fact: you do not need to close most tags in a valid HTML5 document.
This is valid:


    Foo

paragraph
second

  • item hi!

Continue this thread — 1 reply

sureIy#
It is, but I'd argue that people wouldn't even notice that the document is in quirks mode.

I think you'd really only want a TITLE tag so that it appears as a tab name. Anything else is really optional for people and you'd only really need BR, A, and IMG