tech-interview

What is Critical Rendering Path (CRP)?

How can I get indexed better by search engines?

What is desktop-first and mobile-first design approach?

How to make a page responsive?

What are the building blocks of HTML5?

When should you use section, div, or article?

What are the semantic tags available in HTML5?

They are <header>, <nav>, <main>, <article>, <section>, <aside>, <footer>, <figure>.

Why would you like to use semantic tags?

What is accessibility? What does ARIA role mean in a web application?

What is the purpose of the alt attribute on images?

Define semantic markup. What are the semantic meanings for and when/how should each be used in structuring HTML markup?

Describe the difference between a cookie, sessionStorage, and localStorage.

What are the possible ways to apply CSS styles to a web page?

What does the cascading portion of CSS mean?

What is a CSS preprocessor?

What are media queries?

What does box-sizing do?

Explain some pros and cons for CSS animations versus JavaScript animations.

What is theming? How to respond to the system theme change?

How to make images responsive?

Explain CSS grid layout with an example.

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three equal columns */
  grid-gap: 1rem; /* Gap between grid items */
}

.grid-item {
  background-color: #ccc;
  padding: 1.5rem;
}
<div class="grid-container">
  <div class="grid-item">Item 1</div>
  <div class="grid-item">Item 2</div>
  <div class="grid-item">Item 3</div>
</div>