List in HTML
This tutorial explains how to create lists in HTML.
This tutorial explains how to create lists in HTML.
List of types arranged in HTML
The unordered list starts with a card
- ,
Each item will start with a card
- Tea
- Country
- The coffee
Select the character mark in the beginning of the unordered list
CSS properties list-style-type
is used to define the first line character.
- disc - rhombus (default)
- circle - circle
- square - square
- none - no characters used
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
List of types arranged in HTML
This type of list starts with a card
- ,
Each item in the list starts with a card
,
- Tea
- Country
- The coffee
Select the character mark in the top of the sorted list
Type attribute of the tag Defines the type of character used to mark a line.
- type = '1' ordinal number (default)
- type = 'A' uppercase letters
- type = 'a' lowercase letters
- type = 'I' romanized number
- type = 'i' romanized code is lower
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
- Tea
- Country
- The coffee
List of descriptive types in HTML
This is a list of terms with descriptions for each term. Card
used to define description lists, tags
Definition of terms (names) and tags
used to describe.
Cà phê
- thức uống màu đen
Sữa
- thức uống màu trắng
List of nested HTML
List in HTML can be nested (nested list in list)
- The coffee
- Tea
- Green tea
- Jasmine tea
- Milk
Note: items in the list may contain lists or other HTML elements such as images, links .
Control the count in the list
By default, the sort list will start counting from 1. If you want to count from another number, you use the start.
attribute start.
- Tea
- Country
- The coffee
Create a list with CSS
HTML lists can be created in many ways, the common way is to do horizontally to create navigation menus.
- Home page
- News
- Phonebook
- About us
Previous post: Table in HTML
The following article: Block and inline elements in HTML
You should read it
Maybe you are interested
An ancient asteroid once collided with and 'flipped' Jupiter's moon Ganymede Mysterious black objects appear in NASA sun photos 10 strange and interesting facts about the universe you may not have heard of Scientists are increasingly interested in warp engines, which 'space distortion' technology allows us to travel at the s The interesting scientific knowledge that we missed while at school What bad thing will happen if the Sun suddenly disappears?