HTML CSS JS Interview Questions
HTML CSS JS Interview Questions
• Why you would use a srcset attribute in an image tag? Explain the process
the browser uses when evaluating the content of this attribute.
• Have you used different html templating languages before?
• What is the difference between canvas and svg?
• What are empty elements in html ?
CSS Interview Questions
• What is CSS selector specificity and how does it work?
• What's the difference between "resetting" and "normalizing" CSS? Which
would you choose, and why?
• Describe Floats and how they work.
• Describe z-index and how stacking context is formed.
• Describe BFC (Block Formatting Context) and how it works.
• What are the various clearing techniques and which is appropriate for what
context?
• How would you approach fixing browser-specific styling issues?
• How do you serve your pages for featureconstrained browsers?
• What techniques/processes do you use?
• What are the different ways to visually hide content (and make it available
only for screen readers)?
• Have you ever used a grid system, and if so, what do you prefer?
• Have you used or implemented media queries or mobile specific
layouts/CSS?
• Are you familiar with styling SVG?
• Can you give an example of an @media property other than screen?