3 ms·
All of those tags are optional. It’s perfectly valid to omit them.
by JimDabell 6y ago
All 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-...