HTML list items:
In HTML, the list items
Block elements:
● Always starts on a new line
● Takes up the full width of its parent container by default
Example:
Inline Elements:
● Does not start on a new line
● Only takes up as much width as necessary
Example: ,
Shortcut: Ctrl + Shift + I - Alignment
Shift + I - ! Then if we press enter, default syntax will come.
Two types of list styling:
Ordered list: Display items in a numbered sequence.
This will appear as :
- First item
- Second item
- Third item
Unordered list: Display items in not a particular order like bullets instead of numbers.
This will appear as
● HTML
● CSS
● JavaScript
Top comments (0)