SimpleTuts.com

Creating an About Us Section

Learn How to Add an About Us Section Using HTML

In this chapter, students will extend the webpage created in Chapter 1 by adding an About Us section. This section includes a heading, text, an image, and a simple two-column layout using Flexbox.

Chapter Goal

What is an About Us Section?

An About Us section tells visitors about the company, service, or person behind the website. It usually contains:

Step 1: Add the About Us Heading

Below the hero section, add a centered heading.


<div>
    <h1 style="text-align:center;">About Us</h1>
</div>
Run Code

text-align:center moves the heading to the center.

Step 2: Create a Two-Column Layout

Now create a container with two columns using Flexbox.


<div style="display:flex; padding:0px 50px; gap:30px;">

</div>
Run Code

Step 3: Add Text Content (Left Side)


<div style="width:50%;">
    <p>
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by the
        Free Software Foundation.
    </p>

    <p>
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by the
        Free Software Foundation.
    </p>
</div>
Run Code

width:50% means this column takes half of the available space.

Step 4: Add Image (Right Side)


<div style="width:50%;">
    <img src="about-pic.webp" style="width:100%;">
</div>
Run Code

Final Output Code

This is the complete combined code for Chapter 1 and Chapter 2.


<html>
<head></head>

<body style="margin:0px;">

    <div style="background-color:dodgerblue; color:white; padding:50px;">
        <h1>Welcome to ABC Interiors</h1>
        <p>Let's create your perfect home</p>
    </div>

    <div>
        <h1 style="text-align:center;">About Us</h1>
    </div>

    <div style="display:flex; padding:0px 50px; gap:30px;">

        <div style="width:50%;">
            <p>This program is free software; you can redistribute it and/or 
            modify it under the terms of the GNU General Public License.</p>
            <p>This program is free software; you can redistribute it and/or 
            modify it under the terms of the GNU General Public License.</p>
        </div>

        <div style="width:50%;">
            <img src="about-pic.webp" style="width:100%;">
        </div>

    </div>

</body>
</html>
Run Code

Practice Task

  1. Change the About Us text
  2. Replace the image
  3. Increase or decrease the gap between columns

Chapter Summary

Watch video