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/Media and Embeds

Native audio and video, iframes, and how to embed third-party content safely.

9 QuestionsIntermediateMedium Priority ~9 min read

HTML5 introduced native audio and video elements, removing the need for plugins like Flash. They support attributes such as controls, autoplay, loop, muted and preload, and multiple source elements let you offer several formats so the browser can pick one it supports. The track element adds captions and subtitles, which matters for accessibility, and browsers generally block autoplay with sound unless the video is muted.

For embedding external content such as maps, videos or widgets, the iframe element loads another page inside yours. Because that content runs in its own browsing context, security attributes are important: sandbox restricts what the embedded page can do, and the allow attribute controls features like fullscreen or camera access. Interviewers often ask about the performance and security trade-offs of iframes, including using loading="lazy" and why you should be careful about embedding content you don't control.

What you'll walk away knowing

How to use audio and video with multiple source formats and fallback content
Key media attributes such as controls, muted, preload and why autoplay is restricted
How track elements provide captions and subtitles for accessibility
Using iframes safely with sandbox, allow and lazy loading
1How do you make images responsive? What are different attributes and elements which we can use?Intermediate2Discuss <iframe>, <embed>, <object> in detail and what are the differences?Intermediate3What tags are used to embed videos and audios?Intermediate4How do you make media fallback for unsupported browsers?Intermediate5What is the controls attribute in video and audio elements?Beginner6How can we embed video in HTML?Beginner7What is an <iframe> used for?Beginner8How can we embed audio in HTML?Intermediate9What is the <source> tag used for?Intermediate10What are the security concerns with <iframe>?Intermediate11What does the sandbox attribute do?Intermediate12Difference between <iframe> and <embed>?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.