Skip to main content

Lists In Html

Lists In Html:
There are 3 types of lists in Html.
  1. <ol> - Ordered List
  2. <ul> - Unordered List
  3. <df> - Definition List
Html - Number/Ordered List

Ordered lists actually shows with numbers bullets same like word processors. The tag which is use to add order list in your Html page is <ol> and the items of this list shows in <li>. See the example.

Number/ Order List Example: 

<ol>
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
Numbered/Order List Preview:
  1. John
  2. Miller
  3. Bunty
Just simply add your wish from which number you want to start 5,6 or whatever.
 
Number/Order List Advance
This is a little bit advance trick for order or number list you can start it with any number like you want to start a list from number 5 or from 7 or etc you can do it by using it's attribute let's see the example and preview.

Number/Order List Advance Example:
<ol start="5">
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ol>
Numbered/Order List Advance Preview:
  1. John
  2. Miller
  3. Bunty 

There are numbers of type of lists as shown below.
<ol type="a">
<ol type="A">
<ol type="i">
<ol type="I">

Here is the example of the type of the list just change the type.

     Lower-Case     Upper-Case      Lower-Case     Upper-Case
  1. John
  2. Miller
  3. Bunty
  1. John
  2. Miller
  3. Bunty
  1. John
  2. Miller
  3. Bunty
  1. John
  2. Miller
  3. Bunty
Html - Unordered List

Unordered lists actually shows with dots bullets same like word processors. The tag which is use to add unorder list in your Html page is <ul> and the items of this list shows in <li>. See the example.

Unorder List Example:
<ul>
<li>John</li>
<li>Miller</li>
<li>Bunty</li>
</ul>
Unorder List Preview:
  • John
  • Miller
  • Bunty
Here's a look at the other flavors of unordered lists may look like.

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

Here is the example of the Unordered List type
type="square"type="disc"type="circle"
  • John
  • Miller
  • Bunty
  • John
  • Miller
  • Bunty
  • John
  • Miller
  • Bunty

Comments

Popular posts from this blog

Italics in Html

The italics tags use to highlight the fonts but not like bold it makes your font just like dance a step. These tags are not intended to to style your font. It's use to emphasize your fonts. Code: Italic <i>tag</i>! <em>Emphasized</em> Text! Example: Italic tag ! Emphasized Text! Code: <b>HTML</b> <i>Hyper Text Markup Language</i>  or <b>HTML</b> <em>Hyper Text Markup Language</em> Example: HTML Hyper Text Markup Language or HTML Hyper Text Markup Language Code: <p>Johnson is <b><i>DR.</i></b></p> Example: Johnson is DR.

Submit Buttons in Html Forms

Submit buttons are use to submit the forms whenever user registration is needed submit buttons always used. How to make those submit buttons? Just simple you can make submit buttons if you know the <input> tag then make it's type= submit value="some name" just like submit, send etc. Submit Buttons Code: <input type="submit" value="Submit" /><br /> <input type="submit" value="Send" /><br /> <input type="submit" value="Submit Form" /><br /> Submit Buttons Example: Submit Buttons in Action Code: <form method="post" action="mailto:pateltutor1@gmail.com" > Name:<input type="text" name="First" size="12 maxlength="12" /> Email:<input type="text" name="Last" size="24" maxlength="24" /> <input type="submit" value="Send Email" /> </form> ...

Reset Buttons in Html Forms

Reset Buttons: Reset buttons are use to reset the forms in Html. Sometime users put wrong information then the users don't be worry of removing whole the fields and fill them again just press the reset button and whole the form back to their original state. That's very useful for the user. Html Code: <input type="reset" value="Reset" /> <input type="reset" value="Start Over" /> Html Code: Reset Button in Action: Now we are giving some action for your understanding what reset button done don't panic we give some form tags and other just visit Forms in Html you will also learn how to make it. Reset Button Code: <form action="xyz.php" method="post"> First Name: <input type="text" size="20" maxlength="12" /><br /> Last Name: <input type="text" size="24" maxlength="24" /><br /> <input type="reset" value=...