フレーム関連要素解説ページ - ( フレーム対応のブラウザで閲覧して下さい。 )
フレーム関連要素解説ページの説明
W3C - HTML Techniques for Web Content Accessibility Guidelines 1.0 → 10 Frames より
10 Frames
For visually enabled users, frames may organize a page into different zones. For non-visual users, relationships between the content in frames (e.g., one frame has a table of contents, another the contents themselves) must be conveyed through other means.
Frames as implemented today (with the FRAMESET, FRAME, and IFRAME elements) are problematic for several reasons:
- Without scripting, they tend to break the "previous page" functionality offered by browsers.
- It is impossible to refer to the "current state" of a frameset with a URI; once a frameset changes contents, the original URI no longer applies.
- Opening a frame in a new browser window can disorient or simply annoy users.
10 フレーム
フレームは、視覚系ユーザーでは、1つのページを分割して表示するでしょう。非視覚系ユーザーの為には、構造の相互関係(例えば、目次のフレームと、その内容)を別の方法で伝えるでしょう。
現在実装されているFRAME(FRAMESET,FRAME,IFRAME を含む)要素は、未解決の問題があります。
- スクリプトを使用しないと、ブラウザの『前ページ』の機能が働かなくなる場合があります。
- 現在の状態は、FRAMESET要素の記述してあるURIから参照出来ません。一旦FRAMESET要素で内容を変更すれば、オリジナルのURIはもはや当てはまりません。
- フレームを新しいウインドウで開くことは、ユーザーを混乱させるか単に悩ますだけです。
W3C - HTML 4.01 Specification → 16.3 Specifying target frame information より
Note. A frameset definition never changes, but the contents of one of its frames can. Once the initial contents of a frame change, the frameset definition no longer reflects the current state of its frames.
There is currently no way to encode the entire state of a frameset in a URI. Therefore, many user agents do not allow users to assign a bookmark to a frameset.
Framesets may make navigation forward and backward through your user agent's history more difficult for users.
フレーム関連要素解説ページは、次の様に画面を左右にフレーム2分割しています。
メニュー部 |
内容 |
上記フレーム分割のページを表示させる記述
<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xml:lang="ja-JP" lang="ja-JP" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=Shift_JIS" />
<link rev="made" href="・・・・" />
<link rel="index" href="index.html" />
<title>フレーム関連要素解説</title>
</head>
<frameset title="フレームを左右2分割します" cols="20%,*" rows="*">
<frame title="左フレームの表示" src="samp.f_mn.html" frameborder="0" />
<frame title="右フレームの表示" src="samp.f_cn.html" id="cn" name="cn" />
<noframes>
<body>
ご利用中のブラウザは、フレームに対応していないか
フレームを表示しないよう設定されているようです。
<a href="framek.html">フレームの概説</a>に戻ります。
</body>
</noframes>
</frameset>
</html>