Quantcast
Channel: What is the purpose of the element? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Bertrand for What is the purpose of the element?

Yes. The <html> tag is the root and can even be omitted in somes cases (from MDN):The start tag may be omitted if the first thing inside the <html> element is not a comment. The end tag may...

View Article



Answer by greendemiurge for What is the purpose of the element?

It is a family trait of HTML, XML, and SGML that they all need to be nested inside a root element. It's just part of the data standard and lets the interpreter know where to start and stop, and...

View Article

What is the purpose of the element?

Doesn't the file type already let the browser know that the document is an html document. MDN mentions that it is the root element, so is using it just a formality?

View Article
Browsing all 3 articles
Browse latest View live




Latest Images