Html tags | SoloLearn: Learn to code for FREE!


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?

6/5/2018 11:40:41 AM

Andre Daniel

3 Answers

New Answer


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.


happy to help you. Andre Daniel


Ohh html5. Thank you.