Experience: Run the code
Code is already provided. Just press the "Run" button and confirm that "Hello World" appears in the preview. This exercise gets you used to the exercise flow.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Write code and see the result immediately. Hints and answers included.
How to proceed: ① Read the guide → ② Do the exercise. Skipping guides leads to getting stuck. Read each step's guide before doing that category's exercises.
Code is already provided. Just press the "Run" button and confirm that "Hello World" appears in the preview. This exercise gets you used to the exercise flow.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Write HTML that displays "Hello World". Use the h1 tag you just learned.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Add a paragraph that says "This is my first web page." below the heading. Wrap it in a p tag.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a list of your three favorite fruits using ul and li. Replace the ___ placeholders in the template below.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a link to https://google.com with the display text "Google".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Display the image from https://placehold.co/200x100. Set alt to "Sample image".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Pick a theme and create h1, h2, and h3 headings in hierarchical order (e.g., My Page, About Me, Hobbies).
Click error to highlight line. ✕=error ⚠=warning ›=log.
Write 3 steps or a ranking using ol and li (e.g., cooking steps or a top-3 list).
Click error to highlight line. ✕=error ⚠=warning ›=log.
Wrap "important" in strong and "emphasized" in em.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a basic structure using header, main, and footer. The content inside main is up to you.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create 3 links (Home, About, Contact) inside a nav tag.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Wrap two elements in separate divs. The content is up to you (cards, blocks, etc.).
Click error to highlight line. ✕=error ⚠=warning ›=log.
Wrap only the phrase "red text" in a span.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a 2-row, 2-column table. Cell content is up to you (e.g., A, B, C, D or Name, Age).
Click error to highlight line. ✕=error ⚠=warning ›=log.
Break between "Line 1" and "Line 2" using a br tag.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Make the link open in a new tab using target="_blank".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Use console.log to output "Hello".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Assign any value to a variable named name and output it with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Define a function called greet that returns "Hello".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a fruits array with 3 elements of your choice and output it with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a user object with name and age and output it with console.log. Values are up to you.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a form with a name input and a submit button. Set the input's name attribute to "name".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Link a label saying "Email" to an input with id="email" using for and id.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create 2 sections inside an article tag. Each section's content is up to you.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Add data-id="123" and data-name="test" to the div.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a .highlight class with a yellow background and apply it to the p tag.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Make the link turn red when the mouse hovers over it.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Center the div both horizontally and vertically using Flexbox.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Turn the parent div into a Grid with 3 columns for its children.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Make a 2-column layout at 768px and above, and a 1-column layout below.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Make Flexbox children wrap onto the next line when they overflow.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Use Flexbox to push children to opposite ends (equal space between).
Click error to highlight line. ✕=error ⚠=warning ›=log.
Arrange 3 cards in a row with Grid, and add padding and a border to each card.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output "adult" with console.log if age is 18 or more, and "minor" otherwise. age is 20.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output the numbers 1 through 5 with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Use the name variable ("Taro") to output "Hello, Taro!" with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output the number of elements in arr with console.log. arr is [1,2,3,4,5].
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output the first element of fruits with console.log. fruits is ['apple', 'banana', 'grape'].
Click error to highlight line. ✕=error ⚠=warning ›=log.
Define an arrow function called double that returns its argument doubled. Passing 5 should output 10.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output the user object's name with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a new array where each element of numbers is doubled, and output it with console.log. numbers is [1,2,3].
Click error to highlight line. ✕=error ⚠=warning ›=log.
Assign "Pass" to result if score is 60 or more, and "Fail" otherwise, then output it with console.log. score is 70.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Concatenate firstName and lastName and output "Yamada Taro" with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Get the element with id "msg" and change its textContent to "Hello".
Click error to highlight line. ✕=error ⚠=warning ›=log.
When the button with id "btn" is clicked, output "Click!" with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Create a p tag with the text "New" and append it to the element with id "container".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Get the first li inside the ul with id "list" and output its textContent with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Get all li elements inside the ul with id "list" and output each textContent with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output the value of the input with id "name" using console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Remove the element with id "remove-me" from the DOM.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Listen for clicks on the element with id "list" and output the textContent of the clicked li with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Set the background color of the element with id "box" to "lightblue".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Fetch data from https://jsonplaceholder.typicode.com/posts/1 and output the title with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Fetch data; if res.ok is false output "Error" with console.log, otherwise output the title.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Wrap fetch in try-catch and output the error message with console.log when an error occurs.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Fetch from https://jsonplaceholder.typicode.com/posts and output the titles of the first 3 items with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Output "Loading..." before fetch and "Done" after success, using console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Write code that adds an li to the ul when the input has a value and the button is clicked.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Save value "Taro" under the key "name" in localStorage, then read it back and output it with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Increment a count on each button click and display it in the element with id "count".
Click error to highlight line. ✕=error ⚠=warning ›=log.
Extract only numbers 3 and above from the array [1,2,3,4,5] using filter, and output it with console.log.
Click error to highlight line. ✕=error ⚠=warning ›=log.
Start in the browser, then understand how local web development works.
Skills in this track
Exercises: 6
Practice headings, paragraphs, lists, links, and images—the skeleton of every web page.
Skills in this track
Exercises: 10
Color, spacing, typography, and selectors to style pages professionally.
Skills in this track
Exercises: 10
Variables, functions, arrays, and control flow—the core of web logic.
Skills in this track
Exercises: 15
Forms, labels, inputs, and tables—foundation for user input and data display.
Skills in this track
Exercises: 5
Flexbox and Grid for cards, nav bars, and centered layouts used in production.
Skills in this track
Exercises: 8
Select elements, handle events, and mutate the page dynamically.
Skills in this track
Exercises: 10
Use fetch and JSON to load external data into the UI.
Skills in this track
Exercises: 5
Build todo, counter, and timer apps—portfolio-ready mini products.
Skills in this track
Exercises: 5