1

Is it possible to put html directly inside iframe in my html template? Is something like this valid?

<iframe>
  <html>
    <head>
    </head>
    <body>
      <p>Hello world</p>
    </body>
  </html>
</iframe>
clime
  • 8,695
  • 10
  • 61
  • 82

2 Answers2

1

As far as I know, you have to put a link into an iframe to work. That means you need to make another HTML file and make <iframe src="pagename.html"></iframe>

Arpad Gabor
  • 15,184
  • 4
  • 16
  • 21
0

This only works on browsers that don't support the iframe element. Any decent browser will recognize it as an iframe and disblay a blank square instead.

CCH
  • 1,516
  • 1
  • 13
  • 24