HTML List
In this tutorial, we will learn about HTML List. HTML list is normally used to show ordered or un-ordered list in HTML. For example, you want to show a list of available food items on a restaurant website. In this case, you can use HTML List. We have a total of three types of lists available in HTML. Ordered List UnOrdered List Description List Ordered List : In Ordered list, all the list items will be marked with numbers by default. Ordered lists start and ends with Ol tag and we write all the list items in li tag. Check this example. <ol> <li>Pizza</li> <li>Burger</li> <li>Sandwich</li> </ol> Output: Pizza Burger Sandwich Unordered List : In UnOrdered list, all the list items will be marked with dots by default. UnOrdered starts and ends with ul tag and we write all the list items in li tag. Check this example. <ul> <li>Pizza</li> <li>Burger</li> <li>Sandwich</li> </ul> Output: Pizza Burger Sandwich Description List : Description list starts with dl tag and after that, we use two tags dt and dd tags to add description title and description data respectively. <dl> <dt>Pizza</dt> <dd>250 Rs</dd> <dt>Burger</dt> <dd>110 Rs</dd> <dt>Sandwich</dt> <dd>100 Rs</dd> </dl> Output: Pizza 250 Rs Burger 110 Rs Sandwich 100 Rs Parvesh SandilaParvesh Sandila is a passionate web and Mobile app developer from Jalandhar, Punjab, who has over six years of experience. Holding a Master’s degree in Computer Applications (2017), he has also mentored over 100 students in coding. In 2019, Parvesh founded Owlbuddy.com, a platform that provides free, high-quality programming tutorials in languages like Java, Python, Kotlin, PHP, and Android. His mission is to make tech education accessible to all aspiring developers. new.owlbuddy.com