---
title: Do a lesson in the code panel
description: Go through a lesson's slides, write the code each challenge asks for, pass its tests and move on.
order: 5
verified: 2026-11-14
---

Lessons open in the code panel, which has three parts:
- **Instructions**, on the left: the lesson's slides.
- **Code Editor**, in the middle: your code.
- **Browser Preview**, on the right: what your code makes.

![The code panel, with a challenge on the left, the code in the middle and the page it makes on the right](/docs/learning/do-a-lesson-in-the-code-panel-1-code-panel.png)

## Go through the slides

Select **NEXT** to go to the next slide, and **BACK** to go back. The dots at the top of **Instructions** show where you are in the lesson.

## Do a challenge

A yellow **CHALLENGE** slide tells you what to code, with an example.

![A challenge that asks for opening and closing head tags, next to the empty editor](/docs/learning/do-a-lesson-in-the-code-panel-2-challenge.png)

1. Click in the editor and type the code the challenge asks for. The preview shows the result. If the preview has a **Run** button, select it to see your changes.
2. CodeTribe checks your code as you type. To see its checks, select the flask icon at the right edge of the editor. **Code Tests** lists them, with a green tick on each one you've passed.

![Code Tests, with both tests ticked](/docs/learning/do-a-lesson-in-the-code-panel-3-code-tests.png)

3. When you've passed every test, the button under the slide says **YOU DID IT**. Select it to go on.

![The YOU DID IT button under a challenge](/docs/learning/do-a-lesson-in-the-code-panel-4-you-did-it.png)

Until you've passed the tests, the button says **LET'S GET CODING** and doesn't move on. Some challenges have a **SKIP** button on it, for when you're stuck.

## Finish the lesson

On the last slide, select **NEXT**. CodeTribe congratulates you and asks **How was this lesson?** Tap the stars, then pick what you liked and what you didn't, and add a comment if you want to. Select **Next lesson** to start the next one, or **Stay here**.

If CodeTribe Support replies to your feedback, you get an email and a note in your bell. Select **OK** to clear the note.
