SlideShare a Scribd company logo
1 of 28
 
Lesson 2
Prakriti Dhang
02-07-2020

Ordered list, Unordered List, Description List
Tags Description
<ol> Defines an ordered list
<ul> Defines an unordered list
<li> Defines list items
<dl> Defines a description list
<dt> Defines a name in a description list
<dd> Describes the name in a description
list
Ordered List
 Starts with the <ol> tag
and each list item starts
with the <li> tag. The list
items is marked with
numbers by default:
 Example:
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
Unordered List
 An unordered list starts with
the <ul> tag and each list
item starts with the <li> tag.
The list items is marked with
bullets by default.
 Example:
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
 Is a list of terms, having a description for each name.
 Example:
<!DOCTYPE html>
<html>
<body>
<h3>A Description List</h3>
<dl>
<dt>HTML</dt>
<dd>-Hypertext Markup Language</dd>
<dt>CSS</dt>
<dd>-Cascading Style Sheet</dd>
</dl>
</body>
</html>
A Description List
HTML
-Hypertext Markup Language
CSS
-Cascading Style Sheet
 Style it by writing : list-style-type
 Defines the style of the list item marker
 There are 4 types of styling the list.
 Circle : Sets the list item marker to a circle.
 Disc : Sets the list item marker to a disc. This is the
default style.
 Square :Sets the list item marker to a square
 None :Sets the list item marker to none. The list
items will not be marked.
list-style-type: circle
<!DOCTYPE html>
<html>
<body>
<h3>Unordered List with Circle
Bullets</h3>
<ul style="list-style-type:circle;">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</body>
</html>
Unordered List with Circle Bullets
o HTML
o CSS
o JavaScript
list-style-type:disc
<!DOCTYPE html>
<html>
<body>
<h3>Unordered List with Disc
Bullets</h3>
<ul style="list-style-type:dics;">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
</body>
</html>
Unordered List with Disc Bullets
• HTML
• CSS
• JavaScript
list-style-type:square
 <!DOCTYPE html>
 <html>
 <body>
 <h3>Unordered List with Square
Bullets</h3>
 <ul style="list-style-type:square;">
 <li>HTML</li>
 <li>CSS</li>
 <li>JavaScript</li>
 </ul>
 </body>
 </html>
Unordered List with SquareBullets
 HTML
 CSS
 JavaScript
list-style-type:none
 <!DOCTYPE html>
 <html>
 <body>
 <h3>Unordered List with None
Bullets</h3>
 <ul style="list-style-type:none;">
 <li>HTML</li>
 <li>CSS</li>
 <li>JavaScript</li>
 </ul>
 </body>
 </html>
Unordered List with None Bullets
HTML
CSS
JavaScript
 The type attribute in the <ol> tag, defines the type of
item marker in the list.
Type Description
type=“1” The items in the list will be marked with
numbers
type=“A” The items in the list will be marked with
uppercase letters
type=“a” The items in the list will be marked with
lowercase letters
type=“I” The items in the list will be marked with
uppercase roman number
type=“i” The items in the list will be marked with
lowercase roman number
Type=“1”
<!DOCTYPE html>
<html>
<body>
<h3>Ordered List with number
(default)</h3>
<ol type=“1">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
</body>
</html>
Ordered List with number (default)
1. HTML
2. CSS
3. JavaScript
type=“a”
<!DOCTYPE html>
<html>
<body>
<h3>Ordered List with Lowercase
Letters</h3>
<ol type=“a">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
</body>
</html>
Ordered List with Lowercase
Letters
a. HTML
b. CSS
c. JavaScript
type=“A”
<!DOCTYPE html>
<html>
<body>
<h3>Ordered List with Uppercase
Letters</h3>
<ol type="A">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
</body>
</html>
Ordered List with Uppercase
Letters
A. HTML
B. CSS
C. JavaScript
type=“I”
<!DOCTYPE html>
<html>
<body>
<h3>Ordered List with Uppercase
Roman Numbers</h3>
<ol type=“I">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
</body>
</html>
Ordered List with Uppercase Roman
Numbers
I. HTML
II. CSS
III. JavaScript
type=“i”
<!DOCTYPE html>
<html>
<body>
<h3>Ordered List with Lowercase
Roman Numbers</h3>
<ol type=“i">
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ol>
</body>
</html>
Ordered List with Lowercase Roman
Numbers
i. HTML
ii. CSS
iii. JavaScript

Tags Description and Styling
Tags Description
<table> Defines a table
<th> Defines table header. The elements inside are bold and
centered
<tr> Defines row of the table
<td> Defines cell of the table
<caption> Defines a caption
<colgroup> Specifies a group of one or more columns in a table
<col> Specifies column property
<thead> The header content is grouped within the tag
<tbody> The content of the body is grouped within the tag
<tfoot> The footer content is grouped within the tag
<!DOCTYPE html>
<html>
<body>
<h4>Basic HTML Table</h4>
<table style="width:100%">
<tr>
<th>Book Name</th>
<th>Author Name</th>
<th>Book Type</th>
</tr>
<tr>
<td>Java: A Beginner's Guide</td>
<td>Herbert Schildt</td>
<td>Educational</td>
</tr>
<tr>
<td>HTML & CSS: Design and Build
Web Sites</td>
<td>Jon Duckett</td>
<td>Educational</td>
</tr>
<tr>
<td>The Notebook</td>
<td>Nicholas Sparks</td>
<td>Novel</td>
</tr>
</table>
</body>
</html>
OUTPUT->
CSS property Description
border Defines a border to the table
border-collapse Defines a border to each cells of the
table
padding Add padding to the cells
Text-align Aligns text of the cell (left, right,
center)
Border-spacing Sets space in between the cells
width Defines width of the table
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 15px;
}
th {
text-align: left;
}
table {
border-spacing: 5px;
}
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
</style>
</head>
<body>
<h4>Cell that spans two columns</h4>
<table style="width:100%">
<tr>
<th>Color Name</th>
<th colspan="2">Color Shades</th>
</tr>
<tr>
<td>Red</td>
<td>Light Red</td>
<td>Deep Red</td>
</tr>
</table>
</body>
</html>
OUTPUT->
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 2px solid black;
}
th, td {
padding: 10px;
text-align: left;
}
</style>
</head>
<body>
<h4>Cell that spans more than one row</h4>
<table style="width:100%">
<tr>
<th>Color Name</th>
<td>Red</td>
</tr>
<tr>
<th rowspan="2">Color Shades</th>
<td>Light Red</td>
</tr>
<tr>
<td>Deep Red</td>
</tr>
</table>
</body>
</html>
OUTPUT->
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 2px solid black;
border-collapse: collapse;
}
th, td {
padding: 10px;
text-align: left;
}
#t01 {
width: 100%;
background-color: #ff3333
}
</style>
</head>
<body>
<h4>Use of id attribute for styling HTML
tables</h4>
<table style="width:100%">
<tr>
<th>Color Name</th>
<td>Red</td>
</tr>
<tr>
<th rowspan="2">Color Shades</th>
<td>Light Red</td>
</tr>
<tr>
<td>Deep Red</td>
</tr>
</table>
<br>
<table id="t01">
<tr>
<th>Color Name</th>
<th colspan="2">Color Shades</th>
</tr>
<tr>
<td>Red</td>
<td>Light Red</td>
<td>Deep Red</td>
</tr>
</table>
</body>
</html>
OUTPUT->
 Lists in HTML: Ordered, Unordered, and description.
 Table in HTML
 Styled table with CSS property
1. Create a page that shows shopping list. Use Ordered
list, type roman numbers.
2. In the same page use unordered list of type square to
display list of books.
3. In the same page, add a table showing address book of
5 people. Use colspan and row span attribute. Style the
table accordingly.
Use of Lists and Tables in HTML

More Related Content

What's hot

What's hot (20)

FYBSC IT Web Programming Unit IV PHP and MySQL
FYBSC IT Web Programming Unit IV  PHP and MySQLFYBSC IT Web Programming Unit IV  PHP and MySQL
FYBSC IT Web Programming Unit IV PHP and MySQL
 
Arrays in PHP
Arrays in PHPArrays in PHP
Arrays in PHP
 
Inheritance and Polymorphism Java
Inheritance and Polymorphism JavaInheritance and Polymorphism Java
Inheritance and Polymorphism Java
 
Html form tag
Html form tagHtml form tag
Html form tag
 
Java Presentation For Syntax
Java Presentation For SyntaxJava Presentation For Syntax
Java Presentation For Syntax
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
C++ programming (Array)
C++ programming (Array)C++ programming (Array)
C++ programming (Array)
 
LINKING IN HTML
LINKING IN HTMLLINKING IN HTML
LINKING IN HTML
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
Html & CSS
Html & CSSHtml & CSS
Html & CSS
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Html ppt
Html pptHtml ppt
Html ppt
 
How to Create an Array & types in PHP
How to Create an Array & types in PHP How to Create an Array & types in PHP
How to Create an Array & types in PHP
 
Visula C# Programming Lecture 1
Visula C# Programming Lecture 1Visula C# Programming Lecture 1
Visula C# Programming Lecture 1
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Python – Object Oriented Programming
Python – Object Oriented Programming Python – Object Oriented Programming
Python – Object Oriented Programming
 
Regular expression in javascript
Regular expression in javascriptRegular expression in javascript
Regular expression in javascript
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 

Similar to Use of Lists and Tables in HTML

Similar to Use of Lists and Tables in HTML (20)

HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
HTML
HTMLHTML
HTML
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Web forms and html lecture Number 3
Web forms and html lecture Number 3Web forms and html lecture Number 3
Web forms and html lecture Number 3
 
HTML ppt.pptx
HTML ppt.pptxHTML ppt.pptx
HTML ppt.pptx
 
tableslist.pptx
tableslist.pptxtableslist.pptx
tableslist.pptx
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Unit 1wt
Unit 1wtUnit 1wt
Unit 1wt
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Web forms and html (lect 3)
Web forms and html (lect 3)Web forms and html (lect 3)
Web forms and html (lect 3)
 
Web Developement Workshop (Oct 2009 -Day 1)
Web Developement Workshop (Oct 2009 -Day 1)Web Developement Workshop (Oct 2009 -Day 1)
Web Developement Workshop (Oct 2009 -Day 1)
 
Lecture4 web design and development
Lecture4 web design and developmentLecture4 web design and development
Lecture4 web design and development
 
basic-tags.PPT
basic-tags.PPTbasic-tags.PPT
basic-tags.PPT
 
IP_-_Lecture_4,_5_Chapter-2.ppt
IP_-_Lecture_4,_5_Chapter-2.pptIP_-_Lecture_4,_5_Chapter-2.ppt
IP_-_Lecture_4,_5_Chapter-2.ppt
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Html
HtmlHtml
Html
 
Html3
Html3Html3
Html3
 
Html3
Html3Html3
Html3
 
Html introduction Part-2
Html introduction Part-2Html introduction Part-2
Html introduction Part-2
 
lists-and-links.ppt
lists-and-links.pptlists-and-links.ppt
lists-and-links.ppt
 

Recently uploaded

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Use of Lists and Tables in HTML

  • 1.   Lesson 2 Prakriti Dhang 02-07-2020
  • 2.  Ordered list, Unordered List, Description List
  • 3. Tags Description <ol> Defines an ordered list <ul> Defines an unordered list <li> Defines list items <dl> Defines a description list <dt> Defines a name in a description list <dd> Describes the name in a description list
  • 4. Ordered List  Starts with the <ol> tag and each list item starts with the <li> tag. The list items is marked with numbers by default:  Example: <ol> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> Unordered List  An unordered list starts with the <ul> tag and each list item starts with the <li> tag. The list items is marked with bullets by default.  Example: <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ul>
  • 5.  Is a list of terms, having a description for each name.  Example: <!DOCTYPE html> <html> <body> <h3>A Description List</h3> <dl> <dt>HTML</dt> <dd>-Hypertext Markup Language</dd> <dt>CSS</dt> <dd>-Cascading Style Sheet</dd> </dl> </body> </html> A Description List HTML -Hypertext Markup Language CSS -Cascading Style Sheet
  • 6.  Style it by writing : list-style-type  Defines the style of the list item marker  There are 4 types of styling the list.  Circle : Sets the list item marker to a circle.  Disc : Sets the list item marker to a disc. This is the default style.  Square :Sets the list item marker to a square  None :Sets the list item marker to none. The list items will not be marked.
  • 7. list-style-type: circle <!DOCTYPE html> <html> <body> <h3>Unordered List with Circle Bullets</h3> <ul style="list-style-type:circle;"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ul> </body> </html> Unordered List with Circle Bullets o HTML o CSS o JavaScript
  • 8. list-style-type:disc <!DOCTYPE html> <html> <body> <h3>Unordered List with Disc Bullets</h3> <ul style="list-style-type:dics;"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ul> </body> </html> Unordered List with Disc Bullets • HTML • CSS • JavaScript
  • 9. list-style-type:square  <!DOCTYPE html>  <html>  <body>  <h3>Unordered List with Square Bullets</h3>  <ul style="list-style-type:square;">  <li>HTML</li>  <li>CSS</li>  <li>JavaScript</li>  </ul>  </body>  </html> Unordered List with SquareBullets  HTML  CSS  JavaScript
  • 10. list-style-type:none  <!DOCTYPE html>  <html>  <body>  <h3>Unordered List with None Bullets</h3>  <ul style="list-style-type:none;">  <li>HTML</li>  <li>CSS</li>  <li>JavaScript</li>  </ul>  </body>  </html> Unordered List with None Bullets HTML CSS JavaScript
  • 11.  The type attribute in the <ol> tag, defines the type of item marker in the list. Type Description type=“1” The items in the list will be marked with numbers type=“A” The items in the list will be marked with uppercase letters type=“a” The items in the list will be marked with lowercase letters type=“I” The items in the list will be marked with uppercase roman number type=“i” The items in the list will be marked with lowercase roman number
  • 12. Type=“1” <!DOCTYPE html> <html> <body> <h3>Ordered List with number (default)</h3> <ol type=“1"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> </body> </html> Ordered List with number (default) 1. HTML 2. CSS 3. JavaScript
  • 13. type=“a” <!DOCTYPE html> <html> <body> <h3>Ordered List with Lowercase Letters</h3> <ol type=“a"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> </body> </html> Ordered List with Lowercase Letters a. HTML b. CSS c. JavaScript
  • 14. type=“A” <!DOCTYPE html> <html> <body> <h3>Ordered List with Uppercase Letters</h3> <ol type="A"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> </body> </html> Ordered List with Uppercase Letters A. HTML B. CSS C. JavaScript
  • 15. type=“I” <!DOCTYPE html> <html> <body> <h3>Ordered List with Uppercase Roman Numbers</h3> <ol type=“I"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> </body> </html> Ordered List with Uppercase Roman Numbers I. HTML II. CSS III. JavaScript
  • 16. type=“i” <!DOCTYPE html> <html> <body> <h3>Ordered List with Lowercase Roman Numbers</h3> <ol type=“i"> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> </ol> </body> </html> Ordered List with Lowercase Roman Numbers i. HTML ii. CSS iii. JavaScript
  • 18. Tags Description <table> Defines a table <th> Defines table header. The elements inside are bold and centered <tr> Defines row of the table <td> Defines cell of the table <caption> Defines a caption <colgroup> Specifies a group of one or more columns in a table <col> Specifies column property <thead> The header content is grouped within the tag <tbody> The content of the body is grouped within the tag <tfoot> The footer content is grouped within the tag
  • 19. <!DOCTYPE html> <html> <body> <h4>Basic HTML Table</h4> <table style="width:100%"> <tr> <th>Book Name</th> <th>Author Name</th> <th>Book Type</th> </tr> <tr> <td>Java: A Beginner's Guide</td> <td>Herbert Schildt</td> <td>Educational</td> </tr> <tr> <td>HTML & CSS: Design and Build Web Sites</td> <td>Jon Duckett</td> <td>Educational</td> </tr> <tr> <td>The Notebook</td> <td>Nicholas Sparks</td> <td>Novel</td> </tr> </table> </body> </html> OUTPUT->
  • 20. CSS property Description border Defines a border to the table border-collapse Defines a border to each cells of the table padding Add padding to the cells Text-align Aligns text of the cell (left, right, center) Border-spacing Sets space in between the cells width Defines width of the table
  • 21. table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 15px; } th { text-align: left; } table { border-spacing: 5px; }
  • 22. <!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; text-align: left; } </style> </head> <body> <h4>Cell that spans two columns</h4> <table style="width:100%"> <tr> <th>Color Name</th> <th colspan="2">Color Shades</th> </tr> <tr> <td>Red</td> <td>Light Red</td> <td>Deep Red</td> </tr> </table> </body> </html> OUTPUT->
  • 23. <!DOCTYPE html> <html> <head> <style> table, th, td { border: 2px solid black; } th, td { padding: 10px; text-align: left; } </style> </head> <body> <h4>Cell that spans more than one row</h4> <table style="width:100%"> <tr> <th>Color Name</th> <td>Red</td> </tr> <tr> <th rowspan="2">Color Shades</th> <td>Light Red</td> </tr> <tr> <td>Deep Red</td> </tr> </table> </body> </html> OUTPUT->
  • 24. <!DOCTYPE html> <html> <head> <style> table, th, td { border: 2px solid black; border-collapse: collapse; } th, td { padding: 10px; text-align: left; } #t01 { width: 100%; background-color: #ff3333 } </style> </head> <body> <h4>Use of id attribute for styling HTML tables</h4> <table style="width:100%"> <tr> <th>Color Name</th> <td>Red</td> </tr> <tr> <th rowspan="2">Color Shades</th> <td>Light Red</td> </tr> <tr> <td>Deep Red</td> </tr> </table> <br> <table id="t01"> <tr> <th>Color Name</th> <th colspan="2">Color Shades</th> </tr> <tr> <td>Red</td> <td>Light Red</td> <td>Deep Red</td> </tr> </table> </body> </html>
  • 26.  Lists in HTML: Ordered, Unordered, and description.  Table in HTML  Styled table with CSS property
  • 27. 1. Create a page that shows shopping list. Use Ordered list, type roman numbers. 2. In the same page use unordered list of type square to display list of books. 3. In the same page, add a table showing address book of 5 people. Use colspan and row span attribute. Style the table accordingly.