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
Techno Smarter Developer
Web & App Developer
Techno Smarter Developer
Need help with a website or app? We build scalable web & mobile solutions and help businesses turn ideas into working products. Get quick expert guidance.
Free consultation • Fast reply

Recommended Posts:-


Live Chat

Hello! How can we assist you today?