What is iframe used for?

An iframe, also known as an inline frame, is used to embed another HTML document within the current HTML document. This allows you to display content from another website within your own webpage, or to embed a video, map, or other interactive component from another source. Iframes are commonly used for displaying advertisements, video and audio players, maps, and web applications. They provide a flexible and powerful way to integrate multiple sources of content into a single webpage.