Loading

Iframes

  • An <iframe> (short for "inline frame") allows you to embed another HTML document within the current document.
  • It's commonly used to display external content, such as a web page or media, within a designated area of a webpage.

Syntax:

<iframe src="url"></iframe>

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Example</title>
</head>

<body>
    <h3>Iframe example</h3>
    <iframe src="https://www.youtube.com/embed/VIDEO_ID" width="560" height="315" ></iframe>
</body>

</html>

Output: