Lista não ordenada em HTML - Sintaxe e tipos de atributo com exemplos

Índice:

Anonim

Introdução à lista não ordenada HTML

Nesta seção Lista não ordenada HTML, apresentamos como implementar listas em HTML. Como descrever ou exibir uma lista não ordenada? É muito simples e fácil, eles são usados ​​para descrever a lista de informações no conteúdo em qualquer ordem (todas as partes da lista permanecem as mesmas). A lista, em geral, cria um grupo de informações e é gerada de maneira bem estruturada. E outra técnica é que podemos incorporar propriedades de estilo CSS. Os três tipos de listas que poderíamos usar para ordenar as páginas da web. Abaixo estão os diferentes tipos:

  1. Lista ordenada
  2. Lista não ordenada
  3. Lista de definições

Neste artigo, examinaremos a especificação de lista não ordenada com um exemplo. A lista não ordenada é uma lista que não requer nenhuma ordem de numeração na lista. Em vez disso, usamos marcadores para os níveis da lista.

Sintaxe da lista não ordenada HTML

A sintaxe da lista não ordenada é semelhante à lista ordenada que criamos no artigo anterior. A lista não ordenada é criada usando um elemento chamado

    elemento e termina com
tag. O item da lista é incorporado dentro do
    elemento.


      ………..

      ………..

    Exemplo 1

    Isso mostra como essa lista curta de itens é implementada em um navegador.


    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

    Resultado:

    Isso lhe dará o resultado como

    Exemplo 2

    Lista não ordenada com cores e para as posições.



    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

    Resultado:

    Tipos de atributos para lista não ordenada HTML

    Para descobrir a lista não ordenada, existem três tipos principais de atributos para esse elemento não ordenado. A lista não ordenada é usada onde não é necessário representar as listas em nenhuma ordem específica. As seções a seguir explicam os atributos relacionados e exemplos disso.

    Este atributo fornece o tipo de marcadores a serem usados ​​na lista.

    • type = 'disc' - fornece estrutura de marcadores padrão
    • type = 'square' - Parece marcadores de caixa sólidos
    • type = 'circle' - Dá estrutura de caixa oca

    1. Tipo de atributo = 'disco'

    Este é o tipo padrão e todos os itens são marcados como marcadores. Aqui usamos o atributo type e todos esses atributos são suportados no HTML 3. Para definir no HTML5, devemos implementar CSS no estilo de lista. Aqui está um exemplo de demonstração.

    Exemplo


    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.

    Resultado:

    2. Tipo de atributo = 'quadrado'

    Aqui os itens são marcados com marcadores quadrados.

    Exemplo

    Demonstrando o código HTML com o marcador quadrado incorporado com a cor do estilo e a posição.




    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

    Resultado:

    3. Tipo de atributo = 'circle'

    Este atributo fornece valores de marcador ocos. Abaixo está o exemplo de renderização de círculo e atributo quadrado junto com as listas aninhadas.

    Exemplo


    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

    Resultado:

    Substituindo itens da lista HTML por imagens personalizáveis

    Isso acabaria por aprimorar o tema geral e tornar o site visualmente bom. Os marcadores padrão são substituídos pelo estilo nativo ou podem ser personalizados usando imagens com a ajuda do CSS. Na verdade, existem três listas de estilos a serem usadas em HTML. Aqui vamos nós com um tipo de estilo de lista e imagem de estilo de lista.

    Usar marcador de imagem é tornar as listas mais exclusivas e diferenciar as informações pelo tipo. Em outras palavras, para dar uma aparência de apresentação na página da web.

    No exemplo abaixo, os exemplos são demonstrados pelas propriedades de estilo entre os elementos da lista.

    Exemplo # 1 - Propriedades de estilo entre os elementos da lista



    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

    Resultado:

    Isso fornecerá a saída como

    Exemplo # 2 - Com estilo de imagem



    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

    Personagens de Harry Potter:

    • atormentar
    • Hermione
    • Ron Weasely

    Resultado:

    Conclusão

    Agora que descobrimos como criar listas não ordenadas em HTML. Vimos como o elemento de bloco não ordenado desempenha um papel na criação de páginas da web com diferentes exemplos e exploramos alguns recursos da lista. Mesmo isso pode ser usado nos menus de navegação para exibição vertical. A criação de uma lista não ordenada é muito simples, é importante considerar onde corrigir essa abordagem para obter o melhor lugar possível. Em outras palavras, o documento perfeito prefere usar um formato de lista HTML.

    Artigos recomendados

    Este foi um guia para a lista não ordenada HTML. Aqui discutimos a sintaxe e os tipos de atributos da lista não ordenada de HTML com exemplos. Você também pode dar uma olhada nos seguintes artigos para saber mais:

    1. Blocos HTML
    2. Estilos de lista HTML
    3. Tags HTML básicas
    4. Comandos HTML