What should you focus on for your HTML and CSS interview?
Which questions should you start with?
Start with the most asked questions in these interviews. The journey from entering a URL to seeing a page led the list, appearing in 12 of 157 interviews. The DOM and how JavaScript interacts with it came up in 9 of 157 interviews.
Check whether you can explain both processes, not just name the parts:
- Can you walk through what happens after you enter a URL?
- Can you explain what the DOM is and how JavaScript interacts with it?
- Can you explain how the virtual DOM differs from the real DOM?
Include the HTTP request and server response. Reviewed answers to the URL question missed an explicit description of the browser sending the request and receiving the response. Make both steps clear in your answer.
How should you explain your layout choices?
Flexbox versus Grid appeared in 8 of 157 interviews. Reviewed answers missed how specific layout needs determine which tool to use. Go beyond describing each tool: connect your choice to the layout you need.
- Does the layout need alignment across both rows and columns?
- How should the content reflow at breakpoints?
- How do those needs affect your choice of Flexbox or Grid?
- Can you describe a desktop-to-mobile layout without duplicating markup?
Which HTML and CSS details should you check?
Semantic HTML and CSS visibility were also among the most asked questions. The wider topic list includes accessibility, performance, and browser testing. Use these questions to check what you can explain:
- Can you choose suitable semantic elements instead of generic
divelements? - How do
display: none,visibility: hidden, anddisplay: blockdiffer? - What do LCP, INP, and CLS measure?
- How would you handle keyboard navigation and focus?
- How would you debug a layout across browsers?
Should you write code too?
Code-writing tasks appeared in 6 of 157 interviews. Try tasks drawn from these interviews: write CSS to change paragraph font size, or build a theming system for multiple brands with light and dark modes.
For JavaScript, check whether you can write code to scroll down a page. Also try finding containers and child elements whose content extends beyond the container.
Who gets asked HTML and CSS
The 20 most asked HTML and CSS questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
What happens from entering a URL until the browser displays the page?
Asked in 12 of 157 interviews · last asked Oct 12 · Concept · Senior
Show answer
The browser resolves the hostname through DNS, often using cached results. It opens or reuses a connection; HTTPS uses TLS, over TCP or within QUIC. It sends an HTTP request and receives the server’s response. It parses HTML and CSS, loads resources, runs JavaScript, calculates layout, paints, and combines layers to display the page.
- Cached content can avoid a network request; existing connections can avoid a new connection setup.
- HTTP/1.1 and HTTP/2 use TCP; HTTP/3 uses QUIC over UDP.
- HTML builds the DOM; CSS builds the CSSOM. Together, they guide rendering.
- Scripts can block HTML parsing, and later resource loads or page changes can trigger more rendering.
What the interviewer checks: The interviewer checks whether you can connect networking, HTTP communication, and browser rendering in the correct order.
Common mistake (in 3 of 5 reviewed answers): Many answers forget that the browser sends an HTTP request and receives the server’s response before processing the page.
Other ways it was asked
- “What happens internally when a user clicks a URL in a browser?”
- “When you enter google.com in a web browser and press Enter, what happens next on your PC?”
- “When a user enters a URL in a browser and presses Enter, can you explain the complete end-to-end journey of the request and response, from the user's device until the webpage is displayed, including the technologies and terminology involved?”
What is the DOM, and how does JavaScript interact with it?
Asked in 9 of 157 interviews · last asked Sep 7 · Concept · Junior
Show answer
The DOM (Document Object Model) is a tree of objects that represents a web document. JavaScript uses DOM methods and properties to find elements and change their content, attributes, or styles. It can also add or remove elements and listen for events, such as clicks.
- DOM nodes represent parts of a document, including elements and text.
- The DOM is a browser API, not part of the JavaScript language itself.
- Changing the DOM can update the page without reloading it.
- Event listeners let JavaScript respond to user actions.
JavaScriptconst button = document.createElement('button'); button.textContent = 'Click me'; button.addEventListener('click', () => { button.textContent = 'Clicked!'; }); document.body.appendChild(button);What the interviewer checks: The interviewer is checking whether you understand how JavaScript reads, changes, and handles events on a web page.
Other ways it was asked
- “What is the DOM?”
- “What is the DOM (Document Object Model)?”
- “What is the DOM, and what is it used for in JavaScript?”
How do Flexbox and Grid differ, and when would you choose each for a layout?
Asked in 8 of 157 interviews · last asked Oct 7 · Concept · Junior
Show answer
Flexbox lays out items in one direction at a time: a row or a column. Grid controls rows and columns together. I would use Flexbox for a navigation bar and Grid for a card layout that needs alignment across both rows and columns.
- Flexbox can wrap, but each line distributes space separately.
- Grid keeps items aligned across shared rows and columns.
- At breakpoints, Flexbox can change direction; Grid can change columns or rearrange areas.
- You can use Grid for the page layout and Flexbox inside its sections.
What the interviewer checks: The interviewer is checking whether you can choose a layout tool based on alignment and responsive layout needs.
Common mistake (in 3 of 6 reviewed answers): Many answers forget that alignment across both rows and columns and layout changes at breakpoints should guide the choice.
Other ways it was asked
- “What is the difference between Flexbox and CSS Grid?”
- “What is the difference between Flexbox and Grid?”
- “What is the difference between CSS Flexbox and CSS Grid?”
What is semantic HTML, and how do you choose appropriate elements instead of generic divs?
Asked in 7 of 157 interviews · last asked Sep 22 · Concept · Junior
Show answer
Semantic HTML uses elements that describe the meaning of content, not just its appearance. I choose elements by their purpose: nav for major navigation, main for the main content, and button for an action. I use div when no meaningful element fits. This gives browsers and assistive tools useful information about the page.
- Choose elements by meaning, not by their default appearance; use CSS for styling.
- Use links for navigation and buttons for actions.
- Use article for self-contained content and section for a distinct topic, usually with a heading.
- Semantic elements support accessibility, but do not make a page accessible on their own.
What the interviewer checks: The interviewer checks whether you can match content and behavior to suitable HTML elements and explain their accessibility value.
Other ways it was asked
- “What are semantic HTML elements, and why are they useful?”
- “What is semantic HTML, and why is it important?”
- “What are semantic HTML elements, and why do we even need them if we can build the UI without them?”
How do display: none, visibility: hidden, and display: block differ?
Asked in 4 of 157 interviews · last asked Jun 18 · Concept · Junior
Show answer
`display: none` hides an element and removes its space from the layout. `visibility: hidden` hides it but keeps its space. `display: block` makes it a block-level element, which starts on a new line in normal flow. It does not make the element visible if `visibility: hidden` still applies.
- `display: none` removes layout boxes for the element and its descendants.
- `visibility: hidden` keeps the element’s size and position in the layout.
- `display: block` controls layout; `visibility` controls whether the element is shown.
What the interviewer checks: The interviewer checks whether you understand the difference between hiding content and removing its layout space.
Other ways it was asked
- “What is the difference between CSS `display: none` and `visibility: hidden`?”
- “What is the difference between display: none and visibility: hidden?”
- “What is the difference between `display: block` and `visibility: hidden` in CSS?”
How would you build a responsive interface that adapts from desktop to mobile without duplicating markup?
Asked in 4 of 157 interviews · last asked Oct 8 · Scenario · Mid-level
Show answer
I would use one semantic HTML structure, with mobile-first CSS and Grid or Flexbox. I would use flexible widths and choose breakpoints based on where the content stops fitting well, not specific devices. On wider screens, media queries would adjust columns, spacing, and sizes to match the desktop design.
- Include the viewport meta tag so mobile browsers use the device width.
- Make images flexible and avoid fixed widths that cause horizontal scrolling.
- Keep reading and keyboard navigation order logical across layouts.
- Test between breakpoints, on real devices, and with zoom; keep touch controls large enough.
What the interviewer checks: The interviewer is checking whether you can adapt one page structure across screen sizes without harming usability or accessibility.
Other ways it was asked
- “What CSS layout approach and breakpoint strategy would you use to match a desktop design closely and reflow it cleanly on mobile without duplicating markup?”
- “Can you provide an example of a responsive front end component you built with React JS, and what considerations did you make for different screen sizes and devices?”
- “How do you make a user interface work well across mobile and desktop screen sizes?”
What is the virtual DOM, how does it work, and how does it differ from the real DOM?
Asked in 4 of 157 interviews · last asked May 29 · Concept · Junior
Show answer
The virtual DOM is a lightweight description of a user interface, kept in memory by libraries such as React. When state changes, the library compares the new description with the previous one and updates the real DOM where needed. The real DOM is the browser’s live tree of page elements, which it uses to render the page.
- Comparing old and new descriptions is part of a process called reconciliation.
- The virtual DOM does not appear on screen; the browser renders using the real DOM.
- It helps manage UI updates, but is not always faster than updating the DOM directly.
What the interviewer checks: The interviewer checks whether you understand how UI changes reach the browser and why a virtual DOM is used.
Other ways it was asked
- “What is the virtual DOM, and how is it used in frontend development?”
- “What is the virtual DOM, and how does it work?”
- “What is the difference between the virtual DOM and the real DOM?”
What are Core Web Vitals, and what do LCP, INP, and CLS measure?
Asked in 4 of 157 interviews · last asked Oct 8 · Concept · Junior
Show answer
Core Web Vitals are three metrics for loading performance, responsiveness, and visual stability. LCP (Largest Contentful Paint) measures when the largest visible image or text block appears. INP (Interaction to Next Paint) measures the delay from user interaction to the next screen update. CLS (Cumulative Layout Shift) measures unexpected layout movement.
- Good LCP is 2.5 seconds or less.
- Good INP is 200 milliseconds or less.
- Good CLS is 0.1 or less; it is a score, not a time.
- These targets are assessed at the 75th percentile of real user page visits.
What the interviewer checks: The interviewer is checking whether you can connect each metric to the user experience it measures.
Other ways it was asked
- “Could you tell me what Core Web Vitals are?”
- “What is your understanding of Core Web Vitals, and why are they important?”
- “How many Core Web Vitals are there?”
What is HTML?
Asked in 3 of 157 interviews · last asked Oct 19 · Concept · Junior
Show answer
HTML stands for HyperText Markup Language. It is the standard markup language used to structure content on web pages. It uses elements to describe content such as headings, paragraphs, links, and images.
- HTML is a markup language, not a programming language.
- Elements give content structure and meaning.
- CSS controls presentation, while JavaScript adds behavior.
What the interviewer checks: The interviewer is checking whether you understand HTML’s role and how it differs from CSS and JavaScript.
What is the DOCTYPE declaration?
Asked in 3 of 157 interviews · last asked Aug 27 · Concept · Junior
Show answer
The DOCTYPE declaration tells the browser how to render an HTML document. In modern HTML, `<!DOCTYPE html>` selects standards mode, so the browser follows modern HTML and CSS rules. Without it, the browser may use quirks mode, which applies older layout rules.
- Place `<!DOCTYPE html>` at the start of the document, before the `<html>` element.
- It is a declaration, not an HTML element.
- Standards mode helps avoid unexpected layout differences caused by quirks mode.
What the interviewer checks: The interviewer checks whether you understand how DOCTYPE affects browser rendering.
Other ways it was asked
- “Why do we use a DOCTYPE declaration?”
- “What does the doctype declaration do in an HTML document?”
- “What does a DOCTYPE declaration tell the browser?”
What is the CSS box model?
Asked in 3 of 157 interviews · last asked Oct 1 · Concept · Junior
Show answer
The CSS box model describes an element as a box with four parts: content, padding, border, and margin. Content holds text or images. Padding is the space between the content and border. Margin is the space outside the border.
- With the default box-sizing: content-box, width and height apply only to the content.
- With box-sizing: border-box, width and height include content, padding, and border.
- Margin is outside the box and is not included in either sizing mode.
What the interviewer checks: The interviewer is checking whether you understand element spacing and how CSS calculates box sizes.
Other ways it was asked
- “What is the CSS box model, and how does CSS Grid work?”
How would you implement light, dark, and brand themes using shared design tokens without duplicating component styles?
Asked in 3 of 157 interviews · last asked Sep 7 · Scenario · Mid-level
Show answer
I would use CSS custom properties for shared design tokens, with names such as `--surface` and `--text`. Light, dark, and brand themes override these values, while component styles stay unchanged. I would switch a `data-theme` attribute on the root element, use the system preference by default, and save the user's choice.
- Components use tokens named by purpose, not fixed colors or theme-specific styles.
- Keep palette values separate from semantic tokens so brand changes stay easy to manage.
- Use prefers-color-scheme for the default; an explicit user choice takes priority.
- Check text contrast, links, and focus indicators in every theme.
Code:root, [data-theme="light"] { --surface: #fff; --text: #222; --accent: #0645ad; } [data-theme="dark"] { --surface: #181818; --text: #eee; --accent: #8ab4f8; } [data-theme="brand"] { --surface: #f3e8ff; --text: #30104a; --accent: #7020a0; } .card { background: var(--surface); color: var(--text); } .card a { color: var(--accent); }What the interviewer checks: The interviewer is checking whether you can separate theme values from reusable component styles while supporting user preferences.
Other ways it was asked
- “How would you implement light and dark themes on a website?”
- “Where would you store the colors for light and dark themes, and how would you use them for elements such as text?”
- “How do you manage theming in a design system, for example light, dark, and brand themes, so tokens scale cleanly without duplicating component styles?”
How would you build an accessible custom button, including semantic elements, keyboard interaction, and focus behavior?
Asked in 3 of 157 interviews · last asked Jul 28 · Concept · Mid-level
Show answer
I use a native <button type="button"> and style it, rather than rebuilding button behavior. It supports Tab focus and activation with Enter and Space. I provide a clear accessible name and a visible focus indicator. Focus normally stays on the button; opening a dialog moves focus inside, and closing it returns focus to the trigger.
- An icon-only button needs an accessible name, such as an aria-label.
- A non-native button needs role="button", tabindex="0", and Enter/Space handlers; prevent Space from scrolling.
- Native disabled buttons block activation and are removed from the Tab order.
- aria-disabled="true" alone does not block activation or change focusability; code must prevent activation.
What the interviewer checks: The interviewer checks whether you understand native semantics, keyboard access, focus management, and disabled behavior.
Other ways it was asked
- “When you build an accessible custom button component, what are your non-negotiables for semantics and keyboard and focus behavior, including disabled states?”
- “For a custom button component, what semantic element would you choose by default, and what keyboard and focus behaviors must it support to meet accessibility expectations?”
- “If you style an element to look like a button, what specific attributes, roles, and keyboard behaviors do you ensure to keep it accessible?”
How do you incorporate web accessibility and WCAG compliance into a project?
Asked in 3 of 157 interviews · last asked Oct 7 · Scenario · Mid-level
Show answer
I build accessibility into design, coding, and testing so people with disabilities can use the site. I agree on a WCAG target, usually WCAG 2.2 Level AA. I use semantic HTML and test keyboard access, screen readers, and contrast. I combine automated checks with manual testing and fix issues before release.
- Level AA requires meeting all applicable Level A and AA success criteria.
- Use native HTML controls, clear labels, text alternatives, and visible keyboard focus.
- Automated tools cannot prove compliance; manual testing and feedback from users with disabilities help find missed barriers.
- Document issues and repeat accessibility tests when features change.
What the interviewer checks: The interviewer checks whether you understand accessibility and make it part of the whole project, not a final check.
Other ways it was asked
- “What is web accessibility, and how would you incorporate it into a software project?”
- “How do you manage WCAG accessibility compliance?”
- “Can you explain web accessibility?”
What is the difference between local storage and session storage in web browsers?
Asked in 3 of 157 interviews · last asked Oct 22 · Concept · Junior
Show answer
localStorage keeps data across browser sessions, while sessionStorage keeps data for one tab’s session. Both survive page reloads. localStorage has no automatic expiry, but users or the browser can clear it. sessionStorage is normally cleared when its tab closes, though restoring a browser session may restore it.
- Both store string keys and values and are accessed through JavaScript.
- localStorage is shared across tabs with the same origin; sessionStorage is separated by origin and tab.
- Use localStorage for saved preferences and sessionStorage for temporary tab-specific data.
- Unlike cookies, neither is automatically sent with HTTP requests.
What the interviewer checks: The interviewer is checking whether you understand storage lifetime, tab sharing, and when to use each option.
Other ways it was asked
- “What is the difference between cookies, local storage, and session storage in the browser?”
- “What are session storage and local storage, how do they differ, and when is their data cleared?”
How do SSR, SSG, and CSR differ, and when would you choose each?
Asked in 3 of 157 interviews · last asked Oct 19 · Concept · Mid-level
Show answer
SSR builds HTML on the server when a request arrives; choose it for fresh or personalized pages. SSG builds HTML ahead of time; choose it for blogs or documentation that change less often. CSR renders content in the browser with JavaScript; choose it for apps such as private dashboards where search visibility matters less.
- SSR and SSG deliver content in initial HTML, helping search engines and early display.
- SSR adds server work, though caching can reduce it.
- SSG serves prebuilt pages quickly, but content changes need a rebuild or regeneration.
- SSR and SSG pages can also be interactive; rendering choices can differ between pages.
What the interviewer checks: The interviewer checks whether you can choose based on content freshness, search visibility, loading speed, and server cost.
Other ways it was asked
- “What are client-side rendering (CSR) and server-side rendering (SSR)?”
- “What is the difference between server-side rendering (SSR), static site generation (SSG), and client-side rendering (CSR)?”
- “When would you choose static, server-side, or client-side rendering, and why?”
What optimizations would you use to improve frontend performance, and why?
Asked in 3 of 157 interviews · last asked Oct 22 · Scenario · Mid-level
Show answer
I would measure performance first, then reduce downloads and browser work. I would compress images and files, split JavaScript, and remove unused code to load less data. I would lazy-load offscreen images and prioritize visible content for faster display. I would cache static files and break up long JavaScript tasks for faster repeat visits and smoother interactions.
- Use browser performance tools and real-user data to find bottlenecks and verify improvements.
- Use appropriately sized images and modern formats; avoid lazy-loading the main visible image.
- Defer noncritical scripts and reserve image dimensions to prevent layout shifts.
- Use a CDN and suitable cache headers; version static filenames so updates reach users.
What the interviewer checks: The interviewer wants practical optimizations, clear reasons, and evidence that you measure results instead of guessing.
Other ways it was asked
- “How would you improve front-end performance in a web application?”
- “How would you improve frontend performance?”
- “If you were setting up a new front-end application, what optimizations would you put in place to make it more performant? Briefly explain each one.”
How would you structure a semantic card component, including headings and choosing article, section, or div?
Asked in 2 of 157 interviews · last asked Jul 26 · Concept · Mid-level
Show answer
Use `article` for a self-contained card, such as a blog post preview. Use `section` for a distinct topic in the page, usually with a heading. Use `div` when you only need a layout wrapper. Give the card a heading level that fits the page hierarchy, not its visual size.
- Choose the element by the content’s meaning, not the card’s appearance.
- An article or section does not automatically reset heading levels.
- Let reusable cards accept a heading level that matches their placement.
- Use CSS to style headings without changing their semantic level.
Code<section> <h2>Latest posts</h2> <article> <h3><a href="/posts/semantic-html">Semantic HTML</a></h3> <p>Learn how to choose meaningful HTML elements.</p> </article> </section>What the interviewer checks: The interviewer is checking whether you choose meaningful elements and keep a clear heading hierarchy when reusing cards.
Other ways it was asked
- “When would you wrap a blog post card in an article element versus using a section or a div?”
- “How do you structure semantic HTML for a reusable card component, including its heading hierarchy and when to use a section versus an article?”
What is an iframe?
Asked in 2 of 157 interviews · last asked Jun 18 · Concept · Junior
Show answer
An `<iframe>` is an HTML element that embeds another web page inside the current page. The embedded page has its own document and browsing context. Common uses include videos, maps, and external widgets.
- The src attribute sets the page to load.
- Use a clear title attribute to describe the frame for screen reader users.
- The sandbox attribute can restrict what the embedded page can do.
- The same-origin policy limits script access between the parent page and a frame from another origin.
What the interviewer checks: The interviewer is checking whether you understand embedded pages and their separation from the parent page.
Other ways it was asked
- “What is the iframe tag?”
What is the purpose of the head section in HTML?
Asked in 2 of 157 interviews · last asked Oct 19 · Concept · Junior
Show answer
The <head> section holds information about the page and links to resources, rather than the main content shown on the page. It can include the page title, metadata, styles, and scripts. Browsers and search engines use this information to process and understand the page.
- The <title> sets the page title shown in the browser tab.
- Metadata can define the character encoding, page description, and viewport settings.
- The <head> can link stylesheets and include scripts; visible page content belongs in <body>.
What the interviewer checks: The interviewer is checking whether you understand the difference between page information in <head> and page content in <body>.
HTML basics and semantic HTML interview questions
HTML questions cover document structure, tags, attributes, metadata, semantic elements, forms, images, embedded content, and templates. 49 questions.
What are HTML attributes, and how are they used?
Asked in 2 of 157 interviews · last asked Sep 2 · Concept · Junior
Other ways it was asked
- “What are HTML data attributes, and how are they used?”
How do you add a comment in HTML?
Asked in 2 of 157 interviews · last asked Oct 19 · Concept · Junior
Other ways it was asked
- “Could you specify the exact syntax or tags used to add a comment in HTML?”
- “What are the exact delimiters used to add a comment in HTML?”
What is the purpose of the meta tag in HTML?
Asked in 2 of 157 interviews · last asked Aug 25 · Concept · Junior
Other ways it was asked
- “What are HTML meta tags, and what are they used for?”
When uploading a file through a form, what attributes are needed on the form tag?
Asked once · last asked May 9 · Concept · Junior
What are some of the new features introduced in HTML5 that enhance web application development?
Asked once · last asked May 23 · Concept · Junior
Can you elaborate on how you would use the Canvas element in a real-world project, and what kinds of applications could benefit from it?
Asked once · last asked May 23 · Tooling · Junior
What is the difference between the HTML <b> and <strong> tags?
Asked once · last asked Nov 21 · Concept · Junior
Other ways it was asked
- “What is the difference between the bold and strong tags?”
What content is typically placed in the HTML <head>, and what role does it serve, including metadata and CSS or JavaScript references?
Asked once · last asked Jul 27 · Concept · Junior
How do you render HTML and insert a variable into a Thymeleaf template?
Asked once · last asked Aug 7 · Tooling · Junior
What HTML form fields would you use to collect information for a career guidance tool?
Asked once · last asked Sep 19 · Tooling · Junior
How would you represent books in a reading application, including page numbers, text, and content formatting such as HTML?
Asked once · last asked Oct 22 · Design · Mid-level
Other ways it was asked
- “How should the books be represented? Are they just strings, or do they include page numbers and text? How should the content be formatted—for example, as HTML?”
How would you structure an icon, a heading, and a paragraph within a card using HTML?
Asked once · last asked Mar 20 · Scenario · Junior
Other ways it was asked
- “How would you use CSS to space an icon, a heading, and a paragraph within a card?”
CSS fundamentals interview questions
Review CSS syntax, selectors, specificity, the cascade, colors, units, the box model, visibility, positioning, and overflow. 37 questions.
What is the difference between ID and class selectors in CSS?
Asked in 2 of 157 interviews · last asked Aug 25 · Concept · Junior
Other ways it was asked
- “Can you complete your explanation on the difference between ID and class selectors in CSS?”
- “In CSS, which has higher specificity: a class selector or an ID selector?”
What is CSS?
Asked in 2 of 157 interviews · last asked Aug 4 · Concept · Junior
Other ways it was asked
- “Explain CSS in your own words.”
What is margin collapsing in CSS, and how can you control or prevent it?
Asked in 2 of 157 interviews · last asked Aug 25 · Concept · Junior
Other ways it was asked
- “How can you control or prevent CSS margin collapsing?”
- “What is margin collapse in CSS?”
- “What is CSS margin collapsing, and when does it occur?”
Explain the difference between margin and padding.
Asked in 2 of 157 interviews · last asked Aug 20 · Concept · Junior
Other ways it was asked
- “What is the difference between padding and margin in CSS?”
Which CSS properties can you use to control the spacing between boxes?
Asked once · last asked Mar 20 · Concept · Junior
How can you distinguish padding from margin in the CSS box model?
Asked once · last asked Mar 20 · Concept · Junior
In the CSS box model, what lies outside an element's border?
Asked once · last asked Mar 20 · Concept · Junior
What is the difference between relative, absolute, and fixed positioning in CSS?
Asked once · last asked Jul 27 · Concept · Junior
Other ways it was asked
- “Could you explain how absolute positioning behaves compared to relative and fixed positioning?”
What does CSS stand for, and how does CSS work with HTML to control a website's appearance?
Asked once · last asked Jul 27 · Concept · Junior
What's the difference between content-box and border-box in the CSS box model?
Asked once · last asked Aug 25 · Concept · Junior
What is the difference between display none, visibility hidden, and opacity zero?
Asked once · last asked Aug 25 · Concept · Mid-level
How does an element with opacity: 0 affect page layout, and what should you consider when using it?
Asked once · last asked Aug 25 · Concept · Mid-level
Show 23 more
Could you talk about positioning — static, relative, absolute, fixed, and sticky?
Asked once · last asked Aug 25 · Concept · Mid-level
If a parent has position relative, where is an absolute child positioned: relative to the parent or the whole document?
Asked once · last asked Aug 25 · Concept · Mid-level
What is CSS specificity, and how is it determined?
Asked once · last asked Aug 25 · Concept · Junior
How can you prevent text from overflowing its container in a web interface?
Asked once · last asked Oct 2 · Scenario · Mid-level
What is the difference between px and rem?
Asked once · last asked Oct 9 · Concept · Junior
What do the CSS :has() and :is() pseudo-classes do, and how do they differ?
Asked once · last asked Oct 12 · Concept · Mid-level
Other ways it was asked
- “What is the purpose of :has()? When do you use it?”
- “What is the difference between the CSS :has() and :is() pseudo-classes?”
What CSS syntax would you use to increase the font size of text in a paragraph?
Asked once · last asked May 19 · Write code · Junior
What does box-sizing: border-box do?
Asked once · last asked Jun 5 · Concept · Junior
Why do we need CSS?
Asked once · last asked Nov 21 · Concept · Junior
Who proposed CSS, and in what year was it first introduced?
Asked once · last asked Jul 22 · Concept · Junior
What are the types of CSS?
Asked once · last asked Aug 13 · Concept · Junior
What is the purpose of the background color property in CSS?
Asked once · last asked Aug 20 · Concept · Junior
How do you change the text color of a paragraph or the background color of a div in CSS?
Asked once · last asked Aug 20 · Tooling · Junior
How do you set a div's background color in CSS?
Asked once · last asked Aug 20 · Tooling · Junior
How do padding and margin affect an element's background or positioning differently?
Asked once · last asked Aug 20 · Concept · Junior
Can CSS use HTML data attributes in selectors?
Asked once · last asked Aug 25 · Concept · Junior
What are CSS floats, and how are they used for layout?
Asked once · last asked Aug 25 · Concept · Junior
In the CSS cascade, which takes precedence when an inline style conflicts with a stylesheet rule?
Asked once · last asked Aug 25 · Concept · Junior
What is the difference between display and visibility in CSS?
Asked once · last asked Aug 27 · Concept · Junior
What is the difference between a block-level element and an inline element in normal page layout?
Asked once · last asked Sep 15 · Concept · Junior
What does the z-index property do in CSS, and when would you use it?
Asked once · last asked Sep 28 · Concept · Junior
Can CSS select a previous sibling element, and which selector would you use?
Asked once · last asked Oct 2 · Concept · Mid-level
How do you set rounded corners on an element using CSS?
Asked once · last asked Oct 9 · Concept · Junior
CSS layout and responsive design interview questions
Layout questions cover Flexbox, Grid, responsive text and images, breakpoints, container queries, Bootstrap, Tailwind, and turning designs into layouts. 46 questions.
How do container queries work, and when would you use them instead of media queries?
Asked in 2 of 157 interviews · last asked Oct 12 · Concept · Mid-level
Other ways it was asked
- “When building a responsive layout, how do you decide between media queries and container queries, and what is one case where container queries are clearly better?”
- “When and how do you use CSS container queries?”
- “What is the difference between media queries and container queries?”
When implementing a pixel-perfect design, how do you structure spacing and typography so it stays consistent across breakpoints without duplicating lots of CSS?
Asked in 2 of 157 interviews · last asked Jul 28 · Tooling · Mid-level
Other ways it was asked
- “In a pixel-perfect build, how do you keep typography consistent across breakpoints, font size, line height, and letter spacing while still being responsive?”
How do you use Tailwind CSS to create responsive designs in enterprise dashboard projects?
Asked in 2 of 157 interviews · last asked Jul 11 · Tooling · Mid-level
Other ways it was asked
- “How does Tailwind help with responsive design?”
What is the difference between Flexbox and float in CSS?
Asked once · last asked Mar 5 · Concept · Junior
What does `display: flex` do, and when would you use it?
Asked once · last asked Mar 20 · Concept · Junior
What does `align-items: center` do in CSS Flexbox?
Asked once · last asked Mar 20 · Concept · Junior
How would you make a frontend responsive with CSS media queries, and how would provided screen layouts guide your implementation?
Asked once · last asked Mar 20 · Scenario · Mid-level
What specific techniques do you use to achieve responsiveness in web design?
Asked once · last asked May 23 · Concept · Junior
How would you structure a responsive card grid using semantic HTML—lists versus divs—and what CSS approach would you use for layout at different breakpoints?
Asked once · last asked Jun 7 · Scenario · Mid-level
How do you typically implement responsive typography in CSS, for example using clamp, and what factors do you choose for the min, preferred, and max values?
Asked once · last asked Jul 16 · Tooling · Mid-level
When implementing a responsive UI component, how do you decide between REM, em, percent, viewport units, and PX for typography and spacing across breakpoints?
Asked once · last asked Jul 22 · Scenario · Mid-level
When you’re aiming for pixel-perfect spacing with CSS Grid, how do you avoid unexpected gaps?
Asked once · last asked Jul 22 · Scenario · Mid-level
CSS architecture and design systems interview questions
Explore reusable styles, BEM, SCSS, custom properties, themes, design tokens, component libraries, and styling workflows. 27 questions.
What is BEM, and how do you apply it when writing HTML and CSS?
Asked once · last asked Jun 5 · Concept · Mid-level
What is the difference between an SCSS mixin and a function?
Asked once · last asked Jun 5 · Concept · Mid-level
How can you use a function in SCSS? Give a simple example.
Asked once · last asked Jun 5 · Tooling · Mid-level
What are CSS custom properties, and how are they used?
Asked once · last asked Jun 5 · Concept · Mid-level
What's the difference between Wix Editor and Editor X/Studio, and when would you choose each for a client project?
Asked once · last asked Jul 16 · Concept · Mid-level
How would you structure design token naming across global, semantic, and component levels to keep spacing and typography consistent while allowing product-specific theming?
Asked once · last asked Jul 22 · Design · Senior
Other ways it was asked
- “How would you structure your design token naming in levels like global, semantic, and component so spacing and typography stay consistent, yet still allow productive specific theming?”
In a component library, how would you detect and prevent one-off visual overrides like custom CSS or inline styles that drift from the style guide without blocking legitimate product needs?
Asked once · last asked Jul 22 · Scenario · Senior
How do you implement a fixed 8px spacing system in CSS while still allowing fluid layouts, and how do you prevent 1px drift from rounding across devices?
Asked once · last asked Jul 28 · Tooling · Senior
When your design system spec calls for a hairline divider, how do you define and enforce that token across web and native platforms so it stays visually consistent?
Asked once · last asked Jul 28 · Design · Senior
If you use plain CSS instead of styled-components, how do you manage CSS conflicts and class name collisions?
Asked once · last asked Sep 7 · Tooling · Mid-level
When is it better to use a template, and when is it better to use CSS in SAP Analytics Cloud?
Asked once · last asked Sep 24 · Concept · Mid-level
How would you style components across the Shadow DOM so host applications can customize them?
Asked once · last asked Oct 1 · Concept · Mid-level
Show 14 more
How would you industrialize the process of translating a Figma mockup into front-end code?
Asked once · last asked Oct 1 · Scenario · Senior
Write CSS for a theming system that supports multiple brands and both light and dark modes.
Asked once · last asked Oct 8 · Write code · Senior
How do you architect CSS for an e-commerce application?
Asked once · last asked Oct 12 · Design · Senior
What decisions do you make when implementing design tokens and accessibility in a user interface?
Asked once · last asked Oct 23 · Scenario · Mid-level
What are CSS preprocessors, and what benefits do they provide?
Asked once · last asked Feb 27 · Concept · Junior
Which tools do you use to build and optimize websites, and how do you apply AI tools such as Elementor One or Gemini in that work?
Asked once · last asked Mar 20 · Tooling · Mid-level
How would you approach a role that includes both design work and front-end implementation with HTML and CSS?
Asked once · last asked Apr 3 · Scenario
How would you handle styling consistency in a project using Tailwind CSS?
Asked once · last asked Apr 9 · Tooling · Mid-level
How are SCSS variables declared and used in a stylesheet?
Asked once · last asked Jun 5 · Concept · Junior
Other ways it was asked
- “How does a browser use SCSS variables?”
Considering how front-end engineering has evolved, how do you see the role of design systems in modern front-end development?
Asked once · last asked Jun 24 · Concept · Mid-level
What challenges would you anticipate when getting up to speed on front-end development after several years away from it?
Asked once · last asked Jul 16 · Scenario · Mid-level
How do you handle themes in an app?
Asked once · last asked Sep 7 · Tooling · Mid-level
How would you build reusable UI widgets in a web application?
Asked once · last asked Oct 1 · Tooling · Mid-level
How is styling handled in a headless component?
Asked once · last asked Dec 29 · Concept · Junior
HTML accessibility interview questions
Accessibility questions focus on WCAG, semantic HTML, ARIA, keyboard navigation, focus, text alternatives, interactive components, and reduced motion. 23 questions.
When should you use a button instead of a link, and what accessibility behavior should each provide?
Asked in 2 of 157 interviews · last asked Jul 26 · Concept · Mid-level
Other ways it was asked
- “When would you choose a button versus a link for a clickable UI element, and what accessibility and keyboard differences matter most?”
- “When would you choose a button versus a link, and what accessibility behavior should each provide by default?”
- “How do you handle an action that triggers an in-page effect with no navigation? Do you keep it as a link, switch to a button, or use ARIA, and why?”
When would you use display: none, and how does it affect screen readers?
Asked once · last asked Aug 25 · Concept · Mid-level
How do you handle accessibility for responsive navigation with a menu button and an off-canvas panel? Which HTML elements and attributes do you require for correct keyboard and screen reader behavior?
Asked once · last asked Jun 7 · Scenario · Mid-level
How do you approach semantic landmarks and heading structure on a complex page to support screen readers, especially when parts of the UI are visually titled but not true sections?
Asked once · last asked Jul 16 · Concept · Mid-level
What is the role of the alt attribute in an image tag?
Asked once · last asked Nov 21 · Concept · Junior
What can provide an accessible text alternative for an image besides the alt attribute?
Asked once · last asked Nov 21 · Concept · Junior
How do you decide between using a native button and a non-button element with role="button", and what ARIA or attribute requirements do you enforce in each case?
Asked once · last asked Jul 22 · Concept · Senior
How would you balance smooth animations with accessibility preferences like users who want reduced motion?
Asked once · last asked Jul 22 · Scenario · Senior
How would you implement reduced motion in CSS or app settings, and what would you turn off first?
Asked once · last asked Jul 22 · Scenario · Senior
How do you ensure keyboard accessibility for a custom dropdown component using HTML, CSS, and JS, including ARIA considerations?
Asked once · last asked Jul 26 · Scenario · Mid-level
When should a card be represented as standalone content, and when should it have an accessible name?
Asked once · last asked Jul 26 · Concept · Mid-level
When would you use aria-pressed on a button, and what does it communicate to assistive technologies?
Asked once · last asked Jul 28 · Concept · Mid-level
Show 9 more
How do screen readers handle elements with opacity: 0 compared with elements using display: none?
Asked once · last asked Aug 25 · Concept · Mid-level
Why should you still use the button element instead of styling a div as a button?
Asked once · last asked Aug 25 · Concept · Mid-level
Can ARIA attributes make a div behave like a button for screen readers, and do they affect SEO?
Asked once · last asked Aug 25 · Concept · Mid-level
What are ARIA attributes, and when should you use them?
Asked once · last asked Aug 25 · Concept · Mid-level
Is a div with role="button" equivalent to a native button for accessibility?
Asked once · last asked Aug 25 · Concept · Mid-level
How do screen readers interact with the page — what information do they convey to users who can't see?
Asked once · last asked Aug 25 · Concept · Junior
How do ARIA role attributes support accessibility?
Asked once · last asked Aug 25 · Concept · Junior
How would you fix a UI issue where a control only activates on hover?
Asked once · last asked Sep 29 · Scenario · Junior
Why should you use an accessibility library?
Asked once · last asked Oct 6 · Concept · Mid-level
DOM and browser API interview questions
Work through questions on DOM changes, events, observers, scrolling, browser permissions, UI components, frontend frameworks, and API-driven interactions. 38 questions.
How do React components and web components differ, and when would you choose each?
Asked in 2 of 157 interviews · last asked Oct 16 · Concept · Mid-level
Other ways it was asked
- “What is the difference between React components and web components?”
- “How do you distinguish between using React components and custom elements in your front-end projects, and what factors influence your decision?”
Given an accordion parent item with child items for each accordion entry, how would you fetch the data and render it on the front end in a headless application?
Asked once · last asked Feb 9 · Scenario · Mid-level
In Next.js, when should you use the Link component, and when should you use an <a> element?
Asked once · last asked Mar 21 · Concept · Junior
Can WhatsApp be integrated into a website, and how would you connect it?
Asked once · last asked May 4 · Tooling · Mid-level
How do you select an element in the DOM using JavaScript? Which method or keyword would you use?
Asked once · last asked May 22 · Concept · Junior
How would you structure the process for building a landing page with headless WordPress and a React frontend?
Asked once · last asked Jun 4 · Scenario · Mid-level
How would you design a website's architecture to request webcam and microphone access when a user arrives?
Asked once · last asked Jul 16 · Design · Mid-level
An API returns a 200 status code, but the UI is blank. What would you check?
Asked once · last asked Jul 22 · Scenario · Mid-level
How would you pass user-entered text to an API when the user clicks an action button?
Asked once · last asked Jul 31 · Scenario · Mid-level
Other ways it was asked
- “How are you passing the input text into your API when the user types text and clicks the action button?”
How do you send user-provided input from a frontend application to a backend API?
Asked once · last asked Jul 31 · Scenario · Mid-level
In jQuery, what is the difference between .html(), .text(), and .val()?
Asked once · last asked Aug 12 · Concept · Junior
In jQuery, what is the difference between append() and before()?
Asked once · last asked Aug 12 · Concept · Junior
Show 24 more
What are MutationObserver objects in JavaScript, and what do they do?
Asked once · last asked Aug 25 · Concept · Mid-level
What causes a click on a nested button to trigger a parent handler, and how can you prevent it?
Asked once · last asked Aug 25 · Scenario · Mid-level
How does the React component tree relate to the browser DOM tree?
Asked once · last asked Sep 3 · Concept · Mid-level
Why use React instead of directly manipulating the DOM?
Asked once · last asked Sep 3 · Concept · Mid-level
How would you handle dynamic, reactive websites where content adapts in real time to user behavior?
Asked once · last asked Sep 29 · Scenario · Mid-level
How would you use JavaScript to find containers and child elements whose content extends beyond the container?
Asked once · last asked Oct 2 · Write code · Mid-level
Can you explain event delegation?
Asked once · last asked Oct 7 · Concept · Mid-level
In an uncontrolled React component, what does it mean for the DOM to manage an input's value?
Asked once · last asked Oct 8 · Concept · Mid-level
How would you implement infinite scroll from the frontend perspective, and what parameters need to be sent to the backend API?
Asked once · last asked Oct 8 · Design · Mid-level
How would you detect when a user has scrolled 85% of the page to trigger fetching the next page in an infinite scroll implementation?
Asked once · last asked Oct 8 · Scenario · Mid-level
How can you handle a dynamic scroll threshold as new pages increase the total scrollable length in an infinite scroll implementation?
Asked once · last asked Oct 8 · Scenario · Mid-level
What is the Intersection Observer API, and how is it implemented?
Asked once · last asked Oct 8 · Concept · Mid-level
When integrating back-end APIs into your front-end projects, how do you typically manage asynchronous data fetching to ensure smooth user interactions?
Asked once · last asked Oct 16 · Scenario · Mid-level
When asynchronous data retrieval fails in a frontend application, how do you provide users with immediate feedback?
Asked once · last asked Oct 16 · Scenario · Mid-level
How do you handle localization and globalization in the frontend?
Asked once · last asked Oct 19 · Concept · Mid-level
Why is jQuery used in frontend development?
Asked once · last asked Mar 24 · Tooling · Junior
How do you retrieve the CSS properties of an element?
Asked once · last asked Apr 22 · Tooling · Junior
If you have to scroll down a page, how can you do that using JavaScript? Can you write the syntax for it?
Asked once · last asked Apr 22 · Write code · Junior
What would you pay attention to when developing a standalone carousel component?
Asked once · last asked Jul 16 · Scenario · Mid-level
How would you use keyboard key codes to restrict a text box to numeric input?
Asked once · last asked Aug 12 · Scenario · Junior
What is getElementById?
Asked once · last asked Aug 12 · Concept · Junior
What are JavaScript events?
Asked once · last asked Aug 13 · Concept · Junior
What tools or frameworks are useful for building dynamic, reactive user interfaces?
Asked once · last asked Sep 29 · Concept · Mid-level
How do you track the current page in an infinite scroll implementation?
Asked once · last asked Oct 8 · Scenario · Mid-level
Browser networking, storage, and security interview questions
Browser questions cover URL requests, protocols, cookies, storage, caching, same-origin rules, authentication, secure integrations, and website deployment. 28 questions.
How would you persist a user's theme preference, and would you choose localStorage or sessionStorage?
Asked in 2 of 157 interviews · last asked Sep 7 · Scenario · Mid-level
Other ways it was asked
- “How would you persist a user's selected theme when they navigate to another page?”
- “What is localStorage, and when would you use it to persist a user's theme preference?”
- “Should theme details be stored in localStorage or sessionStorage?”
Where would you store a selected team identifier—in a cache or in cookies?
Asked once · last asked Sep 7 · Scenario · Mid-level
Other ways it was asked
- “Where would you store a selected team identifier: in a cache, cookies, or local storage?”
Can a page read the response data of an image loaded from another origin through an `<img>` element?
Asked once · last asked Oct 1 · Concept · Junior
Does an image loaded through an `<img>` element from another origin load, or is it blocked?
Asked once · last asked Oct 1 · Concept · Junior
Other ways it was asked
- “Does an image loaded through an `<img>` element from another origin load without CORS headers, or is it blocked?”
How would you render HTML for a form retrieved from an external API when the API requires a client secret that must not be exposed to the front end?
Asked once · last asked Feb 9 · Scenario · Mid-level
How can you deploy a normal HTML website, such as test.test.com, using Apache on a single-tenant server?
Asked once · last asked Apr 16 · Tooling · Mid-level
How do you ensure browsers load updated CSS and images instead of cached versions?
Asked once · last asked Jun 5 · Scenario · Senior
Other ways it was asked
- “After a deployment, browsers keep loading an old CSS file with the same filename. How can you make users receive the updated styles without manually clearing their cache?”
- “How would you make browsers load an updated image after it has been replaced?”
How do caches and cookies differ in their lifespan, security, and client-side storage?
Asked once · last asked Aug 27 · Concept · Junior
How would you share the selected team between customer and admin panels on different subdomains?
Asked once · last asked Sep 7 · Scenario · Senior
Why do we escape HTML in the email body?
Asked once · last asked Sep 29 · Concept · Junior
What can a page on one subdomain access on another subdomain under the same-origin policy?
Asked once · last asked Oct 1 · Scenario · Mid-level
How does the same-origin policy treat an image loaded from another origin through an `<img>` element?
Asked once · last asked Oct 1 · Concept · Junior
Show 14 more
What are HTTP-only cookies and why do you use them? Can they be tampered with?
Asked once · last asked Oct 8 · Concept · Mid-level
How does a browser determine which protocol to use, and does the protocol affect the subsequent request sequence?
Asked once · last asked Oct 12 · Concept · Junior
Where should an authentication token be stored on the frontend?
Asked once · last asked Oct 12 · Scenario · Mid-level
When you type google.com in Firefox and press Enter, what happens in the background?
Asked once · last asked Oct 13 · Concept · Mid-level
In a web application, how would you decide which data belongs in the URL and where the other screen data should live?
Asked once · last asked Oct 23 · Concept · Mid-level
Where are cookies stored?
Asked once · last asked Feb 23 · Concept · Junior
What’s the difference between client-side and server-side in a web app?
Asked once · last asked Aug 14 · Concept · Junior
What is web browsing, and how does it work?
Asked once · last asked Aug 14 · Concept · Junior
What happens after a browser completes a DNS lookup?
Asked once · last asked Aug 25 · Concept · Mid-level
What is a deep link?
Asked once · last asked Aug 27 · Concept · Junior
What is the difference between a cache and a cookie?
Asked once · last asked Aug 27 · Concept · Junior
Where would you store a generated unique request key on the frontend to prevent duplicate payment submissions?
Asked once · last asked Oct 1 · Scenario · Mid-level
How would you implement a counter that increments on each page refresh without using an external data source?
Asked once · last asked Oct 1 · Scenario · Mid-level
How can built-in browser features be used to reduce the number of requests sent to a server?
Asked once · last asked Oct 6 · Tooling · Mid-level
Browser rendering and web performance interview questions
Performance questions cover rendering, hydration, SEO, script loading, Core Web Vitals, resource optimization, animations, and efficient rendering of large lists. 45 questions.
How do async and defer differ, and how do they affect script loading and HTML parsing?
Asked in 2 of 157 interviews · last asked Aug 25 · Concept · Junior
Other ways it was asked
- “What is the difference between async and defer?”
- “When would you use async, and when would you use defer?”
- “What is the difference between async and defer on script tags?”
What is hydration in web applications?
Asked in 2 of 157 interviews · last asked Sep 7 · Concept · Mid-level
Other ways it was asked
- “What is hydration?”
- “What happens during hydration?”
How can you prevent parser-blocking?
Asked once · last asked May 5 · Scenario · Mid-level
Other ways it was asked
- “What is parser-blocking?”
Why is it important to keep the above-the-fold content on a webpage lightweight?
Asked once · last asked Jun 5 · Concept · Mid-level
What CSS would you use to prevent image-related layout shift in a responsive card grid while preserving the intended crop?
Asked once · last asked Jun 7 · Scenario · Mid-level
What does a browser receive when loading a website, and how does it turn that content into a rendered page?
Asked once · last asked Jun 22 · Concept · Junior
What are the best practices in Next.js for scalability and accessibility when data comes from a content management system?
Asked once · last asked Jul 16 · Concept · Mid-level
How do you approach building and optimizing high-performance UI components?
Asked once · last asked Jul 16 · Scenario · Mid-level
When you see a slow LCP on a content heavy page, what are the first three things you check to pinpoint the main cause?
Asked once · last asked Jul 16 · Scenario · Mid-level
When DevTools shows the LCP as a text element, what specific things do you check to confirm whether fonts or CSS are delaying its paint?
Asked once · last asked Jul 16 · Scenario · Senior
How do you prevent layout shift in a list when rows can gain content, such as error text, badges, or an inline editor, after the initial render?
Asked once · last asked Jul 22 · Scenario · Senior
When animating UI state changes in rows, which CSS properties do you prefer to animate to avoid layout and reflow, and how do you verify the animation stays on the compositor thread?
Asked once · last asked Jul 22 · Concept · Senior
Other ways it was asked
- “When animating UI state changes in those rows, which CSS properties do you prefer to animate to avoid layout and reflow, and how do you verify the animation stays on the compositor thread?”
Frontend testing and browser compatibility interview questions
Check topics such as layout debugging, visual regression, browser support, polyfills, Playwright, XPath, scraping, and browser automation. 29 questions.
How would you write a stable UI test that detects overflow and prevents layout regressions?
Asked in 2 of 157 interviews · last asked Oct 2 · Tooling · Mid-level
Other ways it was asked
- “After fixing a responsive overflow bug, what UI test would you add to prevent it from regressing, and what would the test assert?”
- “In a component test, how would you detect no horizontal overflow in a robust way, and how would you keep it stable across environments?”
- “How would you use Playwright to test whether content overflows its container?”
What aspects of browser compatibility would you test?
Asked once · last asked Jul 16 · Scenario · Mid-level
Other ways it was asked
- “Which browsers would you include in a browser compatibility test?”
How would you reliably test a feature embedded in a cross-origin iframe when you cannot access the iframe's code?
Asked once · last asked Apr 10 · Scenario · Senior
A user clicks the submit button on a website form, but nothing happens—there's no error message or success response. What are the first three things you would check?
Asked once · last asked May 20 · Scenario · Mid-level
How do you decide whether to transpile modern JavaScript features or ship polyfills for cross-browser support?
Asked once · last asked Jul 16 · Concept · Mid-level
How would you load modern and legacy bundles using module/nomodule while handling browser compatibility quirks?
Asked once · last asked Jul 16 · Scenario · Senior
Other ways it was asked
- “If you ship differential bundles, modern plus legacy, what’s your approach to loading the right one across browsers without breaking older Safari or IE?”
- “What specific cross-browser edge case have you had to handle with the module/no-module approach, for example older Safari quirks, and how did you mitigate it?”
How would you troubleshoot a customer report that downloads work in Chrome but fail in Safari, and what key details would you collect first?
Asked once · last asked Jul 16 · Scenario · Mid-level
In XPath, what is the difference between a single slash and a double slash?
Asked once · last asked Jul 16 · Concept · Junior
In XPath, what does starting a relative path from any element mean compared with starting from the document root?
Asked once · last asked Jul 16 · Concept · Junior
How do you handle pixel-perfect alignment when fonts render slightly differently across browsers or operating systems, such as line height, baseline, and subpixel rounding, while keeping the layout responsive?
Asked once · last asked Jul 19 · Scenario · Senior
How do you ensure a component stays pixel perfect when the user's browser zoom is 90% or 110%, especially for 1px borders and hairlines?
Asked once · last asked Jul 28 · Scenario · Senior
Other ways it was asked
- “What specific CSS techniques do you use to keep 1px borders or hairlines crisp under 90% or 110% zoom and on high-DPI screens without the edges looking blurry?”
When matching a Figma spec that uses 0.5px strokes or subtle dividers, how do you implement those in CSS so they render consistently across browsers?
Asked once · last asked Jul 28 · Tooling · Senior
Show 17 more
What is web scraping, and what kind of data can usually be extracted from websites?
Asked once · last asked Jul 28 · Concept · Junior
Imagine you need to scrape a new website. What main steps would you take from checking the website to saving structured data?
Asked once · last asked Jul 28 · Scenario · Mid-level
When a website's page structure changes and your scraping selectors no longer match the content, what is your go-to approach to fix the issue quickly?
Asked once · last asked Jul 28 · Scenario · Mid-level
Other ways it was asked
- “When you encounter an unexpected page structure, meaning the selectors you set up no longer match the content, what's your go to approach to fix that quickly?”
How would you implement a custom getByRole locator in Playwright using element attributes?
Asked once · last asked Aug 4 · Write code · Senior
Other ways it was asked
- “How would you implement a custom getByRole locator in Playwright?”
- “How would you implement a custom getByRole locator using element attributes?”
How would you diagnose and fix a layout issue step by step when a page looks fine on desktop but broken on mobile?
Asked once · last asked Aug 15 · Scenario · Mid-level
How would you isolate the root cause of a UI bug that appears only in one browser or at a particular screen size, and verify the fix?
Asked once · last asked Aug 15 · Behavioral · Mid-level
Other ways it was asked
- “Can you describe a specific UI bug you personally debugged that only showed up on one browser or a particular screen size, and how did you isolate the root cause and verify the fix?”
When a layout issue only reproduces intermittently, what do you do to make it deterministic and identify the minimal change that fixes it?
Asked once · last asked Aug 15 · Scenario · Senior
What challenges can arise when developing applications for webOS and Tizen, and how would you address them?
Asked once · last asked Aug 22 · Scenario · Mid-level
How would you structure the observation-action loop in an autonomous browser to handle dynamic page elements, dynamic loading, and shadow DOMs?
Asked once · last asked Aug 25 · Behavioral · Senior
Other ways it was asked
- “How did you structure the observation-action loop to handle dynamic page elements, dynamic loading, and shadow DOMs in an autonomous browser project?”
How would you troubleshoot and fix a container where a checkbox and the Save and Delete buttons are aligned to the right instead of the left?
Asked once · last asked Oct 12 · Scenario · Mid-level
How do you detect and handle pixel-level rendering differences across browsers and operating systems, for example font rasterization or subpixel rounding, without filing false positives?
Asked once · last asked Oct 18 · Scenario · Senior
How should a web crawler handle a standard link, an email address, a phone number, and an image link found on a page?
Asked once · last asked Oct 23 · Scenario · Mid-level
What is the difference between an absolute XPath and a relative XPath?
Asked once · last asked Jul 16 · Concept · Junior
What criteria should you consider when creating a relative XPath?
Asked once · last asked Jul 16 · Concept · Junior
In XPath, what do the parent and sibling relationships mean?
Asked once · last asked Jul 16 · Concept · Junior
How do you find an XPath expression for a web page element?
Asked once · last asked Sep 16 · Tooling · Junior
Other ways it was asked
- “How do you find XPath?”
Can you briefly explain how polyfills work?
Asked once · last asked Oct 22 · Concept · Junior
Related interview questions
- Software Engineer interview questions
- QA Engineer interview questions
- AI Engineer interview questions
- UX and UI Designer interview questions
- Data Engineer interview questions
- DevOps Engineer interview questions
- React interview questions
- Angular interview questions
- Node.js interview questions
- Next.js interview questions
- Spring Boot interview questions
- Android and Kotlin interview questions
- iOS and Swift interview questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every HTML and CSS interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
157 interviews, 125 candidates, Oct 2025 to Oct 2026. Updated every month with new interviews.
Or add the Chrome extension