Skip to content
FORGENO ADS GAMESUnlock all $8

HTML · Unit 3: Tables, forms and a profile card · Lesson 5 of 5

Project: your profile card

Time to combine everything into a profile card, the kind of small block you see on team pages and social sites.

Opens this lesson in Code Academy. Lessons open one after another, and each unit opens when you pass the checkpoint quiz before it (you can take a checkpoint early to skip ahead). If this lesson is not open yet, the button shows you its unit on your map.

The idea

Time to combine everything into a profile card, the kind of small block you see on team pages and social sites.

Plan it before you type: an <article> for the card, an image with alt text, a heading with the name, a paragraph about the person, a list of interests and a link.

The checks look for each part in turn and say exactly what is missing. Make it about yourself or an imaginary character.

Worked example

HTML

<article class="profile">
  <!-- 1. an image with alt text -->
  <!-- 2. the name in a heading -->
  <!-- 3. a short bio -->
  <!-- 4. a list of interests -->
  <!-- 5. a link to more -->
</article>

An <article> is a self-contained piece of content: it would still make sense on its own.

Key terms

Semantic HTML
Elements that say what content is for, like <header>, <nav>, <main>, <article> and <footer>.
Image
<img src="..." alt="...">: an empty element that shows a picture.
List
<ul> for bullets, <ol> for numbered steps; each item is an <li>.
Link
An <a> element with an href. Its text should say where it goes.

Practise it in Code Academy

This is a project lesson. It has 4 exercises (multiple choice, write code from a prompt and fix the broken code) and takes about 12 minutes. Every answer is checked as you go, and feedback names the exact mistake. Hints and the solution are there if you get stuck.

Every lesson is free: no ads, no lives and no paywall.