Basic Structure of HTML

A simple HTML document looks like this:

<!DOCTYPE html>
<html>
<head>
    <title>My First Webpage</title>
</head>
<body>
    <h1>Welcome to My Website</h1>
    <p>This is a simple HTML page.</p>
</body>
</html>

Explanation of HTML Structure

TagDescription
<!DOCTYPE html>Declares the document as HTML5.
<html >The root element of an HTML page.
<head>Contains metadata, links to stylesheets, and scripts.
<title>Sets the title of the page (shown in the browser tab).
<body>Contains all visible content (headings, paragraphs, images, links, etc.).
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz