11. HTML List Tutorial

First of all it is html list tutorial.HTML offers internet authors 3 ways for specifying lists of knowledge. All lists should contain one or a lot of list parts. Lists might contain:
<ul> – associate degree unordered list. this may list things victimization plain bullets.
<ol> – associate degree ordered list. this may use completely different schemes of numbers to list your things.
<dl> – A definition list. This arranges your things within the same manner as they’re organized in an exceedingly wordbook.

HTML Unordered Lists

An unordered list may be a assortment of connected things that don’t have any special order or sequence. This list is formed by exploitation hypertext mark-up language <ul> tag. every item within the list is marked with a bullet.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>

 

The type Attribute

You can use sort attribute for <ul> tag to specify the sort of bullet you prefer. By default, it’s a disc. Following area unit the attainable options:

<ul type="square">
<ul type="disc">
<ul type="circle">

Example

Following is an example wherever we have a tendency to used <ul type=”square”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type="square">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>

 

Example

Following is an example wherever we have a tendency to used <ul type=”disc”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type="disc">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>

html list tutorial

 

Example

Following is an example wherever we have a tendency to used <ul type=”circle”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Unordered List</title>
</head>
<body>
<ul type="circle">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</body>
</html>

html list tutorial

HTML Ordered Lists

If you’re needed to place your things in an exceedingly numbered list rather than bulleted, then HTML ordered list are going to be used. This list is made by victimization <ol> tag. The list starts at one and is incremented by one for every ordered ordered list component labeled with <li>.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>

html list tutorial

 

The type Attribute

You can use kind attribute for <ol> tag to specify the sort of listing you prefer. By default, it’s variety. Following square measure the potential options:

<ol type="1"> - Default-Case Numerals.
<ol type="I"> - Upper-Case Numerals.
<ol type="i"> - Lower-Case Numerals.
<ol type="a"> - Lower-Case Letters.
<ol type="A"> - Upper-Case Letters.

Example

Following is an example wherever we have a tendency to used <ol type=”1″>

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="1">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>

html list tutorial

Example

Following is an example wherever we have a tendency to used <ol type=”I”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="I">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>

html list tutorial

Example

Following is an example wherever we have a tendency to used <ol type=”i”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="i">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>

html list tutorial

Example

Following is an example wherever we have a tendency to used <ol type=”A”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="A">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>
[html list tutorial]

html list tutorial

Example

Following is an example wherever we have a tendency to used <ol type=”a”>

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="a">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</ol>
</body>
</html>

html list tutorial

 

The start Attribute

You can use begin attribute for <ol> tag to specify the start line of list you wish. Following area unit the potential options:

<ol type="1" start="4"> - Numerals starts with 4.
<ol type="I" start="4"> - Numerals starts with IV.
<ol type="i" start="4"> - Numerals starts with iv.
<ol type="a" start="4"> - Letters starts with d.
<ol type="A" start="4"> - Letters starts with D.

Example

Following is an example wherever we have a tendency to used  <ol type=”i” start=”4″ >

<!DOCTYPE html>
<html>
<head>
<title>HTML Ordered List</title>
</head>
<body>
<ol type="i" start="4">
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ol>
</body>
</html>

html list tutorial

 

HTML Definition Lists

HTML and XHTML supports an inventory vogue that is named definition lists wherever entries are listed like in an exceedingly wordbook or cyclopedia. The definition list is that the ideal thanks to gift a gloss, list of terms, or alternative name/value list.Definition List makes use of following 3 tags.

  • <dl> – Defines the start of the list
  • <dt> – A term
  • <dd> – Term definition

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML Definition List</title>
</head>
<body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language</dd>
<dt><b>HTTP</b></dt>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>

html list tutorial

Comments

comments