Resources | Subject Notes | Information Communication Technology ICT
When creating a web page, it's important to understand the fundamental structure. A typical web page is divided into two main sections: the head and the body. These sections serve distinct purposes in how the page is structured and how content is presented to the user.
The <head>
section contains meta-information about the HTML document that is not displayed on the page itself. This information is crucial for browsers, search engines, and other websites to understand the page's content and how to handle it.
The <body>
section contains all the content that will be visible to the user in the browser window. This is where the text, images, videos, and other elements of the web page are placed.
The content within the <body>
section is typically organized using headings, paragraphs, lists, tables, and other HTML elements. A common structure includes:
<h1>
to <h6>
are used to define headings of different levels.<p>
elements are used to create paragraphs of text.<ul>
(unordered list) and <ol>
(ordered list) are used to create lists of items.<table>
, <thead>
, <tbody>
, <tr>
, <th>
, and <td>
elements are used to create tables.Here's a simple example of a web page structure demonstrating the head and body sections:
Section | Description |
---|---|
<head> |
Contains meta-information about the HTML document. |
<body> |
Contains all the visible content of the web page. |
The <head>
section provides essential information about the page's identity and behavior, while the <body>
section holds the actual content that users see and interact with.