Frontend track

HTML and CSS interview questions

Panel-ready Frontend Master questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

53 Qs
1 Easy CSS Frontend

What is the CSS box model?

Short take

Simple meaning

The box model is how the browser sizes an element: content, then padding, then border, then margin outside.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
2 Easy CSS Frontend

Why do teams set box-sizing to border-box?

Short take

Simple meaning

With content-box, padding and border sit on top of width so a 200px card can overflow its parent.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
4 Easy CSS Frontend

What does display flex do?

Short take

Simple meaning

Flexbox lays out children in a row or column and lets you align, wrap, and distribute leftover space.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
8 Easy CSS Frontend

How does z-index work?

Short take

Simple meaning

Z-index only applies to positioned elements, or those with certain properties that create a stacking context.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
14 Easy Accessibility Frontend

What does ARIA mean at a high level?

Short take

Simple meaning

ARIA attributes tell assistive tech the role, name, and state of custom widgets when native HTML is not enough.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
15 Easy Accessibility Frontend

Why is keyboard navigation important?

Short take

Simple meaning

Many users cannot use a mouse, including power users and people with motor disabilities.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
17 Easy CSS Frontend

What are media queries used for?

Short take

Simple meaning

They apply CSS only when the viewport or device matches a condition, usually min-width.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Page 1 of 2 Next
Chat with us