iframes (Inline Frames) in HTML are used to embed one HTML document within another. They are created using the `<iframe>` tag. You can specify the source document using the "src" attribute. It's commonly used to embed videos, maps, or other external content on a webpage.
Syntax:
<iframe width="570" height="320" src="https://www.youtube.com/embed/YOUR_VIDEO_ID" frameborder="0" allowfullscreen></iframe>
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Embedded Video Example</title>
</head>
<body>
<h2>Embedded YouTube Video</h2>
<iframe src="https://www.youtube.com/embed/E_SbwSe15y0?si=lFK31HryGnfMSW70" frameborder="0" allowfullscreen></iframe>
</body>
</html>
Output:
Embedded YouTube Video
Replace "YOUR_VIDEO_ID" with the actual video ID from the YouTube URL. This example demonstrates how to embed a YouTube video using an iframe. Adjust the width, height, and other attributes based on your requirements.