SyntaxStudy
Sign Up
HTML Common iframe Attributes
HTML Beginner 4 min read

Common iframe Attributes

iframe Attributes

Key iframe attributes control size, border, loading behavior, and security. Understanding them helps embed content correctly and safely.

Example
<iframe
  src="page.html"
  width="100%"
  height="500"
  title="Content frame"
  loading="lazy"
  frameborder="0"
  scrolling="auto"
  referrerpolicy="no-referrer"
></iframe>
Pro Tip

frameborder is deprecated — use CSS border: none on the iframe instead.