List Types (ordered, definition, etc.)

there are various types of lists that can be used to structure content in HTML. Here are some commonly used list types in Dreamweaver CS5:

  1. Ordered List (ol): An ordered list represents a numbered list of items. Each item is wrapped in <li> (list item) tags, and the list is defined using the <ol> (ordered list) tag.

Example:

htmlCopy code<ol>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ol>
  1. Unordered List (ul): An unordered list represents a bullet-pointed list of items. Similar to the ordered list, each item is enclosed in <li> tags, but the list is defined using the <ul> (unordered list) tag.

Example:

htmlCopy code<ul>
  <li>First item</li>
  <li>Second item</li>
  <li>Third item</li>
</ul>
  1. Definition List (dl): A definition list consists of terms and their corresponding definitions. Each term is wrapped in a <dt> (definition term) tag, and each definition is wrapped in a <dd> (definition description) tag. The list is defined using the <dl> (definition list) tag.

Example:

htmlCopy code<dl>
  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>
</dl>
  1. Description List (dl): A description list is similar to a definition list but without the distinction between terms and definitions. It is often used for providing a list of key-value pairs. Each item is wrapped in a <dt> tag for the term or name, followed by a <dd> tag for the description or value.

Example:

htmlCopy code<dl>
  <dt>Term 1</dt>
  <dd>Description 1</dd>
  <dt>Term 2</dt>
  <dd>Description 2</dd>
</dl>

These list types in Dreamweaver CS5 allow you to structure and present information in different ways on web pages.

Apply for Dreamweaver CS5 Certification!!

https://www.vskills.in/certification/certified-dreamweaver-cs5-professional

Back to Tutorials

Share this post
[social_warfare]
Lists Insertion
Links

Get industry recognized certification – Contact us

keyboard_arrow_up