<portal>
<portal> Tag
The <portal> HTML element is an experimental feature that enables embedding another web page within the current document, allowing a seamless transition to the embedded content.
Syntax
<portal src="URL"></portal>
Portal Demo
<portal src="https://institute.qarpeo.com">Qarpeo</portal>
Key Points
- Purpose: Provides a preview of an external page, allowing smooth navigation to it.
- Difference from
<iframe>: Unlike<iframe>, content within a<portal>cannot be interacted with, making it unsuitable for embedding interactive elements.
Attributes
src: Specifies the URL of the external page to be embedded.referrerpolicy: Determines the referrer policy for requests made to the embedded page.
Conclusion
The <portal> HTML element is an experimental feature designed to allow embedding another web page within the current document. It provides a seamless way to preview external content, enabling easy navigation. Unlike <iframe>, the embedded content within <portal> cannot be interacted with, making it unsuitable for embedding interactive elements.
<param>
The HTML <param> element defines settings or configuration values for embedded content within an <object> element, though it is now largely obsolete and replaced by modern methods.
<source>
The HTML <source> element defines various media sources for <audio> or <video> elements, enabling the browser to choose the best format or quality according to user preferences and device capabilities.