HTML list
The structure of the list
The HTML list element is a structure enclosed by a list tag, and the included list items are composed of <li></li> .
Making an unordered list
As the name suggests, an unordered list means that the list items in the list structure have no order. List form. Lists in most web applications use unordered lists, and their list tags use <ul></ul>. The writing method is as follows:
<ul>
<li>List items One</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li> ;
<li>List item five</li>
</ul>
Making an ordered list
As the name suggests , an ordered list is a list form in which the list items in the list structure are in order. There can be various sequence numbers from top to bottom, such as 1, 2, 3 or a, b, c, etc.
Write the code as shown in the code.
<html> <head> <title>列表的设置</title> </head> <body> <font size="5"> 网页前台技术 <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> <li>FLASH</li> </ul> 网页后台的学习 <ol> <li>ASP</li> <li>ASP.net</li> <li>PHP</li> <li>CGI</li> <li>Ruby</li> <li>Python</li> </ol> </font> </body> </html>
Make a custom list
A definition list semantically represents a combination of items and their comments. It starts with the <dl> tag (definition lists) , the custom list item starts with <dt> (definition title), and the definition of the custom list item starts with <dd> (definition description).
<dl>
#<dt>CSS</dt>
<dd>CSS concepts</dd> <dd>CSS applications</dd>
<dd>CSS hacks</dd>
< ;/dl>