HTML&CSS Basic Learning Note 14-sequence lists and list nesting

Source: Internet
Author: User

We talked about unordered lists in the last chapter, so let's take a look at the list of sequential tables and their combinations.

Ordered list

Now we're going to do the chores, but what's the first thing we can do to find so many chores? So we sort of prioritize this mess, so we can do it in order. The list item in HTML that uses <ol> tags to denote the,<ol> label of the sequence list is still represented by the <li> tag.

Its code template is this:

<span style= "Font-family:microsoft Yahei;" ><ol> <li></li> <li></li> ... </ol></span>

Let's see what his specific code implementation looks like:

<! DOCTYPE html> 

The browser results are:

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/1D/wKiom1fUtxWBjs1qAAAlGJT6WUE311.png-wh_500x0-wm_3 -wmp_4-s_3186581780.png "title=" 2.png "alt=" Wkiom1futxwbjs1qaaalgjt6wue311.png-wh_50 "/>

List nesting

We know that tags can be nested, so lists can also be nested. When some list items in our list are lists, we can use nesting.

Now let's look at an example of how unordered and ordered lists are nested:

<! Doctype html>  

What is the result? Go to the http://www.mayacoder.com/lesson/lesson?lesson_id=31&knowledge_id=4 experience to see it.

The results are as follows:

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/87/1B/wKioL1fUtyCAZDkMAAAYt0Cngpg225.png-wh_500x0-wm_3 -wmp_4-s_2551570162.png "title=" 3.png "width=" height= "340" border= "0" hspace= "0" vspace= "0" style= "width:180px; height:340px; "alt=" Wkiol1futycazdkmaaayt0cngpg225.png-wh_50 "/>


HTML&CSS Basic Learning Note 14-sequence lists and list nesting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.