<html>,<head>,<body> Tags

These three tags form the basic structure of every HTML web page. They help organize the content and tell the browser how to display the page.

<html> Tag

The <html> tag is the root element of an HTML document. All other elements are placed inside this tag. It tells the browser that everything inside it is part of a web page.

<head> Tag

The <head> tag contains information about the webpage that is not directly visible to users. It includes the page title, meta data, and links to stylesheets or scripts.

For example, the title that appears on the browser tab is written inside the <head> section.

<body> Tag

The <body> tag contains all the visible content of the webpage. This includes text, images, links, videos, and other elements that users can see and interact with.

Everything that appears on the screen is written inside the <body> tag.

Example Structure

<!DOCTYPE html> <html> <head> <title>My Web Page</title> </head> <body> <h1>Welcome</h1> <p>This is my website</p> </body> </html>

Summary

The <html> tag wraps the entire page, the <head> tag stores background information, and the <body> tag displays the actual content. Together, they create the foundation of every HTML document.

Home » HTML Fundamentals (Beginner) > Basic HTML Structure > , , Tags