<iframe>要素の HTML5 での変更点は、frameborder属性・marginheight属性・marginwidth属性・scrolling属性・longdesc属性・align属性・scrolling属性が廃止されたこと。 代わりに新しく、srcdoc属性・seamless属性・sandbox属性が追加されました。 インラインフレームを配置してみよう ●サンプル1:インラインフレームの基本形 src属性で、別のHTMLファイルを指定するのが基本形です。 サイズを指定しなければ、デフォルトサイズ (300px×150px)になります。 <iframe src="smp63_1.html"></iframe> サイズを指定すると、こんなかんじ。 <iframe src="smp63_1.html" width="280" height="120"></iframe> width
![[63] インラインフレームで 他のHTMLファイルを組み込もう iframe要素](https://cdn-ak-scissors.b.st-hatena.com/image/square/592027f3e8ef20097cc905941f6f4f240992b1ad/height=288;version=1;width=512/https%3A%2F%2Fblog-imgs-45.fc2.com%2Fh%2Fo%2Fn%2Fhonttoni%2Ftsubu_icon2s.jpg)