In web design, there are 3 different types of lists which you may wish to add to your site.
The first is an <ol>: This is an ordered list of contents. For example:
- An item
- Another item
- Another goes here.
Inside the <ol> tag we list each item on the list inside <li> </li> tags.
<ol> <li>An item </li> <li>Another item </li> <li>Another goes here </li> </ol>
The second type of list that you may wish to include is an <ul> unordered list. This is better known as a bullet point list and contains no numbers.
An example of this is:
<ul> <li>This is </li> <li>An Unordered </li> <li>List </li> </ul>
Finally, you may wish to include a definition list <dl> on your page. An example of a <dl> list is as follows:HTMLHypertext markup language is a programming language used to create web pages and is rendered by a web browser.
The code used for the above is as follows:
<dl> <dt>Item</dt> <dd>The definition goes here</dd> </dl>
Let’s try it out. Open index.html and on a new line, enter the following HTML:
<p>This website will have the following benefits for my business:</p> <ul> <li>Increased traffic </li> <li>Global Reach</li> <li>Promotional Opportunities</li> </ul>
Now hit save and check out the results in your browser. If everything worked out then it will display a bullet-pointed table displaying the information above.