Which HTML tag is commonly used to embed a YouTube video?
Analysis & Theory
YouTube videos are typically embedded using the `<iframe>` tag.
Which attribute in the `<iframe>` tag is used to specify the YouTube video URL?
Analysis & Theory
`src` defines the source of the embedded content, such as a YouTube video URL.
Which attribute allows the YouTube video to enter fullscreen mode?
Analysis & Theory
`allowfullscreen` enables the fullscreen button on the YouTube player.
Which part of a YouTube embed URL identifies the specific video?
C
The video ID in the URL
Analysis & Theory
The video ID (like `dQw4w9WgXcQ`) uniquely identifies the video in the embed URL.
Which URL format is used for embedding YouTube videos in `<iframe>`?
A
https://youtube.com/watch?v=...
B
https://youtube.com/embed/...
C
https://youtube.com/video?id=...
D
https://youtube.com/share/...
Analysis & Theory
YouTube's embedded videos use the `/embed/` URL format inside the iframe `src`.
What does adding `?autoplay=1` to the YouTube embed URL do?
B
Plays the video automatically on load
Analysis & Theory
Adding `?autoplay=1` causes the video to start playing as soon as the page loads.
Which tag is NOT recommended for embedding YouTube in modern HTML?
Analysis & Theory
`<video>` cannot play YouTube-hosted videos directly; use `<iframe>` instead.
How can you control a YouTube video’s size in HTML?
B
Setting the width and height attributes in `<iframe>`
C
Changing the YouTube settings
D
Using the `<video>` tag
Analysis & Theory
`width` and `height` attributes in the `<iframe>` control the displayed video size.
What does adding `?loop=1&playlist=VIDEO_ID` do in a YouTube embed URL?
C
Loops the video continuously
D
Shows a related playlist
Analysis & Theory
To loop a YouTube video, you must add `?loop=1` and repeat the video ID in the `playlist` parameter.
Is it possible to embed a YouTube playlist using `<iframe>`?
A
No, only single videos are supported
B
Yes, by using a special playlist URL
C
Yes, using `<playlist>` tag
Analysis & Theory
YouTube allows embedding entire playlists using the playlist URL with `/embed/videoseries?list=...`.