iframe Attributes
Key iframe attributes control size, border, loading behavior, and security. Understanding them helps embed content correctly and safely.
Key iframe attributes control size, border, loading behavior, and security. Understanding them helps embed content correctly and safely.
<iframe
src="page.html"
width="100%"
height="500"
title="Content frame"
loading="lazy"
frameborder="0"
scrolling="auto"
referrerpolicy="no-referrer"
></iframe>
frameborder is deprecated — use CSS border: none on the iframe instead.