Uordnet HTML-liste - Syntaks og attributttyper med eksempler

Innholdsfortegnelse:

Anonim

Introduksjon til HTML uordnet liste

I denne HTML-uordnede listen-seksjonen introduserer vi hvordan du implementerer lister i HTML. Hvordan beskrive eller vise en uordnet liste? Det er veldig enkelt og enkelt, de brukes til å beskrive listen over informasjonen i innholdet i ordrer (alle delene av listen forblir den samme). Listen genererer generelt en gruppe informasjon og den genereres på en godt strukturert måte. Og en annen teknikk er at vi kan bygge inn CSS-stilegenskaper. De tre typene lister vi kunne bruke for å få orden på websidene. Nedenfor er de forskjellige typene:

  1. Bestilt liste
  2. Uordnet liste
  3. Definisjonsliste

I denne artikkelen skal vi gå gjennom den ikke-ordnede listespesifikasjonen med et eksempel. Den uordnede listen er en liste som ikke krever noen rekkefølge av nummerering i listen deres, i stedet bruker vi kuler for listenivåene.

Syntaks for HTML uordnet liste

Syntaksen for den uordnede listen er akkurat som den bestilte listen som vi opprettet i forrige artikkel. Uordnet liste opprettes ved hjelp av et element som heter

    element og slutter med
stikkord. Listeelementet er innebygd i
    element.


      ………..

      ………..

    Eksempel 1

    Dette viser hvordan denne korte varelisten implementeres i en nettleser.


    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

    Produksjon:

    Dette vil gi deg resultatet som

    Eksempel 2

    Uordnet liste med farger og for posisjonene.



    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

    Produksjon:

    Typer attributter for HTML-uordnet liste

    For å finne den uordnede listen, er det tre primære typer attributter for dette uordnede elementet. Den uordnede listen brukes der det ikke er påkrevd å representere listene i noen spesifikke ordrer. De følgende avsnittene forklarer tilhørende attributter og eksempler på det.

    Dette attributtet gir den typen kuler som skal brukes i listen.

    • type = 'plate' - Gir standard kulestruktur
    • type = 'firkant' - Ser ut som solide kassekuler
    • type = 'sirkel' - Gir hul boksstruktur

    1. Attributtype = 'plate'

    Dette er standardtypen, og alle elementene er merket som kuler. Her bruker vi type attributt og alle disse attributtene støtter i HTML 3. For å definere under HTML5 skal vi implementere CSS i listestil. Her er et eksempel på demo.

    Eksempel


    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.

    Produksjon:

    2. Attributtype = 'firkant'

    Her er varene merket med firkantede kuler.

    Eksempel

    Demonstrering av HTML-koden med den firkantede kulen innebygd med stilfarge og posisjon.




    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

    Produksjon:

    3. Attributtype = 'sirkel'

    Dette attributtet gir hule kuleverdier. Nedenfor er eksemplet rendering sirkel og firkant attributt sammen med de nestede listene.

    Eksempel


    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

    Produksjon:

    Bytte ut HTML-liste Elementer med tilpassbare bilder

    Dette vil til slutt forbedre det overordnede temaet og gjøre nettstedet visuelt bra. Standardkulene er erstattet av opprinnelig stil eller til og med kan tilpasses ved bruk av bilder ved hjelp av CSS. Egentlig er det tre stylelister som skal brukes i HTML. Her går vi med en liste-stil-type og en liste-stil-bilde.

    Å bruke bildekule er å gjøre listene mer unike og å differensiere informasjonen etter typen, med andre ord for å gi presentasjonen utseende på websiden.

    I eksemplet nedenfor demonstreres eksemplene med stilegenskaper mellom listeelementene.

    Eksempel 1 - Stilegenskaper mellom listeelementene



    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

    Produksjon:

    Dette vil gi ut effekten som

    Eksempel 2 - Med bildestil



    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

    Harry Potter-tegn:

    • Harry
    • Hermione
    • Ron Weasely

    Produksjon:

    Konklusjon

    Nå som vi kommer over hvordan du bygger uordnede lister i HTML. Vi har sett hvordan det uordnede blokkelementet spiller en rolle i å lage websider med forskjellige eksempler og utforsket noen listefunksjoner. Selv dette kan brukes i navigasjonsmenyer for å vises vertikalt. Opprettelse av en uordnet liste er veldig enkel. Det er viktig å vurdere hvor du skal fikse denne tilnærmingen for det beste bitstedet. Med andre ord foretrekker det perfekte dokumentet å bruke et HTML-listeformat.

    Anbefalte artikler

    Dette har vært en guide til HTML Uordnet liste. Her diskuterer vi syntaks og attributttyper for HTML Uordnet liste med eksempler. Du kan også se på følgende artikler for å lære mer–

    1. HTML-blokker
    2. HTML-listestiler
    3. Grunnleggende HTML-tagger
    4. HTML-kommandoer