+ 2
Html tags
Why do I see codes with <!DOCTYPE html> <html></html>? How do they have 2 opening html tags? In quizzes it was stated that tags like these can't work, yet their codes still execute just fine on the code playground. How?
3 ответов
+ 6
when you are using HTML5 elements there must be these :
<DOCTYPE html>, this is not opening tag, it is DOCTYPE declaration for HTML5.
and then <html></html> are main tags.
edit : those codes are totally perfect.
+ 4
happy to help you. Andre Daniel
+ 1
Ohh html5. Thank you.