HTML Document Structure
HTML DOCUMENT STRUCTURE
How does an HTML document structure look?
HTML document structure contains some set of tags. Tags are some text enclosed within <…> angle braces. A tag is like a container for either content or other HTML tags. The below text shows how the HTML document structure looks:
Do not be afraid. I will explain what is being represented above to you.
NOTE: These are the five must-use tags for HTML
<!DOCTYPE html>, <html>, <head>, <title>, <body>
The <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. The current version is 5 i.e. HTML 5.
The <html> tag is the root of an HTML page.
The <head> tag contains page metadata.
The <title> tag contains the title of a page and is shown in the browser title bar.
The </head> tag is closing of <head> tag.
<body> tag is the main tag of HTML. It contains the main body of the page and is shown in the white part of the browser.
The </body> tag is closing of <body> tag.
The </html> tag is closing of <html> tag.
Every HTML page needs at least these 8 lines to define a layout of a page. We will learn more about HTML tags in the upcoming tutorial.