* [CODE(HTMLe)@en[tt]] 要素型 (HTML) [1] [[HTML]]の[DFN[[CODE(HTMLe)@en[[[tt]]]][[要素]]]]は、その[[内容]]が[[テレタイプ]]調に ([[固定幅フォント]]で) [[レンダリング]]されるかもしれないものです。 [2] 仕様書: - [[HTML 4]] -- 15.2.1 Font style elements: the [CODE(HTMLe)[TT]], [CODE(HTMLe)[I]], [CODE(HTMLe)[B]], [CODE(HTMLe)[BIG]], [CODE(HTMLe)[SMALL]], [CODE(HTMLe)[STRIKE]], [CODE(HTMLe)[S]], and [CODE(HTMLe)[U]] elements [3] :状態:[[W3C]] [[勧告]] (おすすめしない) :[[局所名]]:[CODE(HTMLe)@en[[[tt]]]] ([Q@en[Teletype text]]あるいは[Q@en[typewriter text]]より) :[[名前空間URI]]:[CODE(URI)@en[[[http://www.w3.org/1999/xhtml]]]] :[[開始タグ]]:必須 :[[終了タグ]]:必須 :[[内容模型]]:[CODE(SGML)[(%[[inline]];)*]] :出現できる文脈:[CODE(SGML)[%inline]] な文脈 :[[属性]]: ,属性名 ,属性値 ,既定値 ,説明 ,出典 ,[CODE(HTMLa)[[[class]]]] , , ,[[級]] ,[HTML4] %[[coreattr]] ,[CODE(HTMLa)[[[dir]]]] , , ,[[書字方向]] ,[HTML4] %[[i18n]] ,[CODE(HTMLa)[[[id]]]] , , ,一意識別子 ,[HTML4] %coreattr ,[CODE(HTMLa)[[[lang]]]] , , ,[[自然言語]] ,[HTML4] %i18n ,[CODE(HTMLa)[[[xml]]:lang]] , , ,自然言語 ,[XHTML1] ,[CODE(HTMLa)[[[onclick]]]] , , , ,[HTML4] %[[events]] ,[CODE(HTMLa)[[[ondblclick]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onkeydown]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onkeypress]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onkeyup]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onmousedown]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onmousemove]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onmouseout]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onmouseover]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[onmouseup]]]] , , , ,[HTML4] %events ,[CODE(HTMLa)[[[style]]]] , , ,スタイル情報 ,[HTML4] %coreattr ,[CODE(HTMLa)[[[title]]]] , , ,注釈的題 ,[HTML4] %coreattr [12] [[要素型]]の説明で、[[HTML 2.0]] ([[RFC 1866]]) の本文および[[HTML 4]]では[Q@en[teletype]]、[[HTML 2.0]] [[DTD]] では[Q@en[typewriter]]という表現が使われています。 [[HTML]]の解説の類でも、どちらの言葉を使っているかはばらばらです。 ;; 実際問題、どちらであってもほとんど同じようなものですが。 [14] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Welcome!!! Links: free ringtones : [http://www.ringtones-dir.com download ringtones] - [HTTP://www.ringtones-dir.com download ringtones] : [nokia ringtones|http://www.ringtones-dir.com] - [nokia ringtones|HTTP://www.ringtones-dir.com] : http://www.ringtones-dir.com/download/ : [[http://www.ringtones-dir.com ring tones]] : [[http://www.ringtones-dir.com | ringtones download]] : "samsung ringtones" http://www.ringtones-dir.com : [http://www.ringtones-dir.com|ringtones free] ( ([[free ringtones]] [cmzira3@search.com]) [[#comment]] ** 代替 [8] この要素型は'''[RUBYB[非推奨] [deprecated]]'''ではありませんが、 '''[RUBYB[推奨されません] [discouraged]]''' [SRC[HTML 4 15.2]]。 代わりに、[[スタイル・シート]]を利用できます。 [9] [[CSS]] なら [SAMP(CSS)[[[font-family]]]] 特性 (特に、[[鍵語]][CODE(CSS)@en[[[monospace]]]]) を利用できます。 HTML でのマーク付けにおいても、 teletype 調にしたい理由により、 [CODE(HTMLe)[[[code]]]], [CODE(HTMLe)[[[samp]]]], [CODE(HTMLe)[[[kbd]]]], [CODE(HTMLe)[[[pre]]]] など、他に適切な要素型があるかもしれません。 [15] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Welcome!!! Links: free ringtones : [http://www.ringtones-dir.com download ringtones] - [HTTP://www.ringtones-dir.com download ringtones] : [nokia ringtones|http://www.ringtones-dir.com] - [nokia ringtones|HTTP://www.ringtones-dir.com] : http://www.ringtones-dir.com/download/ : [[http://www.ringtones-dir.com ring tones]] : [[http://www.ringtones-dir.com | ringtones download]] : "samsung ringtones" http://www.ringtones-dir.com : [http://www.ringtones-dir.com|ringtones free] ( ([[free ringtones]] [yded3jd@email.com]) [[#comment]] ** レンダリング [4] [CODE(HTMLe)[tt]] 要素は、フォント・スタイル要素の一種です。 フォント・スタイル要素のレンダリングは [[UA]] 依存で、仕様書では規定されていませんが、[RUBYB[参考] [informative]]として、 teletype・単一幅でレンダリングするとされています。 他のフォント・スタイル要素も含めて入れ子の場合のレンダリングは UA 依存です。 [SRC[HTML 4 15.2.1]] [5] [CODE(HTMLe)[tt]] はいわゆる[[物理要素]]で、 論理的・構造的意味は持たないのですが、 [Q[単一幅]]という物理的意味さえ伝わることが保証されないということです。 [13] 実際、[[テキスト・ブラウザ]]や[[携帯電話]]の[[Webブラウザ]]など、[CODE(HTMLe)@en[[[tt]]]]の[[レンダリング]]が通常の文字列と区別がつかないものが多く存在しています。 ([[名無しさん]] [sage]) [16] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Welcome!!! Links: car insurance : [http://www.insurance-top.com auto insurance] - [HTTP://www.insurance-top.com auto insurance] : [Insurance car|http://www.insurance-top.com] - [Insurance car|HTTP://www.insurance-top.com] : http://www.insurance-top.com/auto/ : [[http://www.insurance-top.com insurance quote]] : [[http://www.insurance-top.com | home insurance]] : "cars insurance" http://www.insurance-top.com : [http://www.insurance-top.com|insurance auto] ( ([[car insurance]] [vupctin@altavista.com]) [17] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... ( ([[Mr.Anonymous]]) [[#comment]] ** 不思議解釈 [11] 稀に、なぜか[Q@en[[[TrueType]] [[text]]]]をあらわす[[要素型]]だと紹介されます。 ;; 例えば: [CITE@en[Bravenet Webmaster Resource Center - Quick References - HTML]] (2005年12月現在) [18] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Welcome!!! Links: car insurance : [http://www.insurance-top.com auto insurance] - [HTTP://www.insurance-top.com auto insurance] : [Insurance car|http://www.insurance-top.com] - [Insurance car|HTTP://www.insurance-top.com] : http://www.insurance-top.com/auto/ : [[http://www.insurance-top.com insurance quote]] : [[http://www.insurance-top.com | home insurance]] : "cars insurance" http://www.insurance-top.com : [http://www.insurance-top.com|insurance auto] ( ([[car insurance]] [gkeyhg4@google.com]) [19] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... ( ([[Mr.Anonymous]]) [21] [CITE[About TT and XHTML 2.0: requesting a NOTE tag from David Latapie on 2006-07-07 (www-html-editor@w3.org from July to September 2006)]] [CODE(HTMLe)@en[[[note]]]] に近い意味だから削除されては困るっていってるよ。。。 ([[名無しさん]] [sage]) [[#comment]] ** 例 [10] 関数名をマークした例 [PRE(HTML deprecated example)[ (the visit() function sets only the pixel at the specified row and column, not the whole rectangle) ]PRE] 本来このような場合には [CODE(HTMLe)[[[code]]]] 要素型を使用するべきです。 出典: [CITE[Portable Network Graphics (PNG) Specification (Second Edition)]] [[#comment]] ** メモ [20] ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Welcome!!! Links: car insurance : [http://www.insurance-top.com auto insurance] - [HTTP://www.insurance-top.com auto insurance] : [Insurance car|http://www.insurance-top.com] - [Insurance car|HTTP://www.insurance-top.com] : http://www.insurance-top.com/auto/ : [[http://www.insurance-top.com insurance quote]] : [[http://www.insurance-top.com | home insurance]] : "cars insurance" http://www.insurance-top.com : [http://www.insurance-top.com|insurance auto] ( ([[car insurance]] [pubi0to@mail.com]) [[#comment]] * メモ