0% found this document useful (0 votes)
63 views4 pages

Frontend Interview Cheatsheet

The document is a comprehensive frontend interview cheatsheet covering essential topics in HTML, CSS, JavaScript, and ReactJS. It includes basic structures, syntax, key functions, and best practices for each technology. This resource serves as a quick reference for candidates preparing for frontend development interviews.

Uploaded by

Ruchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views4 pages

Frontend Interview Cheatsheet

The document is a comprehensive frontend interview cheatsheet covering essential topics in HTML, CSS, JavaScript, and ReactJS. It includes basic structures, syntax, key functions, and best practices for each technology. This resource serves as a quick reference for candidates preparing for frontend development interviews.

Uploaded by

Ruchi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Frontend Interview Cheatsheet

HTML Cheatsheet

1. Basic Structure: <!DOCTYPE html>, <html>, <head>, <body>


2. Headings: <h1> to <h6>
3. Text: <p>, <br>, <hr>, <strong>, <em>, <mark>
4. Links & Images: <a href="">, <img src="" alt="">
5. Lists: <ul>, <ol>, <li>
6. Forms: <form>, <input>, <textarea>, <button>, <select>, <label>
7. Semantic Tags: <header>, <footer>, <section>, <article>, <nav>, <aside>, <main>
8. Media: <audio>, <video>, <source>
9. Tables: <table>, <tr>, <td>, <th>, <thead>, <tbody>, <tfoot>
10. Meta Tags: charset, viewport, description
11. Attributes: href, src, alt, id, class, style, target
12. Entities: &lt;, &gt;, &amp;, &quot;, &nbsp;
Frontend Interview Cheatsheet

CSS Cheatsheet

1. Syntax: selector { property: value; }


2. Selectors: *, element, #id, .class, [attribute], pseudo-classes (:hover), pseudo-elements (::before)
3. Box Model: content, padding, border, margin
4. Layout: display (block, inline, flex, grid), position (static, relative, absolute, fixed, sticky)
5. Flexbox: display:flex, justify-content, align-items
6. Grid: display:grid, grid-template-columns, grid-gap
7. Colors: color, background-color, rgba(), hex, hsl
8. Fonts: font-family, font-size, font-weight
9. Spacing: margin, padding, line-height
10. Responsive: @media queries
11. Transitions & Animations: transition, animation
Frontend Interview Cheatsheet

JavaScript Cheatsheet

1. Variables: var, let, const


2. Data Types: Number, String, Boolean, Object, Array, Null, Undefined
3. Operators: +, -, *, /, %, ==, ===, !=, !==, <, >
4. Functions: function funcName() {}, arrow functions: () => {}
5. DOM: document.getElementById(), querySelector(), addEventListener()
6. Events: click, submit, keypress
7. Loops: for, while, do-while, forEach
8. Conditionals: if, else, switch
9. Arrays & Objects: push, pop, map, filter, reduce, Object.keys()
10. ES6+: destructuring, template literals, promises, async/await
Frontend Interview Cheatsheet

ReactJS Cheatsheet

1. Components: Functional & Class Components


2. JSX: JavaScript + HTML-like syntax
3. Props: Data passed from parent to child
4. State: useState(), class state
5. Hooks: useState(), useEffect(), useContext()
6. Event Handling: onClick, onChange
7. Conditional Rendering: ternary, && operator
8. Lists & Keys: map(), unique key prop
9. Forms: controlled components with state
10. Routing: react-router-dom (BrowserRouter, Routes, Route, Link)
11. Lifecycle: componentDidMount(), useEffect()
12. Best Practices: component reusability, separation of concerns

You might also like