Where do the html tags go? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where do the html tags go?

So like the HTML tags always go in the beginning and end of a document right?

26th Jan 2018, 2:55 PM
Mauro Sousa
Mauro Sousa - avatar
3 Answers
+ 1
If you mean the <html> and </html> tags, then yes. The <html> tag comes directly after the <!doctype html> line and the </html> tag comes at the end of the page, after all other tags.
26th Jan 2018, 2:58 PM
SplittyDev
SplittyDev - avatar
+ 1
In HTML5 you don't actually need the HTML tags though. If you just don't use them, the browser will automatically insert them for you. HTML5 has way better tolerance for missing tags than the traditional HTML4
26th Jan 2018, 2:59 PM
SplittyDev
SplittyDev - avatar
0
Thanks for the reasoning
26th Jan 2018, 2:59 PM
Mauro Sousa
Mauro Sousa - avatar