What is the correct method to start with html5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the correct method to start with html5

Method to start html5 <!doctype html> <html> </html> Or <html> </html>

26th Feb 2020, 1:15 AM
Bai Jilla
Bai Jilla - avatar
3 Answers
+ 2
Check this lesson, your first option is correct without include <body> and <head> tag https://www.sololearn.com/learn/HTML/1022/
26th Feb 2020, 1:24 AM
Cmurio
Cmurio - avatar
+ 2
<!doctype HTML> means you are implementing HTML 5 code. for more information https://stackoverflow.com/questions/23230798/what-happens-if-i-dont-put-a-doctype-html-in-my-code-will-it-make-any-major always use meta tags when you write HTML code in the head tag.
26th Feb 2020, 2:33 AM
Maninder $ingh
Maninder $ingh - avatar
0
Bai Jilla if you go to the web playground you will see that it starts with: <!doctype html> <html> <head> <title>HTML structure</title> </head> <body> </body> </html>
26th Feb 2020, 2:59 AM
BroFar
BroFar - avatar