HTML ul li project tag

 The HTML <ul> tag is used to define an unsorted list of items. If you need a sorted list of items, please refer to: HTML ol li item tag . HTML <ul> tags are used in the same way as normal HTML tags, starting with one <ul> and ending with one</ul>. All the project packages are between the <ul></ul> tags to become a complete The item list group is usually used to display individual items as the <li></li> tag, which can be used to display text lists or hyperlink lists, etc. It is a common list display technique for web page article content layout.


HTML <ul><li> basic syntax
<ul>
 <li></li>
 <li></li>
 <li></li>
 ...
</ul>
In a set of <ul></ul> tags, in principle, there can be an array of <li><li> tags, which are used to indicate the content of different items. All major browsers support <ul><li></li> </ul> The wording of the item tag group, beautifying the text or bullets of each item can be processed through CSS syntax.

HTML <ul><li> example description
<ul>
 <li>Monday</li>
 <li>Tuesday</li>
 <li>Wednesday</li>
</ul>
The output of the above example
  • Monday
  • Tuesday
  • Wednesday
From the output of the example, you can see that the <ul> tag itself does not display what kind of content, but it occupies a bullet group space in the code, so that each <li> item can be in this space Display, <li></li> tags are arranged vertically in principle, if you want to show the effect of horizontal arrangement, you can use CSS to do it.

Post a Comment

0 Comments