A complete, topic-wise guide to HTML, CSS, JavaScript and React: learn each concept from the basics, practice it with code, and revise it for interviews, all in one repo.
This repo is built for two purposes:
- Learn: understand every concept from the ground up, with clear explanations and examples.
- Revise: come back before interviews and quickly refresh everything, without opening any other resource.
Every topic has four parts:
- Notes: a detailed explanation: what it is, why it matters, syntax, examples, common mistakes.
- Code: small, runnable examples you can open and experiment with.
- Exercises: practice tasks to apply what you just learned.
- Interview questions: frequently asked questions with concise answers.
Each topic follows the same loop:
| Step | What to do | File |
|---|---|---|
| 1. Learn | Read the notes and understand the concept | notes.md |
| 2. See it | Run the example and change it | index.html / .js / .jsx |
| 3. Practice | Solve the exercises without looking at the notes | exercises.md |
| 4. Revise | Answer the interview questions out loud | interview-questions.md |
Study order: HTML → CSS → JavaScript → React. Each section builds on the one before it.
web-dev-learn-and-revise/
├── README.md
├── 01-HTML/
├── 02-CSS/
├── 03-JavaScript/
├── 04-React/
├── 05-Mini-Projects/
└── 06-Interview-Questions/
Inside each section, every topic has its own folder:
01-HTML/
└── 01-semantic-html/
├── notes.md # detailed explanation
├── index.html # runnable example
├── exercises.md # practice tasks
└── interview-questions.md # Q&A for this topic
| # | Section | Focus | Status |
|---|---|---|---|
| 1 | HTML | Structure, semantics, forms, accessibility | 🔲 Not started |
| 2 | CSS | Layouts, responsive design, animations | 🔲 Not started |
| 3 | JavaScript | Core language, async, DOM, ES6+ | 🔲 Not started |
| 4 | React | Components, hooks, state, performance | 🔲 Not started |
| 5 | Mini Projects | Apply each section by building something | 🔲 Not started |
| 6 | Interview Questions | Mixed question bank and machine-coding tasks | 🔲 Not started |
- Document structure and boilerplate
- Semantic HTML
- Forms and input types
- Tables, lists and media
- Accessibility (ARIA, alt text)
- SEO basics and meta tags
-
defervsasync - Web storage (localStorage, sessionStorage)
- Selectors and specificity
- Box model
- Display and positioning
- Flexbox
- Grid
- Responsive design and media queries
- Units (px, rem, em, vh, vw)
- Pseudo-classes and pseudo-elements
- Transitions and animations
- CSS variables
- Stacking context and z-index
- Variables, data types and scope
- Hoisting
- Closures
-
this,call,apply,bind - Prototypes and inheritance
- ES6+ features
- Array and object methods
- Event loop, callbacks and promises
- Async/await
- DOM manipulation and events (bubbling, delegation)
- Debounce and throttle
- Fetch API and error handling
- Modules
- JSX and components
- Props and state
- Hooks:
useState,useEffect,useRef - Hooks:
useMemo,useCallback,useContext,useReducer - Custom hooks
- Lists, keys and conditional rendering
- Controlled vs uncontrolled components
- Virtual DOM and reconciliation
- React Router
- Performance optimization
- State management overview
- Clone the repository:
git clone https://github.com/<your-username>/web-dev-learn-and-revise.git cd web-dev-learn-and-revise
- Learning for the first time? Go in order, and follow the 4-step loop for every topic.
- Revising before an interview? Skim
notes.md, then go straight tointerview-questions.md. Revisitexercises.mdfor any topic that feels weak. - Open HTML, CSS and JS examples directly in the browser. For React topics, run
npm installandnpm run devinside the topic folder.
Every notes.md follows the same order, so both learning and revision stay fast:
- Definition: what it is, in one or two lines, in simple words
- Why it matters: where and why it is used
- Syntax and examples: built up from simple to advanced
- Common mistakes and gotchas
- Quick summary: key points for fast revision
- Interview angle: how it is usually asked
- Beginners who want to learn web development step by step
- Students and freshers preparing for frontend or fullstack interviews
- Anyone who wants a quick, structured revision of web fundamentals
Palak Sharma | 2026
- GitHub: @palaksharma032
- LinkedIn: Palak Sharma
If this repo helps you, consider giving it a star and sharing it with someone who is learning or preparing for interviews.