what is the difference between <html> and <!dochtml> they both are used to tell the editor that it's a html coding but what is the difference ? thanks in advance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

what is the difference between <html> and <!dochtml> they both are used to tell the editor that it's a html coding but what is the difference ? thanks in advance

5th Sep 2016, 5:17 PM
Shrangi Soni
Shrangi Soni - avatar
9 Answers
+ 4
Hi Shrangi Soni , when you use <! DOCTYPE html > you are telling the editor that you are coding on HTML5 ;)
5th Sep 2016, 10:24 PM
khalil boukattassa
+ 1
okay thanks
6th Sep 2016, 9:34 PM
Shrangi Soni
Shrangi Soni - avatar
+ 1
simply <!dochtml> is to specify HTML5
10th Sep 2016, 6:41 PM
samia
0
doc html is html 5
6th Sep 2016, 4:55 AM
Raja Nauman
Raja Nauman - avatar
0
!doctype html is html5
6th Sep 2016, 9:04 PM
Patrick Branco
Patrick Branco - avatar
0
You're welcome
7th Sep 2016, 12:12 AM
khalil boukattassa
0
html is an open and end tag. while!DOCTYPE html defines html5
15th Oct 2016, 8:41 PM
Anthony
0
html tag is used to show that you are coding in html 4 and these are many differences in attributes and others while !doctypeHtml is a starter tag of html5 in which many advanced things happens
14th Aug 2017, 8:45 AM
Raja Nauman
Raja Nauman - avatar
0
! doctype is tag for HTML5
20th Jul 2018, 6:44 AM
Demetris Xxx
Demetris Xxx - avatar