Phone Now 01323 649779

Contact us now!

Phone 01323 649779, email us or fill out our online enquiry form.


Newsletter

Privacy | Unsubscribe

Lists with SML

Lists in SML work in the same way as HTML. There are several types of HTML list: unordered lists <ul> (bulleted), ordered lists <ol> (numbered), and definition lists <dl> (a list of terms and explanations).

Unordered Lists <ul>

To create an unordered list, use the <ul> tag. Then use the <li> tag to add each list item.

<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>


  • Item 1
  • Item 2
  • Item 3

Ordered Lists <ol>

To create an ordered list, use the <ol> tag. Then use the <li> tag to add each list item.

<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>


  1. Item 1
  2. Item 2
  3. Item 3

Definition Lists <dl>

To create a definition list, use the <dl> tag. Then use the <dt> tag to add the term for each item and the <dd> to add the explanation.

<dl>
<dt>Cheese</dt>
<dd>A solid food prepared from the pressed curd of milk, often seasoned and aged.</dd>
<dt>Toast</dt>
<dd>Sliced bread heated and browned.</dd>
<dt>Cheese on Toast</dt>
<dd>A very tasty snack. Serve with <a href="http://www.leaperrins.com/">Worcestershire sauce</a>.</dd>
</dl>


Cheese
A solid food prepared from the pressed curd of milk, often seasoned and aged.
Toast
Sliced bread heated and browned.
Cheese on Toast
A very tasty snack. Serve with Worcestershire sauce.