Skip to content

Courses / HTML5 Mastery: Complete Beginner to Advanced Course / HTML Embeds

550 people viewed this

HTML Embeds

Practice Exercises

  1. Embed a permitted video using the provider's embed URL.
  2. Add a descriptive title and dimensions.
  3. Experiment with sandbox on a test page.
  4. Explain the same-origin policy in your own words.

Section 14 Revision Quiz

  1. Which element embeds another browsing context?
    1. iframe
    2. figure
    3. output
    1. title
    2. alt
    3. placeholder
    1. Restrict capabilities of embedded content
    2. Compress images
    3. Change character encoding
    1. postMessage
    2. colspan
    3. figcaption

    Answer Key and Explanations

    1. a. iframe embeds another browsing context.
    2. a. title provides an accessible name for the frame.
    3. a. sandbox restricts embedded content's capabilities.
    4. False. The same-origin policy restricts direct access to cross-origin documents.
    5. a. postMessage supports cross-context messaging when implemented securely.

Rate this course

5.0 · 1 rating

Stars show on this course. Your written note stays private.

Your stars