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 placed outside of all content.
HTML
<!DOCTYPE html>
<html>
</html>
html
- Previous
- Next