What are the most important tags for an HTML Document?

JavascriptWeb DevelopmentFront End Scripts

HTML has various tags to format content, heading, align content, add sections, etc to a website. The most important tags for an HTML document is doctype, <html>, <head> and <body>.

doctype
doctype is the doctype declaration type. It is used for specifying which version of HTML the document is using.

<!DOCTYPE html>

<html>

The HTML <html> tag is the container for all other HTML elements except for the

<!DOCTYPE html> tag, which is located before the opening <html> tag. All other HTML elements are nested between the <html> and </html> tags.
<head>
The HTML <head> tag is used for indicating the head section of the HTML document. Tags included inside head tags are not displayed on browser window. The <title>…</title> tag goes inside the <html>…</html>

<head>
   <title>HTML Document</title>
</head>

<body> 

The HTML <body> tag shows the main content section of the HTML document.

raja
Published on 01-Feb-2018 15:22:06
Advertisements