HTML
Beginner
50 mins
Teacher/Student led
+110 XP

Your First Web Page with HTML

Students build a simple personal web page in HTML, predicting the output before running it, then finding and fixing at least one bug along the way.

Teacher Class Feed

Load previous activity

    1 - Start: What We're Building ~5 mins

    Last time we talked about giving a computer clear instructions. Today we become web designers! Every web page you visit is built from HTML — code that tells the browser what to display.

    By the end of the class you'll have built your own personal web page at your device: predict first, then build it, run it, and fix any bugs. Get logged in to the editor and find your partner.

    2 - Predict Before You Run ~10 mins

    Before anyone clicks 'Run Code', take a good look at what we're about to build.

    Predict: When this code runs, what will appear in the browser? What will you see first — a heading, plain text, or nothing at all? Commit to your answer with your partner; we'll come back to it later.

    3 - What Is HTML? ~5 mins

    HTML stands for Hyper Text Markup Language . It is the standard markup language used for creating web pages.

    HTML codes the structure of a web page by using a series of HTML elements. These elements tell the web browser how to display the content of the web page. For example using HTML we can tell the web browser if something is a heading, or if it some regular text, or if it's an image, or a table, or a link etc.


    4 - The Structure of a Web Page ~4 mins

    Each web page on the internet will have HTML code behind it that tells the web browser how to display the content.

    Although web pages can display many different things, every web page will always have at least the following:

    1. The <!DOCTYPE html> that appears as the first piece of HTML code. This defines that this document is an HTML document.
    2. The <html> element is the root element of a web page.
    3. The <head> element contains information about the web page.
    4. The <title> element contains the title for the web page (this is used to display the title in the web page's tab).
    5. The <body> element contains all the content that will be displayed on the web page such as headings, text, images, videos, links etc.

    5 - What Is an HTML Element? ~4 mins

    A HTML element has a start tag, some content, and an end tag. Here are some examples:

    Start Tag Content End Tag
    <h1> Heading 1 </h1>
    <h2> Heading 2 </h2>
    <p> Paragraph </p>
    <br>
    Note some HTML elements do not have content inside them (like the <br> 'break' element). These elements are called empty elements and do not have an end tag.
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more