How to use HTML lists elements



 In one of my posts, I taught you how to make table and I also stated that table can be use to hold items or names of people. But in case you are not okay with table, you also have html lists elements.


What really make list interesting more than table is that, you can choose to number it or use bulletin. Although, you add those numbers and bulletin too in table but you do it manually, while with list elements, it will be added automatically.


There are two types of html lists. The ordered html list and unordered html list.


Below are the lists elements;


Ordered html element. <ol> </ol>

List html element. <li> </li>


Unordered html element. <ul> </ul>

List html element.<li> </li>


Now let's move into the real practical part of the list making.


ordered html list example;

<! html DOCTYPE>

<html>

<head>

</head>

<body>

<ol> 

<li> Love </li>

<li> Life </li>

<li> Light </li>

<li> Lead </li>

</ol>

</body>

</html>


I made ordered list with four names on the list. Try it out yourself.


Now below, I'm going to make the unordered list example.



unordered html list example;

<! html DOCTYPE>

<html>

<head>

</head>

<body>

<ul> 

<li> Love </li>

<li> Life </li>

<li> Light </li>

<li> Lead </li>

</ul>

</body>

</html>

Comments

  1. Harrah's Casino in Maricopa, AZ - JTGHub
    Harrah's 전주 출장마사지 Casino Maricopa located in Maricopa offers 천안 출장안마 an exciting 남원 출장안마 gaming experience for all ages. Get on the go at Harrah's 남양주 출장안마 and enjoy 거제 출장샵 the

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Delete Record From Table Using PHP MySQL

Guide to add blog URL to Google search console

Best steps to master JavaScript programming language