Trong baøi 6 chuùng ta ñaõ bieát caùch ñeå taïo hai loaïi danh saùch: coù thöù töï <ol>...</ol> vaø khoâng coù thöù töï <ul>...</ul>. Baây giôø, chuùng toâi seõ giôùi thieäu moät daïng thöù ba, danh saùch moâ taû. Khoâng gioáng nhö nhöõng loaïi danh saùch chuùng ta ñaõ thaáy tröôùc ñaây, danh saùch moâ taû ñaùnh daáu caùc muïc cuûa noù khoâng phaûi laø moät daáu chaám hoaëc moät soá maø baèng daïng trình baøy thuït vaøo trong cuûa noù.
Daïng cuûa tag danh saùch moâ taû laø :
<dl>
<dt> description title1
<dd> description description1
<dt> description title2
<dd> description description2
:
:
:
<dt> description titleN
<dd> description descriptionN
</dl>
Tag <dl> .... </dl> chöùa trong noù nhieàu caëp tieâu ñeà moâ taû (description
title) <dt> vaø söï moâ taû (description) <dd>
Moät Web browser seõ taïo thaønh moät danh saùch vôùi moãi moâ taû ñöôïc trình baøy thuït vaøo
so vôùi tieâu ñeà cuûa noù.
Khi nhìn trong Web browser ví duï treân seõ troâng gioáng nhö sau:
- description title1
- description description1
- description title2
- description description2
- :
- :
- description titleN
- description descriptionN
Moät danh saùch moâ taû coù theå ñöôïc söû duïng nhö laø moät töï ñieån (glossary) caùc ñònh nghóa, nhöng trong ví duï chuùng ta, chuùng ta seõ duøng noù ñeå taïo moät thö muïc saùch ngaén cho baøi Volcano Web:
<h3>Bibliography</h3> Check your library for these books: <dl> <dt>Cas, R.A.F. and Wright, J. V. (1987). <dd><I>Volcanic Successions: Modern and Ancient.</I> London: Allen & Unwin. <dt>La Croix, A. (1904) <dd><I>La Montagna Pelée et ses Éruptions.</I> Paris: Masson <dt>Lipman, P.W. and Mullineaux (eds). (1981) <dd><I>The 1980 Eruptions of Mount St. Helens, Washington. </I>U.S. Geological Survey Professional Paper 1250. </dl>
Chuù yù: Chuùng ta ñaõ söû duïng moät soá Kyù töï Ñaëc bieät cho daáu vaø ("&") trong tham khaûo ñaàu tieân vaø daáu nhaán cho tham khaûo thöù hai. Neáu baïn chöa quen vôùi caùc kyù töï ñaëc bieät cuûa HTML, xem laïi baøi 10
<dl>
<dt><b>Oxides</b>
<dd>Combinations of metal ions with Oxygen, comprises the major
ores extracted in mining operations
<ul>
<li>Hematite (iron ore)
<li>Magnetite (iron ore, magnetic mineral)
<li>Corundum (gemstone, abrasive)
</ul>
<dt><b>Sulfates</b>
<dd>Metal ions combines with the Sulfate ion (SO4), atomic
structure sometimes can allow bonding of water molecules
<ul>
<li>Gypsum (plaster)
<li>Barite (drilling mud)
</ul>
</dl>
The Internet Connection at MCLI is
Alan Levine --}
Comments to levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/tut/tut11.html