17 ms·
What about the standard <html><head>...</head><body>...</body></html> tags?
by Izmaki 6y ago
What about the standard <html><head>...</head><body>...</body></html> tags?
- Tomte 6y agoWhat about them? They occur exactly once, and I probably have a prepared file with them already in it. But for every paragraph I write I need to type <p> (and maybe even </p>, if I choose to). That's exactly the use case for Markdown, to get rid of that tedious stuff.
- schwartzworld 6y agoA lot of modern text editors will let you type 'p' and then tab and they will create the opening and closing tag for you.
- Tomte 6y agoSure, I can type "<p", but that's still annoying. Look, I don't hate hand-written HTML. I actually like it better than Markdown.
- JimDabell 6y agoAll of those tags are optional. It’s perfectly valid to omit them.
- iamtedd 6y agoNot according to w3.org's validator. https://validator.w3.org/nu/?doc=https%3A%2F%2Finoads.com%2Farticles%2F2020-01-09-Next-Gen-Static-Blogging https://validator.w3.org/nu/?doc=https%3A%2F%2Finoads.com%2F... Edit: Actually, seems you're right. Though doctype is not there, and there are other problems with the markup.
- JimDabell 6y agoIzmaki and I were talking about the <html>, <head>, and <body> tags, not the article. The smallest valid HTML document is: <!DOCTYPE html><title>…</title> If you put that into the validator, you will see that it is valid.
- Tomte 6y agoCorrect, documented at https://html.spec.whatwg.org/multipage/syntax.html#optional-tags https://html.spec.whatwg.org/multipage/syntax.html#optional-...