Web development

All About Me

Write your first web page in HTML: headings, a paragraph, lists, a link and an emoji, all about you.

Day 1 45 to 60 minutes 7 steps Key Stage 3
Start step 1
all-about-me/index.html

Every website you have ever visited is made of HTML, the language that tells a browser what is on a page. Today you will write a page about the most interesting person you know: you.

You will learn

  • Write HTML tags, which open and close
  • Make headings, paragraphs and lists
  • Make words bold and italic
  • Link to another website

You will need

  • A computer with a web browser
  • The Web Studio, or Notepad

Words to know

HTML
HyperText Markup Language: the code for what is on a web page.
tag
A word in angle brackets, such as <p>. Most have a closing tag, such as </p>.
element
An opening tag, its content and its closing tag, together.
attribute
Extra information inside an opening tag, such as href in a link.

Step by step

  1. Step 1: Open your project

    Open the Web Studio in a new tab and choose Day 1: All About Me from the Project list. It starts with this page.

    HTML is made of tags in angle brackets. Most come in pairs: <h1> starts a big heading and </h1> ends it. Everything you see goes between <body> and </body>. The part between <head> and </head> is information about the page, such as its <title>, which shows on the browser's tab.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hello!</h1>  </body></html>
    all-about-me/index.html
    The page so far: one heading.
  2. Step 2: Say who you are

    Change the heading to say your name. Then add a paragraph, <p>, about you.

    New: lines 8 and 9.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam!</h1>    <p>I am in Year 7 and I love coding, football and loud music.</p>  </body></html>
    all-about-me/index.html
    Your name in a heading, and a paragraph about you.
  3. Step 3: A list of favourites

    <h2> is a smaller heading. <ul> makes an unordered list, one with bullet points, and each item goes in its own <li>, a list item.

    New: lines 10 to 16.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam!</h1>    <p>I am in Year 7 and I love coding, football and loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>  </body></html>
    all-about-me/index.html
    A heading, then three favourite things with bullet points.
  4. Step 4: Bold and italic

    Wrap a word in <strong> to make it bold, or in <em> (for emphasis) to make it italic.

    New: line 9.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam!</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>  </body></html>
    all-about-me/index.html
    Coding is now bold, and very is in italics.
  5. Step 5: A numbered list

    <ol> is an ordered list: the browser numbers the items for you. Add three facts about yourself.

    New: lines 17 to 23.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam!</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>     <h2>Three facts about me</h2>    <ol>      <li>I have two cats.</li>      <li>I can juggle three balls.</li>      <li>I once ate ten pancakes.</li>    </ol>  </body></html>
    all-about-me/index.html
    Three facts, numbered 1, 2 and 3.
  6. Step 6: Link to a website

    <a> makes a link. Its href says where the link goes, and the words between the tags are what you click. href is an attribute: extra information written inside the opening tag.

    New: lines 24 to 26.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam!</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>     <h2>Three facts about me</h2>    <ol>      <li>I have two cats.</li>      <li>I can juggle three balls.</li>      <li>I once ate ten pancakes.</li>    </ol>     <h2>A website I like</h2>    <p>I learn new things at <a href="https://www.bbc.co.uk/bitesize">BBC Bitesize</a>.</p>  </body></html>
    all-about-me/index.html
    BBC Bitesize is a link.
  7. Step 7: Finishing touches

    Add a waving hand after your name: &#128075; is the code for the emoji. Then add <hr>, a line across the page, before the last section. <hr> is one of the few tags with no closing tag. Then click Download to keep your page.

    New: lines 8, 25 and 26.

    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam! &#128075;</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>     <h2>Three facts about me</h2>    <ol>      <li>I have two cats.</li>      <li>I can juggle three balls.</li>      <li>I once ate ten pancakes.</li>    </ol>     <hr>     <h2>A website I like</h2>    <p>I learn new things at <a href="https://www.bbc.co.uk/bitesize">BBC Bitesize</a>.</p>  </body></html>
    all-about-me/index.html
    Your finished page, all about you.

Test it

Tick each one when it works. If one does not, look back at the step it comes from.

Stretch challenges

Finished early? Try these. Each one has a hint if you get stuck.

  1. More emoji

    Put an emoji next to each of your favourite things.

    Show a hint

    Some codes: &#127829; pizza, &#129446; otter, &#9917; football, &#127918; games. Or copy and paste an emoji straight into the code.

  2. A table

    Add a timetable of your week as a table.

    Show a hint

    A table is <table>, each row is a <tr>, and each cell is a <td>. Use <th> for the cells in the heading row.

    Show one answer
    index.htmlHTML
    <!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam! &#128075;</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>     <h2>Three facts about me</h2>    <ol>      <li>I have two cats.</li>      <li>I can juggle three balls.</li>      <li>I once ate ten pancakes.</li>    </ol>     <hr>     <h2>A website I like</h2>    <p>I learn new things at <a href="https://www.bbc.co.uk/bitesize">BBC Bitesize</a>.</p>    <h2>My week</h2>    <table>      <tr><th>Day</th><th>After school</th></tr>      <tr><td>Monday</td><td>Coding Club</td></tr>      <tr><td>Wednesday</td><td>Football</td></tr>      <tr><td>Friday</td><td>Film night</td></tr>    </table>  </body></html>
  3. A picture

    Add a picture with the <img> tag.

    Show a hint

    <img src="picture.png" alt="What the picture shows"> shows a picture. src is where the picture is, and alt describes it for anyone who cannot see it. With Notepad, put the picture file in the same folder as the page.

The finished code

Show the whole page
index.htmlHTML
<!DOCTYPE html><html>  <head>    <meta charset="utf-8">    <title>All about me</title>  </head>  <body>    <h1>Hi, I am Sam! &#128075;</h1>    <p>I am in Year 7 and I love <strong>coding</strong>, football and <em>very</em> loud music.</p>     <h2>My favourite things</h2>    <ul>      <li>Food: pizza</li>      <li>Animal: otter</li>      <li>Colour: green</li>    </ul>     <h2>Three facts about me</h2>    <ol>      <li>I have two cats.</li>      <li>I can juggle three balls.</li>      <li>I once ate ten pancakes.</li>    </ol>     <hr>     <h2>A website I like</h2>    <p>I learn new things at <a href="https://www.bbc.co.uk/bitesize">BBC Bitesize</a>.</p>  </body></html>
Notes for the teacher

Timing

  1. 10 minutes: open the Studio and look at the first page together. Point out the opening and closing tags.
  2. 30 minutes: steps 2 to 7.
  3. 10 minutes: the tests, then students swap computers and read each other's pages.

Mistakes to look out for

  1. A missing closing tag, such as </h1>: everything after it becomes part of the heading.
  2. Tags closed in the wrong order, such as <strong><em>hi</strong></em>. Inner tags close first.
  3. A missing " in href="...": the link swallows the rest of the line.
  4. Personal details: remind students not to put their full name, school or address on a page they might share.

Going further

Right click any web page and choose View page source to see its HTML. Students are often amazed that a big site is made of the same tags they have just used.