HTML LISTS

HTML LISTS:
HTML Lists: Step-by-Step Guide | Career Karma
• HTML offers web authors to specify the lists in three ways.
• <ul> - An unorder list. This list items using plain bullet.
• <ol>- An order list. This list items using different schemes of numbers to list your
items.
• <dl> - An definition list. This arranges items in the same way as they were arranged
in a dictionary.

HTML UNORDERED LISTS:
• An unordered list is a collection of related items that have no special order.
• We define the tag by using <ul> tag.
• Each item list is marked with a bullet.
• You use <li> tag to lists the items.
• Type disc is default unordered list type.

Example:
<!DOCTYPE html>
<html>
<head>
<title>Unorder Lists </title>
</head>
<body>
<ul>
<li>Java</li>
<li>HTML</li>
<li>CSS</li>
<li>Java Script</li>
<li>PHP</li>
</ul>
</body>
</html>

OUTPUT:
• Java
• HTML
• CSS
• Java Script
• PHP

Example:
<!DOCTYPE html>
<html>
<head>
<title>Unorder Lists </title>
</head>
<body>
<ul type= "disc">
<li>Java</li>
<li>HTML</li>
<li>CSS</li>
<li>Java Script</li>
<li>PHP</li>
</ul>
</body>
</html>

OUTPUT:
• Java
• HTML
• CSS
• Java Script
• PHP

Example:
<!DOCTYPE html>
<html>
<head>
<title>Unorder Lists </title>
</head>
<body>
<ul type= "circle">
<li>Java</li>
li>HTML</li>
<li>CSS</li>
<li>Java Script</li>
<li>PHP</li>
</ul>
</body>
</html>

OUTPUT:
o Java
o HTML
o CSS
o Java Script
o PHP


Comments

Popular posts from this blog

Set Font Colour

HTML ORDERED LISTS

Colspan & Rowspan Attributes on HTML Table