</> Code Corner

HTML · HTML Tutorial · Lesson 25

HTML Iframes

Display a web page inside a web page.

An inline frame (<iframe>) is used to display a web page within a web page.

Example

<iframe src="https://example.com" width="100%" height="250" title="Example website"></iframe>
  • src — the URL of the page to show
  • title — describes the content for screen readers
  • width / height — the size

Remove the border

Keep reading “HTML Iframes”

Sign up to read the full lesson (3 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋