Does a <!DOCTYPE html> tag is a HTML tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does a <!DOCTYPE html> tag is a HTML tag?

5th Sep 2018, 1:06 PM
Mukund Kumar
Mukund Kumar - avatar
8 Answers
+ 1
Please read question carefully and answer. <html> & <!DOCTYPE html> is same tag google it.
5th Sep 2018, 1:17 PM
Mukund Kumar
Mukund Kumar - avatar
+ 1
I want to ask that <html> & <!DOCTYPE html> is same tag or not?
5th Sep 2018, 1:32 PM
Mukund Kumar
Mukund Kumar - avatar
+ 1
Yes! it is Kindof
22nd Oct 2018, 2:44 AM
Potato Hacker
Potato Hacker - avatar
5th Sep 2018, 1:12 PM
Janningā­
Janningā­ - avatar
0
If I didn't answer your question the first round, I still have no idea what you are trying to ask then.
5th Sep 2018, 1:28 PM
Janningā­
Janningā­ - avatar
0
No. They are separate tags and are listed separately in the list provided in the link.
5th Sep 2018, 1:46 PM
Janningā­
Janningā­ - avatar
0
<html > this is an html tag but <! DOCTYPE html > is not an html tag. It is an instruction that tells the web browser which version of html you are using. <html> this is html tag that tells we start html code from here..
7th Sep 2018, 5:09 AM
Vivek Shresth
Vivek Shresth - avatar
0
w3schools seems to be conveying contradictory information. Here they say <!DOCTYPE> is not a tag https://www.w3schools.com/tags/tag_doctype.asp but then they consistently include it in their HTML tag reference (not to mention the url also lists it as a tag). No wonder beginners are confused! :)
7th Sep 2018, 8:02 AM
Janningā­
Janningā­ - avatar