DEV Community

VIDHYA VARSHINI
VIDHYA VARSHINI

Posted on

Full Stack Learning : Day 2 Insights

HTML list items:
In HTML, the list items

  • used to define elements inside a list structure. Display steps or sequences. To group related items Helps with semantic structure of web page.

    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 :

    1. First item
    2. Second item
    3. 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)