Computer Science, asked by nikkishekhawat, 1 year ago

differentiate between ol tag and u l tag with suitable example

Answers

Answered by jiya79
726
<Ul> or bulleted list is an unordered list which means that the items in this list are not placed in a specific order.
ex - circles, disc,square
<OL> or numbered list ,the items are placed in the specific order and prefaced with a number.
ex- A,a,I ,i and 123
Answered by adventureisland
51

When the list is arranged, the ol element is used. When a list is unordered, the ul element is utilized.

Differentiate between ol tag and ul tag :

ol tag :

  • When the list is arranged, the ol element is used.
  • The HTML OL type attribute specifies whether your list should be in numerical, alphabetical, or roman numeral order.

ul tag :

  • When a list is unordered, the ul element is utilized.
  • Lists are made with these tags. If it's an unordered list (with bullets), a list must begin with a UL.
  • if it's an ordered list, it must begin with an OL (with numbers). Every item in each list must begin with the <li> tag.
Similar questions