<frame src="">
ブラウザ |
|
---|---|
分類 | |
要素 |
frame要素に src=""
を追加すると、フレーム内に別の文書を読み込むことができます。この要素は、frameset要素の中で使用します。
<frame src="example.html">
属性 | 値 | 説明 |
---|---|---|
src="" |
URI | フレーム内に表示する文書のURIを指定 |
使用例
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>文書のタイトル</title>
</head>
<frameset cols="200,*">
<frame src="example_a.html" name="menu" title="メニュー">
<frame src="example_b.html" name="contents" title="コンテンツ">
<noframes>
<body>
<p>フレームの代替内容</p>
</body>
</noframes>
</frameset>
</html>
- 表示例