SmartAssess.io
Login
? Back to Programming & Development
Beginner ~10 min

HTML & CSS Intermediate Skills Assessment

This intermediate assessment evaluates practical HTML and CSS skills used to build responsive, accessible, and maintainable web pages. Topics include semantic HTML, forms, specificity, layout (Flexbox/Grid), responsive techniques, accessibility basics, and common real-world styling patterns. Ideal for learners who know the basics and want to validate job-ready front-end fundamentals.

Progress: 0/40
Beginner • ~10 min
Q1. Which HTML element is best for a site's primary navigation links?
Select one answer • 1 pt
Q2. Which attribute is required for an <img> for accessibility?
Select one answer • 1 pt
Q3. What does the 'rel="noopener"' value help prevent on target="_blank" links?
Select one answer • 1 pt
Q4. Which tag is most appropriate for self-contained content like a blog post preview?
Select one answer • 1 pt
Q5. Which input type provides built-in email validation in many browsers?
Select one answer • 1 pt
Q6. In a form, what does the 'name' attribute primarily do?
Select one answer • 1 pt
Q7. Which attribute links a <label> to an <input> for better usability?
Select one answer • 1 pt
Q8. What does the 'required' attribute do?
Select one answer • 1 pt
Q9. Which is the correct way to reference a CSS file?
Select one answer • 1 pt
Q10. Which CSS selector has the highest specificity?
Select one answer • 1 pt
Q11. In specificity, which beats a class selector?
Select one answer • 1 pt
Q12. What does 'box-sizing: border-box' do?
Select one answer • 1 pt
Q13. What is the default display value of a <div>?
Select one answer • 1 pt
Q14. Which CSS property controls space outside an element?
Select one answer • 1 pt
Q15. Which property controls space inside an element between content and border?
Select one answer • 1 pt
Q16. What does 'inherit' mean in CSS?
Select one answer • 1 pt
Q17. Which unit is relative to the root font size?
Select one answer • 1 pt
Q18. Which unit is relative to the element's current font size?
Select one answer • 1 pt
Q19. What does 'min-height: 100vh' do?
Select one answer • 1 pt
Q20. Which CSS property creates rounded corners?
Select one answer • 1 pt
Q21. What does 'display: flex' primarily do?
Select one answer • 1 pt
Q22. In Flexbox, which property controls the main axis direction?
Select one answer • 1 pt
Q23. In Flexbox, which property aligns items along the main axis?
Select one answer • 1 pt
Q24. In Flexbox, which property aligns items along the cross axis?
Select one answer • 1 pt
Q25. Which Flexbox property allows items to wrap to a new line?
Select one answer • 1 pt
Q26. What does 'gap' do in Flexbox/Grid?
Select one answer • 1 pt
Q27. Which CSS layout is best for two-dimensional control (rows AND columns)?
Select one answer • 1 pt
Q28. Which property defines grid columns?
Select one answer • 1 pt
Q29. What does 'repeat(3, 1fr)' mean in CSS Grid?
Select one answer • 1 pt
Q30. Which media query targets screens 768px and wider?
Select one answer • 1 pt
Q31. What is a common mobile-first approach?
Select one answer • 1 pt
Q32. Which HTML element is best for the page's unique main content?
Select one answer • 1 pt
Q33. What does aria-label do?
Select one answer • 1 pt
Q34. Which is best practice for keyboard accessibility?
Select one answer • 1 pt
Q35. What does :focus-visible help with?
Select one answer • 1 pt
Q36. Which CSS property is commonly used to create smooth transitions?
Select one answer • 1 pt
Q37. What does 'position: relative' do by itself?
Select one answer • 1 pt
Q38. An absolutely positioned element is positioned relative to:
Select one answer • 1 pt
Q39. Which property controls stacking order when elements overlap?
Select one answer • 1 pt
Q40. Which is best for setting a responsive image that doesn’t overflow its container?
Select one answer • 1 pt
Cancel