HTML Questions & Answers Logo
HTML Questions & Answers Part of the Q&A Network
Q&A Logo

How do I embed an external webpage with an <iframe>?

Asked on Sep 25, 2025

Answer

To embed an external webpage using an <iframe>, you need to specify the URL of the page you want to embed in the src attribute of the <iframe> tag. This allows you to display another webpage within your current page.
<!-- BEGIN COPY / PASTE -->
    <iframe src="https://www.example.com" width="600" height="400" title="Example Website"></iframe>
    <!-- END COPY / PASTE -->
Additional Comment:
  • The width and height attributes set the size of the <iframe> on your page.
  • Always include a title attribute for accessibility purposes, describing the content of the <iframe>.
  • Some websites may restrict embedding through <iframe> due to security policies.

✅ Answered with HTML best practices.


← Back to All Questions
The Q&A Network