Course Content
HTML Forms
HTML forms are an essential part of web development and provide a way for users to input and submit data to a server. Forms allow users to enter data such as text, numbers, checkboxes, radio buttons, and more. When a user submits a form, the data is typically sent to a server for further processing.
0/6
HTML Graphics
HTML provides various ways to incorporate graphics into web pages.
0/2
HTML Media
HTML provides built-in support for embedding and displaying various types of media content on web pages.
0/5
HTML APIs
HTML APIs, also known as browser APIs or web APIs, are a set of interfaces and methods provided by web browsers to interact with and manipulate web content, access device features, and perform various tasks. These APIs are implemented in JavaScript and are accessible to web developers when creating web applications. Here are some commonly used HTML APIs:
0/5
HTML Examples
Creating a Simple Web Page, Adding Links and Images and more
0/4
HTML5 for Free | HTML5 – Unleashing the Potential of Web Development
About Lesson

In HTML, you can create different types of lists to organize and present information. The three main types of lists are unordered lists, ordered lists, and definition lists.

  1. Unordered List (ul):
    An unordered list is a list of items without any specific order or sequence. It is represented by the <ul> element, and each item in the list is defined by the <li> (list item) element. Here’s an example:
<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  <li>Item 3</li>
</ul>

This will create an unordered list with three items: Item 1, Item 2, and Item 3. By default, the list items will be displayed with bullet points.

  1. Ordered List (ol):
    An ordered list is a list of items that has a specific order or sequence. It is represented by the <ol> element, and each item in the list is defined by the <li> element. Here’s an example:
<ol>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ol>

This will create an ordered list with three items, numbered in the order specified: First item, Second item, and Third item.

  1. Definition List (dl):
    A definition list is used to display a list of terms and their corresponding definitions. It is represented by the <dl> element, which contains one or more <dt> (definition term) elements for terms and <dd> (definition description) elements for their corresponding definitions. Here’s an example:
<dl>
  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>
</dl>

This will create a definition list with two terms and their respective definitions.

  1. Nested Lists:
    You can also create nested lists by placing one type of list inside another. For example:
<ul>
  <li>Item 1</li>
  <li>Item 2
    <ul>
      <li>Nested Item 1</li>
      <li>Nested Item 2</li>
    </ul>
  </li>
  <li>Item 3</li>
</ul>

This will create an unordered list with three items, and the second item contains a nested unordered list with two items.

These are the basic types of lists in HTML. You can further customize the appearance of lists using CSS to change the bullet points, numbering style, spacing, and other visual aspects.

Join the conversation