Top → このサイトについて


このサイトについて


規格


後述

本サイトでは、インデントを行うために <BLOCKQUOTE> を使用しています。 主に、コマンドラインに打ち込んだ内容を表すのに使っています。 ソースを見ると、

<BLOCKQUOTE>
<pre>
インデントのつもりだよもん
</pre>
</BLOCKQUOTE>

のように書かれてます。本来ならば、<BLOCKQUOTE> は「引用」を表すものですので、このような使い方は駄目なのでしょう。

一方、w3c の勧告BLOCKQUOTE の部分を読むと

Note. We recommend that style sheet implementations provide a mechanism for inserting quotation marks before and after a quotation delimited by BLOCKQUOTE in a manner appropriate to the current language context and the degree of nesting of quotations.

However, as some authors have used BLOCKQUOTE merely as a mechanism to indent text, in order to preserve the intention of the authors, user agents should not insert quotation marks in the default style.

The usage of BLOCKQUOTE to indent text is deprecated in favor of style sheets.

とか書いてあります。ええっと、配慮してくれるんでしょうか?。 もっとも、「BLOCKQUOTE はインデントしろ」とは決められていないので、インデントしてくれるかどうかもブラウザ依存なのでしょうが。

<pre> が入っているのは、BLOCKQUOTE で文字が斜体になるブラウザがあるので、 それを嫌ったためです。

ここらへんは、TA でコンピューターリテラシーの教材を書いたときに、 どうしようか非常に悩んだのですが・・・。


TOP に戻る