Published by Patrick Mutisya · 14 days ago
<body>?The <body> element contains everything that will be displayed to the user in the web browser. Typical content includes:
Below is the minimal HTML5 skeleton showing where the body content is placed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
<body>
</body>
</html>
| HTML Element | Purpose | Example |
|---|---|---|
<h2> … </h2> | Main section heading | <h2>Welcome to My Site</h2> |
<h3> … </h3> | Sub‑heading within a section | <h3>Our Services</h3> |
<p> … </p> | Paragraph of text | <p>We provide web design and hosting.</p> |
<ul> … </ul> | Unordered (bulleted) list |
<li>Item 1</li> <li>Item 2</li> </ul> |
<ol> … </ol> | Ordered (numbered) list |
<li>First step</li> <li>Second step</li> </ol> |
<table> … </table> | Tabular data | See the table above |
<a href="URL"> … </a> | Hyperlink to another page or resource | <a href="https://www.example.com">Visit Example</a> |
<h2>.Resulting body markup:
<body>
<h2>About Me</h2>
<p>Hello! I am Alex, a student studying ICT at XYZ College.</p>
<h3>My Hobbies</h3>
<ul>
<li>Coding</li>
<li>Photography</li>
<li>Cycling</li>
</ul>
<h3>Qualifications</h3>
<table>
<thead>
<tr>
<th>Course</th>
<th>Grade</th>
</tr>
</thead>
<tbody>
<tr>
<td>ICT 0417</td>
<td>A</td>
</tr>
<tr>
<td>Mathematics</td>
<td>B</td>
</tr>
</tbody>
</table>
<p>View my full portfolio <a href="portfolio.html">here</a>.</p>
</body>
<body>.<h2> then <h3>).<p> tags.<ul> or <ol> with <li> items.<thead> for headings and <tbody> for data rows.href attribute.<body> element.<head> and <body> sections with example content.