Html Lists
This tutorial will help you to learn Html Lists and It is very easy to learn .You just follow my tutorial .Open your notepad and write code ,save it and see it in browser step by step.
Lets Start.
HTML records permit web engineers to assemble a bunch of
related things in records.
Model:
An unordered HTML list:
Thing
Thing
Thing
Thing
An Ordered HTML list:
First thing
Second thing
Third thing
Fourth thing
Unordered HTML List
An unordered list begins with the <ul> tag. Each list
thing begins with the <li> tag.
The list things will be set apart with projectiles (little dark circles) by default:
Code:
<!DOCTYPE html> <html> <body> <h2>An unordered HTML list</h2> <ul> <li>Cup</li> <li>Jug</li> <li>Glass</li> </ul> </body> </html>
Browser Result:
Ordered HTML List
An arranged list begins with the <ol> tag. Each list thing begins with the <li> tag.
The list things will be set apart with numbers by default.
Code:
<!DOCTYPE html> <html> <body> <h2>An unordered HTML list</h2> <ol> <li>Cup</li> <li>Jug</li> <li>Glass</li> </ol> </body> </html>
Browser Code:
HTML Description Lists
HTML additionally underpins depiction records.
A description list is a list of terms, with a depiction of each term.
The <dl> tag characterizes the description list, the <dt> tag characterizes the term (name),
and the <dd> tag depicts each term:
Code:
<!DOCTYPE html> <html> <body> <h2>A Description List</h2> <dl> <dt>Tea</dt> <dd>- hot drink</dd> <dt>Pepsi</dt> <dd>-cold drink</dd> </dl> </body> </html> Browser Result:
HTML List Tags
Tag |
Detail |
shows an unordered list |
|
shows a list item |
|
<ol> |
shows an ordered list |
shows a description list |
|
shows a term in a
description list |
|
shows the term in a
description list |
I hope you like the post ,please don't hesitate to share my post to your friends. Thanks!!!
Comments
Post a Comment