0

私はちょうど xhtml を学んでいて、私たちの先生は私たちの段落タグの間にこの引用を求めています:

"Definition lists are lists of terms and their definitions. They are a little different than ordered and unordered lists in that the items are listed in pairs. The dl and dl surround the list. The name of the term appears between dt and dt, and the definition is between dd and dd."

しかし、タグを挿入すると、出力は次のようになります。 <> を定義タグとして解釈させずに配置するにはどうすればよいですか?

"Definition lists are lists of terms and their definitions. They are a little different than ordered and unordered lists in that the items are listed in pairs. The <dl> and </dl> surround the list. The name of the term appears between<dt> and </dt>, and the definition is between <dd> and </dd>."

4

2 に答える 2

1

これを試して:

「定義リストは、用語とその定義のリストです。アイテムがペアでリストされているという点で、順序付きリストや順序なしリストとは少し異なります。< dl > と < dl > はリストを囲んでいます。用語の名前は < の間に表示されます。 dt > と < dt > であり、定義は < dd > と < dd > の間にあります。"

于 2013-02-06T11:20:44.597 に答える
1

ご存知のように、文字<>、および&(X)HTML では特別な意味があります。&lt;それぞれ、 、&gt;、 と書くことで、それらをエスケープできます (また、エスケープする必要があります) &amp;

この記事の「エスケープを使用する場合」セクションも参照してください。

于 2013-02-05T11:15:31.283 に答える