目次 < 名前順要素一覧 戻る

バナー

中年おっちゃんでも出来た ウェブページ作成講座 with ? mark

フレーム

フレーム関連要素解説ページ - ( フレーム対応のブラウザで閲覧して下さい。 )
フレーム関連要素解説ページの説明

W3C - HTML Techniques for Web Content Accessibility Guidelines 1.010 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:

10 フレーム

フレームは、視覚系ユーザーでは、1つのページを分割して表示するでしょう。非視覚系ユーザーの為には、構造の相互関係(例えば、目次のフレームと、その内容)を別の方法で伝えるでしょう。

現在実装されているFRAME(FRAMESET,FRAME,IFRAME を含む)要素は、未解決の問題があります。

  • スクリプトを使用しないと、ブラウザの『前ページ』の機能が働かなくなる場合があります。
  • 現在の状態は、FRAMESET要素の記述してあるURIから参照出来ません。一旦FRAMESET要素で内容を変更すれば、オリジナルのURIはもはや当てはまりません。
  • フレームを新しいウインドウで開くことは、ユーザーを混乱させるか単に悩ますだけです。

W3C - HTML 4.01 Specification16.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.

注意. FRAMESET要素の定義が変わる事は有りません。しかし、各フレームの内容は変わります。一旦フレームの内容が変更されれば、FRAMESET要素の定義は、現状の構造を反映しません。

RAMESET要素で表示されている現状の構造を、1つのURIにコード化する方法はありません。したがって、多くのUAで、現状をブックマークに登録することが出来ません。

FRAMESET要素を使用する事は、UAの履歴を辿って進んだり戻ったりする事を、困難にします。

フレーム関連要素解説ページの説明

フレーム関連要素解説ページは、次の様に画面を左右にフレーム2分割しています。

メニュー部
name : --
URI : samp.f_mn.html
巾 : 20%
高さ : *

内容
name : cn
URI : samp.f_cn.html
巾 : *
高さ : *

上記フレーム分割のページを表示させる記述

<?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>

目次 < 名前順要素一覧 戻る Top

Created:Jun 01, 2005 Updated:Oct.,25,2011 © by おっちゃん
Oct.,25,2011 全面更新