Definition Lists - HTML

Definition lists are slightly more complex than the other two types of lists because they have two elements for each item, a term and a definition. However, there aren’t many formatting options for definition lists, so their implementation tends to be simpler than that of the other two lists. Consider this list of definitions, highlighting popular Web browsers:

Internet Explorer
Developed by Microsoft, an integral piece of Windows products
Mozilla
Developed by the Mozilla Project, an open source browser for multiple platforms
Netscape
Developed by Netscape Communications Corporation, one of the first graphical browsers
Safari
Developed by Apple Computer, Inc., for Apple’s OSX operating system, The bulleted items can be coded as list terms and their definitions as list definitions, as shown in the following code.

Definition lists provide term and definition pairs for each list item.

Definition lists provide term and definition pairs for each list item.

Note: To add clarity to your definition lists, you will usually want to construct styles that set the definition term in a different font or textual style. For example, you might want the definition terms to be red, bold, and italic. The following style definition accomplishes this:


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics