Lista HTML necomandată - Sintaxa și tipuri de atribute cu exemple

Cuprins:

Anonim

Introducere în Lista HTML necomandată

În această secțiune Lista de ordine HTML, vom introduce cum să implementăm listele în HTML. Cum se descrie sau se afișează o listă neordonată? Este foarte simplu și ușor, sunt utilizate pentru a descrie lista de informații din conținut în orice ordine (toate părțile listei rămân la fel). Lista, în general, creează un grup de informații și este generată într-o manieră bine structurată. Și o altă tehnică este că putem încorpora proprietatea în stil CSS. Cele trei tipuri de liste pe care le-am putea folosi pentru a aduce ordine pe paginile web. Mai jos sunt diferite tipuri:

  1. Lista ordonata
  2. Lista neordonata
  3. Lista definițiilor

În acest articol, vom parcurge specificația listei neordonate cu un exemplu. Lista neordonată este o listă care nu necesită nicio ordine de numerotare în lista lor, în schimb folosim buline pentru nivelurile listei.

Sintaxa listei HTML neordonate

Sintaxa pentru lista neordonată este similară cu lista ordonată pe care am creat-o în articolul precedent. Lista neordonată este creată folosind un element numit

    element și se termină cu
etichetă. Elementul listei este încorporat în
    element.


      ………..

      ………..

    Exemplul # 1

    Acest lucru arată modul în care această listă scurtă de articole este implementată într-un browser.


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


      Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    • Demo on Unordered list

      Demo on Unordered list
      Ingredients for making of cake

      Baking Powder
      Flour
      Sugar
      Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder


    Demo on Unordered list

    Demo on Unordered list
    Ingredients for making of cake

    Baking Powder
    Flour
    Sugar
    Coco poder

    ieşire:

    Acest lucru vă va oferi rezultatul ca.

    Exemplul # 2

    Lista neordonată cu culori și pentru poziții.



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



      unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



      unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana



      unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    • unordered list Demo2

      Unordered Disc
      Lion
      Tiger
      Giraffe
      Camel
      Top Rhymes
      Johny Johny Yes papa
      Wheels on the Bus
      Baa Baa Black Sheep
      Fruits Name List
      Avacado
      Orange
      Pears
      Banana



    unordered list Demo2

    Unordered Disc
    Lion
    Tiger
    Giraffe
    Camel
    Top Rhymes
    Johny Johny Yes papa
    Wheels on the Bus
    Baa Baa Black Sheep
    Fruits Name List
    Avacado
    Orange
    Pears
    Banana

    ieşire:

    Tipuri de atribute pentru Lista HTML necomandată

    Pentru a figura lista neordonată, există trei tipuri principale de atribute pentru acest element neordonat. Lista neordonată este utilizată acolo unde nu este obligată să reprezinte listele în nicio ordine specifică. Următoarele secțiuni explică atributele și exemplele aferente.

    Acest atribut oferă tipul de gloanțe care vor fi utilizate în listă.

    • type = 'disc' - oferă structura implicită a buletinelor
    • type = 'square' - Arată ca niște gloanțe de cutie solide
    • type = 'cerc' - oferă structura casetei goale

    1. Tip atribut = 'disc'

    Acesta este tipul implicit și toate articolele sunt marcate drept gloanțe. Aici folosim atributul tip și toate aceste atribute acceptă în HTML 3, Pentru a defini sub HTML5, trebuie să implementăm CSS în stil de listă. Iată un exemplu demonstrativ.

    Exemplu


    Demo on Unordered list Types

    Demo on Unordered list Types
    This is Program Agenda.
    First a Welcome Note
    Second We Start with the talks
    Opening Speech
    Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
    Tea Break
    Last part from the topic Data Lake By Surendran Thomas.


    Demo on Unordered list Types

    Demo on Unordered list Types
    This is Program Agenda.
    First a Welcome Note
    Second We Start with the talks
    Opening Speech
    Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
    Tea Break
    Last part from the topic Data Lake By Surendran Thomas.


    Demo on Unordered list Types

    Demo on Unordered list Types
    This is Program Agenda.
    First a Welcome Note
    Second We Start with the talks
    Opening Speech
    Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
    Tea Break
    Last part from the topic Data Lake By Surendran Thomas.


      Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    • Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


        Demo on Unordered list Types

        Demo on Unordered list Types
        This is Program Agenda.
        First a Welcome Note
        Second We Start with the talks
        Opening Speech
        Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
        Tea Break
        Last part from the topic Data Lake By Surendran Thomas.


      • Demo on Unordered list Types

        Demo on Unordered list Types
        This is Program Agenda.
        First a Welcome Note
        Second We Start with the talks
        Opening Speech
        Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
        Tea Break
        Last part from the topic Data Lake By Surendran Thomas.


      • Demo on Unordered list Types

        Demo on Unordered list Types
        This is Program Agenda.
        First a Welcome Note
        Second We Start with the talks
        Opening Speech
        Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
        Tea Break
        Last part from the topic Data Lake By Surendran Thomas.


      Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    • Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    • Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    • Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    • Demo on Unordered list Types

      Demo on Unordered list Types
      This is Program Agenda.
      First a Welcome Note
      Second We Start with the talks
      Opening Speech
      Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
      Tea Break
      Last part from the topic Data Lake By Surendran Thomas.


    Demo on Unordered list Types

    Demo on Unordered list Types
    This is Program Agenda.
    First a Welcome Note
    Second We Start with the talks
    Opening Speech
    Mrs.Claria Winston from Ireland and Eyjolfur From Bank of America.
    Tea Break
    Last part from the topic Data Lake By Surendran Thomas.

    ieşire:

    2. Tipul atributului = 'pătrat'

    Aici articolele sunt marcate cu gloanțe pătrate.

    Exemplu

    Demonstrarea codului HTML cu glonțul pătrat încorporat cu culoarea stilului și poziția.




    ul (
    list-style: square;
    )
    ul li::before (
    content: "\1022";
    color: pink;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-left: -1em;
    )

    List of top hollywood movies-Square
    World Of the wars
    Mission Impossible
    Independence Day special
    Behind enemy lines




    ul (
    list-style: square;
    )
    ul li::before (
    content: "\1022";
    color: pink;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-left: -1em;
    )

    List of top hollywood movies-Square
    World Of the wars
    Mission Impossible
    Independence Day special
    Behind enemy lines




    ul (
    list-style: square;
    )
    ul li::before (
    content: "\1022";
    color: pink;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-left: -1em;
    )

    List of top hollywood movies-Square
    World Of the wars
    Mission Impossible
    Independence Day special
    Behind enemy lines




      ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    • ul (
      list-style: square;
      )
      ul li::before (
      content: "\1022";
      color: pink;
      font-weight: bold;
      display: inline-block;
      width: 0.8em;
      margin-left: -1em;
      )

      List of top hollywood movies-Square
      World Of the wars
      Mission Impossible
      Independence Day special
      Behind enemy lines




    ul (
    list-style: square;
    )
    ul li::before (
    content: "\1022";
    color: pink;
    font-weight: bold;
    display: inline-block;
    width: 0.8em;
    margin-left: -1em;
    )

    List of top hollywood movies-Square
    World Of the wars
    Mission Impossible
    Independence Day special
    Behind enemy lines

    ieşire:

    3. Tipul atributului = 'cerc'

    Acest atribut oferă valori goale goale. Mai jos sunt prezentate exemplul de atribut cerc și pătrat împreună cu listele imbricate.

    Exemplu


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


      EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia


      EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    • EDUCBA List Example
      ;style>
      h3(
      color:orange;
      )
      ul(
      list-style: none;
      )
      ul li::before (
      content: "\25AA";
      color: brown;
      display: inline-block;
      width: 1em;
      margin-left: -0.8em;
      font-weight: bold;
      font-size:1rem;
      )

      List of Mobiles
      Redmi Xiami
      Iphone
      Samsung
      Nokia
      Mobile Operating System Supports
      Android
      Windows phone
      Samsung
      Nokia


    EDUCBA List Example
    ;style>
    h3(
    color:orange;
    )
    ul(
    list-style: none;
    )
    ul li::before (
    content: "\25AA";
    color: brown;
    display: inline-block;
    width: 1em;
    margin-left: -0.8em;
    font-weight: bold;
    font-size:1rem;
    )

    List of Mobiles
    Redmi Xiami
    Iphone
    Samsung
    Nokia
    Mobile Operating System Supports
    Android
    Windows phone
    Samsung
    Nokia

    ieşire:

    Înlocuirea articolelor din lista HTML cu imagini personalizabile

    Acest lucru ar îmbunătăți, în cele din urmă, tema de ansamblu și face site-ul vizual bun. Buletele implicite sunt înlocuite cu stil autohton sau chiar personalizabile folosind imagini cu ajutorul CSS. De fapt vorbind, există trei liste de stil care trebuie utilizate în HTML. Aici mergem cu o imagine de tip listă și o imagine de listă.

    Utilizarea buletinului de imagine înseamnă a face listele mai unice și a diferenția informațiile în funcție de tip, Cu alte cuvinte, pentru a oferi prezentarea aspectul în pagina web.

    În exemplul de mai jos, exemplele sunt demonstrate prin proprietățile de stil dintre elementele listei.

    Exemplul # 1 - Proprietăți de stil între elementele listei



    HTML unordered list with Styles

    ul li (
    background: red;
    )
    ul.in.li (
    list-style: circle inside none;
    color: red;
    left: -20px;
    position: inside;
    text-align: left;
    width: 27px;
    )
    Finland is a Scandinavian Country
    Oslo is the capital city
    Iceland is known for its beauty, hiking, fishing
    Ranked among the chillness country in europe



      HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    • HTML unordered list with Styles

      ul li (
      background: red;
      )
      ul.in.li (
      list-style: circle inside none;
      color: red;
      left: -20px;
      position: inside;
      text-align: left;
      width: 27px;
      )
      Finland is a Scandinavian Country
      Oslo is the capital city
      Iceland is known for its beauty, hiking, fishing
      Ranked among the chillness country in europe



    HTML unordered list with Styles

    ul li (
    background: red;
    )
    ul.in.li (
    list-style: circle inside none;
    color: red;
    left: -20px;
    position: inside;
    text-align: left;
    width: 27px;
    )
    Finland is a Scandinavian Country
    Oslo is the capital city
    Iceland is known for its beauty, hiking, fishing
    Ranked among the chillness country in europe

    ieşire:

    Acest lucru va da rezultatul ca.

    Exemplul # 2 - Cu stil de imagine



    ul (
    list-style-image: url('sqpurple.gif');
    )

    The list-style- Demo



    ul (
    list-style-image: url('sqpurple.gif');
    )

    The list-style- Demo



    ul (
    list-style-image: url('sqpurple.gif');
    )

    The list-style- Demo

    Personaje Harry Potter:

    • dezgoli
    • Hermione
    • Ron În mod obișnuit

    ieşire:

    Concluzie

    Acum, că găsim cum să construim liste neordonate în HTML. Am văzut cum elementul de bloc neordonat joacă un rol în crearea de pagini web cu exemple diferite și am explorat unele caracteristici ale listei. Chiar și acest lucru poate fi utilizat în meniurile de navigare pentru a afișa vertical. Crearea listei neordonate este foarte simplă, este important să aveți în vedere unde să remediați această abordare pentru cel mai bun loc de biți. Cu alte cuvinte, documentul perfect preferă să folosească un format de listă HTML.

    Articole recomandate

    Acesta a fost un ghid pentru Lista HTML necomandată. Aici discutăm sintaxa și tipurile de atribute pentru Lista HTML neordonată cu exemple. De asemenea, puteți arunca o privire asupra articolelor următoare pentru a afla mai multe -

    1. Blocuri HTML
    2. Stiluri de listă HTML
    3. Etichete HTML de bază
    4. Comenzi HTML