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>
<title>Web title is here</title>
Main content is here -(Container )


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 . 1. Domain- 2. The title will be Google.

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

Recommended Posts:-