SlideShare a Scribd company logo
Web Forms and
HTML
Sam
Lecture-3
Lists In Html
• We can List out our items, subjects or menu in the form of a list. HTML gives you
three different types of lists.
1. <ul> - An unordered list. This will list items using bullets.
2. <ol> - A ordered list. This will use different schemes of numbers to list your items.
3. <dl> - A definition list. This will arrange your items in the same way as they are arranged in a
dictionary.
Unordered Lists:
• An unordered list is a collection of related items that have no special order or sequence.
• This list is created by using <ul> tag.
• Each item in the list is marked with a butllet.
• The bullet itself comes in three flavors:
• squares,
• discs,
• circles.
• The default bullet displayed by most web browsers is the traditional full disc.
type="square" type="disc" type="circle"
Lists In Html
• Example:
<ul type= “disc” >
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
</ul>
Ordered Lists:
• There are 4 other types of ordered lists.
• Instead of generic numbers you can replace them with Roman numberals or letters, both capital and lower-case.
• Use the type attribute to change the numbering.
• Start attribute is used for starting number as desired.
• Example:
<ol type= “a” start="50" >
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4</li>
</ol>
type="squa
re"
type="disc
"
type="circl
e"
 Item1
 Item2
 Item3
 Item4
• Item1
• Item2
• Item3
• Item4
o Item1
o Item2
o Item3
o Item4
Lists In Html
• Definition Term Lists:
• Make definition lists as seen in dictionaries using the <dl> tag.
• These lists displace the term word just above the definition itself for a unique
look.
• It's wise to bold the terms to displace them further.
• <dl> - defines the start of the list
• <dt> - definition term
• <dd> - defining definition
Type=“a” Type=“A” Type=“i” Type=“I”
a. Item1
b. Item2
c. Item3
d. Item4
A. Item1
B. Item2
C. Item3
D.Item4
i. Item1
ii. Item2
iii. Item3
iv. Item4
I. Item1
II. Item2
III.Item3
IV.Item4
Lists In Html
• Example:
<dl>
<dt><b>Html</b></dt>
<dd>HyperText Mark Up Language</dd>
<dt><b>Xhtml</b></dt>
<dd>Xtensibile HyperText Mark Up Language </dd>
</dl>
Html
     HyperText Mark Up Language.
Xhtml
      Xtensibile HyperText Mark Up Language.
Tables In Html
 
10 am -
noon
noon - 2
pm
2 pm - 4
pm
Monday Home Ec Math Geography
Wednesday History
Social
Studies
Music
Tables In Html (Cell Spacing And Cell Padding)
Tables In Html (Colspan & Rowspan)
• Colspan:
•  colspan attribute used with <td> if you want to merge two or more
columns into a single column.
• Rowspan:
• rowspan if you want to merge two or more rows.
• For example:
• We might want to create header cells for each Technology in our table
of
• id,
• Name
• Shift.
• In this table, the header cells in the first and fifth rows span across two
columns to indicate the Technology for each group of names.
Example Table
<TABLE BORDER=2 CELLPADDING=4>
<TR>
<TD COLSPAN=4 BGCOLOR=“skyblue" align="center" >Students
Information </TD>
</TR>
<TR>
<TH ROWSPAN=3 BGCOLOR="#99CCFF">PHP</TH>
<TD>1153.</TD><TD>Ahmed</TD> <TD>Morning</TD>
</TR>
<TR>
<TD>2785.</TD><TD>Asad</TD> <TD>Evening</TD>
</TR>
<TR>
<TD>110.</TD><TD>Manzoor</TD> <TD>Morning</TD>
</TR>
<TR>
<TH ROWSPAN=3 BGCOLOR="#99CCFF">System Administration</TH>
<TD>1566.</TD><TD>Tariq</TD> <TD>Morning</TD>
</TR>
<TR>
<TD>784.</TD><TD>Waheed</TD> <TD>Evening</TD>
</TR>
<TR>
<TD>222.</TD><TD>Saleem</TD> <TD>Morning</TD>
</TR>
</TABLE>
Use Of Thead,Tfoot,Tbody
• The advance structure of table be divided into three portions:
• Head and Foot are similar to headers and footers in word processing.
• The body is the main content of the table.
• The three elements for separating the head, body, and foot of a table
are:
• <thead> - to create a separate table header.
• <tbody> - to indicate the main body of the table.
• <tfoot> - to create a separate table footer.
• A table may contain several <tbody> elements to indicate
different pages or groups of data.
• But it is notable that <thead> and <tfoot> tags should appear before
<tbody>.
Example
<table border="1" width="100%">
<thead>
<tr>
<td colspan="4">This is the head of the table</td>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4">This is the foot of the table
</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr> ...more rows here containing four cells... </tr>
</tbody>
<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
<tr> ...more rows here containing four cells... </tr>
</tbody>
</table>
Assignments
• Practice Lists
• Create an unordered list
• Create an ordered list
• Use various bullet styles
• Created nested lists
• Use the font tag in conjunction with lists
• Create definition lists
• Create Table structure as explained
• Generate Dynamic Table using Forms
1. Create  Page1 with Form consisting of Textfield - getting no: of Matematical tables to print and
a Submit Button.
2. Create a Page2 consisting of :
• Mathematical Table in tablular format each cell consist of table starting from 1 to 12.
• The row of table shoud break after 4 cells.
• Program should be dynamic have variable of No: of table to generate.
Assignments
• Convert Marksheet Assigment
• Extend you marksheet assignment by giving all subjects
marks using textfield on page 1 and show the result as in previous
marksheet assignment.
• Create Calculator using Form
• Create a Page1 consisting of :
• 4 text Fields
• Value1
• Value2
• Operator
• Result
• Submit/Calculate Button.
Note: The Result Should be shown in result textfield after submit/calculate 
• Create Webpage Layout using tables
Questions
?

More Related Content

PPT
Web forms and html lecture Number 3
PPTX
Introduction to html
PPTX
html-table
PPTX
Use of Lists and Tables in HTML
PPTX
Css starting
PPTX
PPTX
Searching In SharePoint
PPTX
Lecture4 web design and development
Web forms and html lecture Number 3
Introduction to html
html-table
Use of Lists and Tables in HTML
Css starting
Searching In SharePoint
Lecture4 web design and development

What's hot (13)

PDF
TM 1st quarter - 4th meeting
PPTX
HTML Tables
PPT
Table tags 2
PPTX
Cascading Style Sheet
PPT
Cataloging basics
PPTX
Web topic 15 1 basic css layout
PPT
Descriptive cataloging: Overview
PPTX
HTML Intro
PPTX
Id and class selector
PDF
when the link makes sense
PPTX
Lecture #2 xml
PPT
Introduction To Xml
PDF
Z04 etano template_basics
TM 1st quarter - 4th meeting
HTML Tables
Table tags 2
Cascading Style Sheet
Cataloging basics
Web topic 15 1 basic css layout
Descriptive cataloging: Overview
HTML Intro
Id and class selector
when the link makes sense
Lecture #2 xml
Introduction To Xml
Z04 etano template_basics
Ad

Viewers also liked (11)

PPT
Web forms and html (lect 4)
PPTX
Designing web pages html forms and input
PPT
Tables and Forms in HTML
PPTX
html forms
PPTX
HTML Forms Tutorial
PPSX
CSS-Cascading Style Sheets - Introduction
PDF
Html forms
PPTX
Html forms
PDF
2. HTML forms
PPT
Web forms and html (lect 1)
PDF
Getting Information through HTML Forms
Web forms and html (lect 4)
Designing web pages html forms and input
Tables and Forms in HTML
html forms
HTML Forms Tutorial
CSS-Cascading Style Sheets - Introduction
Html forms
Html forms
2. HTML forms
Web forms and html (lect 1)
Getting Information through HTML Forms
Ad

Similar to Web forms and html (lect 3) (20)

PPT
html-lists-tables.ppt
PPT
html-lists-hdhdhdhdhddhdhdhdhdhdhdtables.ppt
PPT
html-lists-tables.ppt,,,,,,,,,,,,,,,,,,,
PPTX
uptu web technology unit 2 html
PPTX
tableslist.pptx
PPTX
HTML Basic
PPTX
Web design - Working with Text and Lists in HTML
PDF
hyper text markup language ppt-100605011058-phpapp02.pdf
PDF
basic knowledge abot html
PPTX
HTML Basics, Web Development Part-2.pptx
PDF
Advanced html
PPT
M02 un09 p01
PPT
AK html
PPTX
Ifi7174 lesson1
PPTX
BITM3730Week2.pptx
PPT
Html introduction Part-2
PPTX
Html presentation
html-lists-tables.ppt
html-lists-hdhdhdhdhddhdhdhdhdhdhdtables.ppt
html-lists-tables.ppt,,,,,,,,,,,,,,,,,,,
uptu web technology unit 2 html
tableslist.pptx
HTML Basic
Web design - Working with Text and Lists in HTML
hyper text markup language ppt-100605011058-phpapp02.pdf
basic knowledge abot html
HTML Basics, Web Development Part-2.pptx
Advanced html
M02 un09 p01
AK html
Ifi7174 lesson1
BITM3730Week2.pptx
Html introduction Part-2
Html presentation

More from Salman Memon (20)

PPTX
PHP Array very Easy Demo
PPTX
Complete Lecture on Css presentation
PPTX
How to Use Dreamweaver cs6
PPTX
what is programming and its clear Concepts to the point
PPTX
Working with variables in PHP
PPT
Web forms and html (lect 5)
PPT
Web forms and html (lect 2)
PPT
Managing in the Future Enterprise
PPT
Overview of Technology Management
PPT
Align Information Technology and Business Strategy
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PPTX
Email security netwroking
PPTX
Email security - Netwroking
PPTX
Query decomposition in data base
PPTX
Time Management
PPTX
Multimedea device and routes
PPTX
Hash function
PPTX
Data clustring
PPT
Controlling User Access -Data base
PPT
Database Objects
PHP Array very Easy Demo
Complete Lecture on Css presentation
How to Use Dreamweaver cs6
what is programming and its clear Concepts to the point
Working with variables in PHP
Web forms and html (lect 5)
Web forms and html (lect 2)
Managing in the Future Enterprise
Overview of Technology Management
Align Information Technology and Business Strategy
WHITE BOX & BLACK BOX TESTING IN DATABASE
Email security netwroking
Email security - Netwroking
Query decomposition in data base
Time Management
Multimedea device and routes
Hash function
Data clustring
Controlling User Access -Data base
Database Objects

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
master seminar digital applications in india
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Lesson notes of climatology university.
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Computing-Curriculum for Schools in Ghana
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Presentation on HIE in infants and its manifestations
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
Cell Types and Its function , kingdom of life
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial disease of the cardiovascular and lymphatic systems
master seminar digital applications in india
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
Lesson notes of climatology university.
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
FourierSeries-QuestionsWithAnswers(Part-A).pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Computing-Curriculum for Schools in Ghana
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Presentation on HIE in infants and its manifestations
Abdominal Access Techniques with Prof. Dr. R K Mishra

Web forms and html (lect 3)

  • 3. Lists In Html • We can List out our items, subjects or menu in the form of a list. HTML gives you three different types of lists. 1. <ul> - An unordered list. This will list items using bullets. 2. <ol> - A ordered list. This will use different schemes of numbers to list your items. 3. <dl> - A definition list. This will arrange your items in the same way as they are arranged in a dictionary. Unordered Lists: • An unordered list is a collection of related items that have no special order or sequence. • This list is created by using <ul> tag. • Each item in the list is marked with a butllet. • The bullet itself comes in three flavors: • squares, • discs, • circles. • The default bullet displayed by most web browsers is the traditional full disc. type="square" type="disc" type="circle"
  • 4. Lists In Html • Example: <ul type= “disc” > <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</li> </ul> Ordered Lists: • There are 4 other types of ordered lists. • Instead of generic numbers you can replace them with Roman numberals or letters, both capital and lower-case. • Use the type attribute to change the numbering. • Start attribute is used for starting number as desired. • Example: <ol type= “a” start="50" > <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</li> </ol> type="squa re" type="disc " type="circl e"  Item1  Item2  Item3  Item4 • Item1 • Item2 • Item3 • Item4 o Item1 o Item2 o Item3 o Item4
  • 5. Lists In Html • Definition Term Lists: • Make definition lists as seen in dictionaries using the <dl> tag. • These lists displace the term word just above the definition itself for a unique look. • It's wise to bold the terms to displace them further. • <dl> - defines the start of the list • <dt> - definition term • <dd> - defining definition Type=“a” Type=“A” Type=“i” Type=“I” a. Item1 b. Item2 c. Item3 d. Item4 A. Item1 B. Item2 C. Item3 D.Item4 i. Item1 ii. Item2 iii. Item3 iv. Item4 I. Item1 II. Item2 III.Item3 IV.Item4
  • 6. Lists In Html • Example: <dl> <dt><b>Html</b></dt> <dd>HyperText Mark Up Language</dd> <dt><b>Xhtml</b></dt> <dd>Xtensibile HyperText Mark Up Language </dd> </dl> Html      HyperText Mark Up Language. Xhtml       Xtensibile HyperText Mark Up Language.
  • 7. Tables In Html   10 am - noon noon - 2 pm 2 pm - 4 pm Monday Home Ec Math Geography Wednesday History Social Studies Music
  • 8. Tables In Html (Cell Spacing And Cell Padding)
  • 9. Tables In Html (Colspan & Rowspan) • Colspan: •  colspan attribute used with <td> if you want to merge two or more columns into a single column. • Rowspan: • rowspan if you want to merge two or more rows. • For example: • We might want to create header cells for each Technology in our table of • id, • Name • Shift. • In this table, the header cells in the first and fifth rows span across two columns to indicate the Technology for each group of names.
  • 10. Example Table <TABLE BORDER=2 CELLPADDING=4> <TR> <TD COLSPAN=4 BGCOLOR=“skyblue" align="center" >Students Information </TD> </TR> <TR> <TH ROWSPAN=3 BGCOLOR="#99CCFF">PHP</TH> <TD>1153.</TD><TD>Ahmed</TD> <TD>Morning</TD> </TR> <TR> <TD>2785.</TD><TD>Asad</TD> <TD>Evening</TD> </TR> <TR> <TD>110.</TD><TD>Manzoor</TD> <TD>Morning</TD> </TR> <TR> <TH ROWSPAN=3 BGCOLOR="#99CCFF">System Administration</TH> <TD>1566.</TD><TD>Tariq</TD> <TD>Morning</TD> </TR> <TR> <TD>784.</TD><TD>Waheed</TD> <TD>Evening</TD> </TR> <TR> <TD>222.</TD><TD>Saleem</TD> <TD>Morning</TD> </TR> </TABLE>
  • 11. Use Of Thead,Tfoot,Tbody • The advance structure of table be divided into three portions: • Head and Foot are similar to headers and footers in word processing. • The body is the main content of the table. • The three elements for separating the head, body, and foot of a table are: • <thead> - to create a separate table header. • <tbody> - to indicate the main body of the table. • <tfoot> - to create a separate table footer. • A table may contain several <tbody> elements to indicate different pages or groups of data. • But it is notable that <thead> and <tfoot> tags should appear before <tbody>.
  • 12. Example <table border="1" width="100%"> <thead> <tr> <td colspan="4">This is the head of the table</td> </tr> </thead> <tfoot> <tr> <td colspan="4">This is the foot of the table </td> </tr> </tfoot> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> <tr> ...more rows here containing four cells... </tr> </tbody> <tbody> <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> <tr> ...more rows here containing four cells... </tr> </tbody> </table>
  • 13. Assignments • Practice Lists • Create an unordered list • Create an ordered list • Use various bullet styles • Created nested lists • Use the font tag in conjunction with lists • Create definition lists • Create Table structure as explained • Generate Dynamic Table using Forms 1. Create  Page1 with Form consisting of Textfield - getting no: of Matematical tables to print and a Submit Button. 2. Create a Page2 consisting of : • Mathematical Table in tablular format each cell consist of table starting from 1 to 12. • The row of table shoud break after 4 cells. • Program should be dynamic have variable of No: of table to generate.
  • 14. Assignments • Convert Marksheet Assigment • Extend you marksheet assignment by giving all subjects marks using textfield on page 1 and show the result as in previous marksheet assignment. • Create Calculator using Form • Create a Page1 consisting of : • 4 text Fields • Value1 • Value2 • Operator • Result • Submit/Calculate Button. Note: The Result Should be shown in result textfield after submit/calculate  • Create Webpage Layout using tables