Practice lab

Coding exercises

Build fluency with focused HTML, CSS, and JavaScript challenges. Run safely in your browser and earn points when your output passes.

8 exercises found

HTML 10 pts
Write code · Beginner

Create a welcome heading

Write HTML that displays a level-one heading containing exactly: Welcome to CodePlus.

HTML HTML Introduction
Open exercise
HTML 10 pts
Fill blank · Beginner

Complete the paragraph tag

Replace the blank with the correct closing HTML tag.

HTML
Open exercise
HTML 15 pts
Fix bug · Beginner

Repair the button markup

Fix the malformed closing tag so the button displays correctly.

HTML
Open exercise
CSS 15 pts
Fill blank · Beginner

Style the status message

Change the CSS so the preview reports a green message. Keep the .status selector.

CSS
Open exercise
CSS 15 pts
Fix bug · Beginner

Fix the card spacing

The padding declaration is misspelled. Correct it so the computed padding is 24px.

CSS
Open exercise
JS 10 pts
Write code · Beginner

Log a greeting

Write JavaScript that logs exactly Hello, learner! to the console.

JavaScript
Open exercise
JS 10 pts
Predict output · Beginner

Predict the total

Read the JavaScript and replace the editor contents with only the value it prints.

JavaScript
Open exercise
JS 20 pts
Arrange code · Intermediate

Arrange the greeting

Reorder the lines so the variable is declared before it is logged.

JavaScript
Open exercise