Skip to main content

what are Lists in html and how create lists in html?

 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:

UnOrdered List in html



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 Ordered List


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 Description list

HTML List Tags

Tag

Detail

<ul>

shows an unordered list

<li>

shows a  list item

<ol>

shows an ordered list

<dl>

shows a description list

<dt>

shows a term in a description list

<dd>

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

Popular posts from this blog

Best and Top 5 Camera Brands 2021

  Regardless of whether you're purchasing your first computerized camera or updating your current photography gear, realizing the top camera brands in 2021 is fundamental. Picking the correct brand for you is significant in light of the fact that it will go far to molding your photography style and how you work out your unit. The brand you pick will likewise impact the nature of your gear and the scope of frill viable with it. We mean to make the determination cycle much simpler by showing you the best camera brands for advanced cameras. So how about we investigate the top camera brands accessible and what you need to know to settle on the best buying choice. Canon Odds are that in the event that you've at any point thought about purchasing another camera, the name Canon has come up.                                                       ...

best smartwatches for 2021:Top 5 smartwatches across the world

The best smartwatches accomplish more than show warnings on your wrist. They're every-thing in one: a wellness tracker for getting better an advanced pouch and now and again, even a telephone on your wrist.   A smartwatch can likewise save your existence with raised pulse cautions and consequently associate you to crisis administrations in the event that you fall. Electrocardiogram (ECG) and blood oxygen (SpO2) readings are lead of certain superior models, as well. The previous distinguishes indications of atrial fibrillation, while the last is a decent pointer of respiratory wellbeing. In any case, the best smartwatches show improvement over others. Some have massive numbers of applications you can download, and some have batteries that will scarcely most recent daily, while others can go almost seven days on a charge. What's more, obviously there's style: The best smartwatches can be altered, from their ties to their appearances, to best fit with your character. Wha...

Introduction to HTML

HTML stands for Hyper Text Markup Language that is used to create web pages, tells the browser how display content. It is used to define the structure of a web-page. Example: <!DOCTYPE html> <html> <head> <title>page title</title> </head>             <body>             <h1>this is heading</h1>             <p>this paragraph>             </body> </html> Explanation: <!DOCTYPE html> defines that this document is HTML. <html> is root code of page. <head> contains meta information of html page. <title> is use to define title of page and display in browser bar. <body> is used to define body   of page and contains the content that is sh...