2. The Root Element

The root element of an HTML document contains all other elements and text. Whereas the !DOCTYPE declares the document’s HTML version, the root defines all the HTML elements for that page. This element is necessary and should always be placed outside of all content.

<!DOCTYPE html>


html document root