Home Web Front-end HTML Tutorial Introduction to html lists for HTML learning (code examples)

Introduction to html lists for HTML learning (code examples)

Oct 16, 2018 pm 04:26 PM
html li ol list

This article will bring you an introduction to html lists for HTML learning, through simple code examples. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

1, renderings.

##Two, code.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

<!DOCTYPE html><html><head>    <meta charset="utf-8">    <title>html 列表</title></head><body>    <!--无序列表-->    <h4>An Unordered list</h4>    <ul>        <li>Cofferr</li>        <li>tea</li>        <li>Mide</li>    </ul>    <!--有序列表-->    <ol start="50">        <li>Cooffee</li>        <li>Tea</li>        <li>Mike</li>    </ol>    <!--自定义列表-->    <dl>        <dt>Coffer</dt>        <dd>--black hot drink</dd>        <dt>mike</dt>        <dd>--white cold drink</dd>    </dl>    <!--不同类型的有序列表-->    <h4>Numbered list:</h4>    <ol>        <li>apples</li>        <li>bananas</li>        <li>lemons</li>        <li>orange</li>    </ol>    <h4>letters list:</h4>    <ol type="A">        <li>apples</li>        <li>bananas</li>        <li>lemons</li>        <li>orange</li>    </ol>

    <h4>Lowercase  letters list:</h4>

    <ol type="a">

        <li>apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ol>

    <h4>Roman numbers list:</h4>

    <ol type="I">

        <li>apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ol>

    <h4>lowercase Roman numbers list:</h4>

    <ol type="i">

        <li>apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ol>

    <!--不同类型的无序列表-->

    <p><b>Note:</b> The type attribute of the ul tag is deprecated in HTML 4, and is not supported in HTML5. Therefore we have used the style attribute and the CSS list-style-type property, to define different types of unordered lists below:</p>

    <h4>disc bullets list:</h4>

    <ul style="list-style-type:disc">

        <li>Apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ul>

    <h4>circle bullets list:</h4>

    <ul style="list-style-type:circle">

        <li>Apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ul>

    <h4>square bullets list:</h4>

    <ul style="list-style-type:square">

        <li>Apples</li>

        <li>bananas</li>

        <li>lemons</li>

        <li>orange</li>

    </ul>

    <!--嵌套列表-->

    <h4>A list inside a list:</h4>

    <ul>

        <li>Coffee</li>

        <li>Tea</li>

        <ul>

            <li>black tea</li>

            <li>green tea</li>

        </ul>

        <li>Mike</li>

    </ul>

    <!--嵌套列表2-->

    <h4>lists inside a list</h4>

    <ul>

        <li>coffee</li>

        <li>tea

            <ul>

                <li>black tea</li>

                <li>green tea

                    <ul>

                        <li>china</li>

                        <li>africa</li>

                    </ul>

                </li>

            </ul>

        </li>

        <li>mick</li>

    </ul>

    <!--自定义列表-->

    <h4>A definition List</h4>

    <dl>

        <dt>coffee</dt>

        <dd>-black hot drink</dd>

        <dt>mike</dt>

        <dd>-white cold drink</dd>

</body>

 

</html>

Copy after login

Reference: "Rookie Tutorial"

Summary: The above is the entire content of this article, I hope it will be helpful to everyone's learning. For more related tutorials, please visit

HTML Video Tutorial, Html5 Video Tutorial, bootstrap Video Tutorial!

The above is the detailed content of Introduction to html lists for HTML learning (code examples). For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles