New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Why is a !doctype HTML tag used in a HTML 5 code? Can't it be made without it?
In my school my computer teacher told that I would know about it later when I finish my HTML course in school but i want to know about it now please tell me?
4 Answers
+ 1
It specifies the html version you are using.
It’s not html 5 without doctype declaration.
+ 1
thanks
0
<!DOCTYPE html> is used to create with HTML5 but if you remove it you will create a page with another html version