Welcome to My...

 

Summary 4


Chapter 3 - Lists



Ordered Lists


Ordered lists in code are created using the <ol> tag, with each list item specified within <li> tags. They are used to display a list of items in a numbered sequence. Ordered lists are useful for presenting information in a structured and organized manner, where the order of items matters.



Unordered Lists


Unordered lists in code are created using the <ul> tag, with each list item specified within <li> tags. Unlike ordered lists, they display a list of items without any particular sequence or numbering. Unordered lists are commonly used for presenting bulleted lists of items where the order is not significant.



Definition Lists


Definition lists in code are created using the <dl> tag, which contains sets of terms and their corresponding definitions. Each term is defined within a <dt> tag, and its definition is enclosed within a <dd> tag. Definition lists are ideal for presenting glossaries, dictionaries, or any content that requires paired terms and definitions, providing a clear and organized way to display related information.