There are three types of lists provided by HTML, and each serves a slightly different function. UL (unordered list) provides a list of items where the order is not important. OL (ordered list) provides a list of items where order is important. DL (definition list) provides a way to pair terms with definitions.
Unordered Lists
The most frequently used type of list is the unordered list – sometimes called a bulleted list. A bulleted list should be used for distinct items that are somehow correlated. On montclair.edu pages, each bullet in an unordered list is styled as a red dash.
Unordered lists should not be used to create large structured documents – heading tags are for document structure. Items in unordered lists should be very short. For example:
Technologies we use:
- HTML: This is the basic document format of the web.
- CSS: This allows us to describe how a document should look.
- JavaScript: This adds functionality to elements in the HTML document.
Ordered Lists
Ordered lists are the same as unordered lists except that – obviously – the content has an order to it. Ordered lists are good for sequential information or for ranking.
- Fill out the form.
- Mail the form to admissions.
- Complete the survey.
Ordered lists can also use letters or roman numerals:
- Fill out the form.
- Mail the form to admissions.
- Complete the survey.
Definition Lists
Definition lists are rarely used but when you have a need for them they can be very helpful. They create a structure that pairs DT element (terms) with DD elements (definitions). For example:
- Registrar’s Office
- Handles scheduling and class registration, as well as applications for graduation.
- Student Accounts
- Handles bill payment and financial aid disbursement.
- Academic Advising
- Helps students choose what classes to register for based on their current degree audit.
Definition lists are not included within the WordPress or TerminalFour visual editor interfaces, so if you want to use one you’ll need to add the code manually.
We’ve also defined a class “compact” for definition lists that have relatively short terms. While these lists appear identical on mobile devices, the compact one will more effectively use the page width.
- Registrar’s Office
- Handles scheduling and class registration, as well as applications for graduation.
- Student Accounts
- Handles bill payment and financial aid disbursement.
- Academic Advising
- Helps students choose what classes to register for based on their current degree audit.
Link Lists
A link list is not a standard HTML component – but it’s a bit of additional HTML you can use on your page to compact a list of links into a smaller two-column format. You can create a link list by making a basic unordered list and then putting that inside a DIV with the class “link-list.”
- College of the Arts
- College of Education and Human Services
- College of Humanities and Social Sciences
- College of Science and Mathematics
- Feliciano School of Business
- John J. Cali School of Music
- School of Nursing
- School of Communication and Media
- School of Nursing
- The Graduate School
- University College
Code Samples
Unordered List
<ul> <li>Item A</li> <li>Item B</li> <li>Item C</li> </ul>
Ordered List
<ol> <li>Fill out the form.</li> <li>Mail the form to admissions.</li> <li>Complete the survey.</li> </ol>
Ordered list using uppercase letters
<ol style="list-style-type: upper-alpha"> <li>Fill out the form.</li> <li>Mail the form to admissions.</li> <li>Complete the survey.</li> </ol>
Definition List
<dl> <dt>Registrar's Office</dt> <dd>Handles scheduling and class registration, as well as applications for graduation.</dd> <dt>Student Accounts</dt> <dd>Handles bill payment and financial aid disbursement.</dd> <dt>Academic Advising</dt> <dd>Helps students choose what classes to register for based on their current degree audit.</dd> </dl>
Compact Definition List
<dl class="compact"> <dt>Registrar's Office</dt> <dd>Handles scheduling and class registration, as well as applications for graduation.</dd> <dt>Student Accounts</dt> <dd>Handles bill payment and financial aid disbursement.</dd> <dt>Academic Advising</dt> <dd>Helps students choose what classes to register for based on their current degree audit.</dd> </dl>
Link List
<div class="link-list"> <ul> <li><a href="http://www.montclair.edu/arts/">College of the Arts</a></li> <li><a href="http://www.montclair.edu/cehs">College of Education and Human Services</a></li> <li><a href="http://www.montclair.edu/chss">College of Humanities and Social Sciences</a></li> <li><a href="http://www.montclair.edu/csam">College of Science and Mathematics</a></li> <li><a href="http://business.montclair.edu">Feliciano School of Business</a></li> <li><a href="http://www.montclair.edu/music">John J. Cali School of Music</a></li> <li><a href="https://www.montclair.edu/school-of-conservation/">New Jersey School of Conservation</a></li> <li><a href="https://www.montclair.edu/school-of-communication-and-media/">School of Communication and Media</a></li> <li><a href="http://www.montclair.edu/nursing/">School of Nursing</a></li> <li><a href="http://www.montclair.edu/graduate">The Graduate School</a></li> <li><a href="http://www.montclair.edu/university-college">University College</a></li> </ul> </div>