1

W3Cバリデーターでこのコードがエラーを表示する理由「ここでは文字データは許可されていません」

<blockquote>all visible objects, man, are but as pasteboard masks. 
        But in each event -- in the living act, the undoubted 
        deed -- there, some unknown but still reasoning thing 
        puts forth the mouldings of its feature from behind 
        the unreasoning mask. If man will strike, strike 
        through the mask. All visible objects, man, are but as pasteboard masks. 
        But in each event -- in the living act, the undoubted 
        deed -- there, some unknown but still reasoning thing 
        puts forth the mouldings of its feature from behind 
        the unreasoning mask. If man will strike, strike 
        through the mask.</blockquote>

このバリデーターhttp://www.onlinewebcheck.com/でエラーは発生しません

4

3 に答える 3

3

タグ内にテキストを入れることはできません<blockquote><p>タグなどの別の要素でラップする必要があります。

<blockquote>
  <p>My text.</p>
</blockquote>
于 2010-06-10T16:17:32.757 に答える
1

Ablockquoteにテキストを直接含めることは想定されていません。テキストを検証する前に、単一のpタグまたは一連のタグでテキストをラップする必要があります。p

于 2010-06-10T16:16:50.357 に答える
0

注: blockquote 要素を厳密な HTML/XHTML として検証するには、次のように、要素に他のブロック レベルの要素のみを含める必要があります。

<blockquote> <p>ここに長い引用があります ここに長い引用があります</p> </blockquote>

ソース: w3schools.com

于 2010-06-10T16:20:45.823 に答える