0

Without html and head tag it will work or not?

I mean <html> <head> </head> <html>

3rd Aug 2019, 8:08 PM
Macrin
3 Respostas
0
These tags may be omitted in HTML5. Look at the official W3C reference: https://html.spec.whatwg.org/multipage/syntax.html#optional-tags
3rd Aug 2019, 8:15 PM
Michael
Michael - avatar
0
It is not a good idea to omit the html, head and body tags. Even if HTML 5 allows it, it is good practice to keep them.
4th Aug 2019, 1:40 AM
Vasilis Karapas
Vasilis Karapas - avatar
0
That‘s a matter of opinion. For example Google recommends to omit those optional tags in its style guide (chapter 3.1.4) https://google.github.io/styleguide/htmlcssguide.html#HTML_Style_Rules
4th Aug 2019, 7:50 AM
Michael
Michael - avatar