completefrontend

10 frontend projects for beginners

Small, finished projects teach more than big, abandoned ones. Here are ten frontend projects for beginners, from a profile page to a React game, with what each teaches and practice that helps.

Title card for frontend projects for beginners, with four steps rising from HTML and CSS to JavaScript, loading data, and React

A new guitar student doesn't start with a long solo. They learn three chords and play a simple song. Then a slightly harder song, with one new chord. Each song teaches one new thing, and every finished song makes the next one easier. Coding projects work the same way.

The best frontend projects for beginners are small, finished apps that each teach one new skill: a profile page for HTML and CSS, a to-do list for JavaScript, a weather app for loading data, and a game in React. Below are ten projects in order, from easy to harder. Each one says what it teaches and links to lessons and practice problems that help.

What makes a good beginner project?

A good first project is small enough to finish in a few days. It teaches one new idea, not five. And it ends with something you can open in a browser and show to someone.

Finishing matters more than size. Ten small projects that work teach more than one big project you abandon halfway.

Ten projects on four levels, from easy to harder: HTML and CSS pages, JavaScript apps, apps that load data, and React apps
Ten beginner projects, each one a step up from the last.

Which projects use only HTML and CSS?

Start here, before any JavaScript. HTML is the language that gives a page its structure, and CSS is the language that styles it.

1. A page about yourself

Build one page with your name, a photo, a short bio, and links to your profiles. It teaches headings, paragraphs, images, and links. Use semantic HTML, which means elements that say what the content is, like <header>, <main>, and <footer>.

2. A landing page that fits any screen

A landing page sells one thing, like an app or an event. Give it a big heading, three feature boxes, and a sign-up button. Then make it fit both a phone and a wide screen:

.features {
  display: flex;
  gap: 16px;
}

@media (max-width: 600px) {
  .features {
    flex-direction: column;
  }
}

The first rule puts the feature boxes side by side with a gap between them. The @media rule stacks them in a column on screens 600 pixels wide or narrower. This is called responsive web design.

Which projects teach JavaScript?

JavaScript makes a page react to what people do. Learn the basics in the JavaScript course first, at least variables, functions, and events.

3. A tip calculator

Type in a bill and a tip percentage, and the page shows the tip and the total. It teaches reading what people type, doing math, and updating the page. A good warm-up is the character counter problem.

4. A to-do list that remembers

Add tasks, tick them off, and delete them. Then make the list survive a page refresh by saving it in the browser:

const todos = ["Buy milk", "Call Sam"];

localStorage.setItem("todos", JSON.stringify(todos));

const saved = JSON.parse(localStorage.getItem("todos"));

localStorage is storage inside the browser that keeps data after the page closes. It only stores text, so JSON.stringify turns the list into text, and JSON.parse turns it back into a list. The to-do list problem and the web storage lesson help here.

5. A quiz game

Show one question at a time with four answers, keep score, and show the result at the end. It teaches arrays of objects, which are lists of items that each hold several values, like a question and its answers. It also teaches keeping track of where the player is.

6. An FAQ page with an accordion

An accordion is a list of questions where clicking one opens its answer. It teaches events and showing and hiding content. Make it work with the keyboard too, so people who don't use a mouse can open answers. Try the accordion problem.

Which projects load real data?

Real apps get their data from servers. You ask for it with an API, which is a web address that sends back data for programs to use.

7. A weather app

Type a city and show its current weather. Pick a public weather API and read its docs to see what it returns. This project teaches fetch and async and await, the tools for code that waits for an answer. Show a "Loading…" message while you wait, and a clear message if the city isn't found.

8. A search box with suggestions

As you type, a list of matching suggestions appears below the box. The hard part is not sending a request on every key press. Debounce fixes that: it waits until typing pauses before sending. The debounce problem and the autocomplete problem walk through both halves.

Which projects should you build in React?

React is a library for building pages out of small, reusable pieces called components. Start it after JavaScript feels comfortable. The React course begins with your first React app, which is a tip calculator, so you can compare it with project 3.

9. A shopping cart

List some products, add them to a cart, change quantities, and show the total. It teaches state, which is data a component remembers, and sharing it between components. The shopping cart quantities problem is a good next step.

10. A game like tic-tac-toe

Two players take turns, and the game spots a winner or a draw. It teaches you to keep one source of truth in state and to work out everything else from it. Try the tic-tac-toe problem, then the memory game.

How do you finish a project instead of giving up?

  1. Write down the smallest version in one sentence, like "I can add a task and see it in the list."
  2. Build only that, even if it looks plain.
  3. Add one feature at a time, and check it works before the next one.
  4. Put the code on GitHub, a website that stores code online, and publish the site with GitHub Pages, which hosts HTML, CSS, and JavaScript files straight from a project on GitHub.
  5. Write a short note saying what the project does and what you learned.

What mistakes should beginners avoid?

  • Copying a tutorial line by line. You learn more by adding one feature the tutorial didn't have.
  • Starting too big. A whole social network is a hundred small projects at once.
  • Skipping the phone. Open every project on a phone before you call it done.
  • Never publishing. A project nobody can open is hard to show and easy to forget.

What should you do after these projects?

Pick your three or four best projects and turn them into a portfolio. How to build a frontend developer portfolio shows how to present each one. For more practice with tests that check your work, try the JavaScript coding problems and the React coding problems. To see where projects fit in the bigger picture, follow the frontend developer roadmap.

Written by Shrikanth PS

Senior Software Engineer at Microsoft, working on Copilot Enterprise, with more than nine years in frontend engineering.