Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

HTML Document structure | Use of Doctype


This is the best practice if you are going to understand the structure of the HTML document.

The HTML Document structure:-


<!DOCTYPE html>
<html>
<head>
<title>Web title is here</title>
</head>
<body>
Main content is here -(Container )
</body>
</html>

Detailed


1. <!DOCTYPE> -doctype declaration tag is used by the web browser to understand the version of the HTML used in the document.

2. <head>- We place the JS and CSS code inside the head .

3. <title>- Title tag is used to give the web page title.
Example- Late's take an example google.com . 1. Domain- google.com 2. The title will be Google.


4.<body>- Contains the whole contents that display on a web browser.


Please Share

Recommended Posts:-