4 ms·
`<!DOCTYPE html>` is not paired with `</html>`. This is what the basic HTML5 boilerplate looks like: <!DOCTYPE html> <html> <!-- content goes here -
by kristoff_it 2y ago
`<!DOCTYPE html>` is not paired with `</html>`. This is what the basic HTML5 boilerplate looks like:
<!DOCTYPE html>
<html>
<!-- content goes here -->
</html>
- account42 2y agoIf it complains about an unmatched </html>, that's fine. But you can omit <html> as it is an implied tag: https://html.spec.whatwg.org/multipage/semantics.html#the-html-element https://html.spec.whatwg.org/multipage/semantics.html#the-ht... > An html element's start tag can be omitted if the first thing inside the html element is not a comment. > An html element's end tag can be omitted if the html element is not immediately followed by a comment. The only explicit tag that is required for every HTML document is <title>, which you supposed boilerplate misses.