Previous Next

HTML Page Structure

The structure of an HTML page normally includes numerous basic elements that contribute to the organization and defining the content and structure of the web page. Below is a general structure of an HTML page:

code snippets
<!DOCTYPE html>

Declares the document type and the version of HTML being used.

<html>

The root element of the HTML document.

<head>

It contains metadata about the HTML document, like the title, character set, etc.

<title> Document </title>

Declares the title of the HTML page.

<body>

Contains the HTML page content to be displayed in the browser.

<h1>

The <h1> declares a second large heading.

<p>

The <p> tag announces a paragraph.

How This Content Appears in a Web Browser

Output img
Previous Next