There are 3 different types of lists.A tag starts an ordered list, for unordered lists, and for definition lists. Use the type attributes and begin to adjust their schedules accordingly.
- <ul> - unordered list; bullets
- <ol> - ordered list; numbers
- <dl> - definition list; dictionary
1.HTML Ordered Lists
Use the <ol> tag to start an ordered list. Place the <li> (list item) tag between your opening <ol> & closing </ol> tags to generate list items. Ordered basically means numbered, as the list below demonstrates.
Example:- HTML Code
- <h4 align="center">Goals</h4>
- <ol>
- <li>Find a Job</li>
- <li>Get Money</li>
- <li>Move Out</li>
- </ol>
Design Numbered list:
- Find a Job
- Get Money
- Move Out
Nothing fancy here, start basically defines which number to start numbering with.
2.HTML Ordered Lists Continued
There are 4 other types of ordered lists. In lieu of generic numbers you can replace them with Roman numberals or letters, both capital & lower-case. Use the type attribute to change the numbering.
Example:- HTML Code
- <ol type="a">
- <ol type="A">
- <ol type="i">
- <ol type="I">
Design Ordered List Types:
Lower-Case
- Find a Job
- Get Money
- Move Out
LettersUpper-Case
- Find a Job
- Get Money
- Move Out
LettersLower-Case
- Find a Job
- Get Money
- Move Out
NumeralsUpper-Case Numerals
- Find a Job
- Get Money
- Move Out
3.HTML Unordered Lists
Create a bulleted list with the label. The bullet comes in four flavors: squares, discs, and circles. The bullet is displayed by default by most browsers is the traditional full disc.
Example:- HTML Code
<ul>
<li>Milk</li>
<li>Toilet Paper</li>
<li>Cereal</li>
<li>Bread</li>
</ul>
Design Unordered Lists:
- Milk
- Toilet Paper
- Cereal
- Bread
Here's a look at the other flavors of unordered lists may look like.
Example:- HTML Code
- <ul type="square">
- <ul type="disc">
- <ul type="circle">
Design Unordered List Types:
type="square"
- Milk
- Toilet Paper
- Cereal
- Bread
type="disc"
- Milk
- Toilet Paper
- Cereal
- Bread
type="circle"
- Milk
- Toilet Paper
- Cereal
- Bread
0 comments:
Post a Comment