This is the best practice if you are going to understand the structure of the HTML document.
<!DOCTYPE html> <html> <head> <title>Web title is here</title> </head> <body> Main content is here -(Container ) </body> </html>
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.