nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/HTML and CSS

How HTML and CSS work together, and the three ways to attach styles to a page.

10 QuestionsBeginnerHigh Priority ~9 min read

HTML defines structure and meaning, while CSS controls presentation; keeping them separate makes pages easier to maintain, reuse and make accessible. CSS can be applied inline through the style attribute, internally with a <style> element in the head, or externally by linking a stylesheet with <link rel="stylesheet">. External stylesheets are generally preferred because the browser can cache them and share them across pages.

Interviewers commonly ask about specificity and the cascade: when multiple rules target the same element, inline styles beat ids, ids beat classes, and classes beat element selectors, with source order breaking ties and !important overriding the normal rules. Another recurring topic is where stylesheets and scripts belong, since CSS in the head avoids a flash of unstyled content while render-blocking scripts are better deferred with the defer or async attributes.

What you'll walk away knowing

The separation of concerns between HTML for structure and CSS for presentation
The three ways to apply CSS and why external stylesheets are usually best
How specificity and the cascade decide which rule wins
Where to place link and script tags, and what defer and async do
1What is the difference between inline and block elements?Beginner2What is the purpose of Class attribute? How is it different from ID?Intermediate3How can you apply inline styles in HTML?Beginner4What does the style attribute do?Beginner5What are global HTML attributes?Intermediate6What are the different ways to include CSS in HTML?Intermediate
All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.