SlideShare a Scribd company logo
2
Most read
3
Most read
16
Most read
FYBSC IT Web Programming Unit II  Html 5 Tables, Forms and Media
 Creating tables:
› creating simple table,
› specifying the size of the table,
› specifying the width of the column,
› merging table cells,
› using tables for page layout,
 formatting tables:
› applying table borders,
› applying background and foreground fills,
› changing cell padding,
› spacing and alignment,
 creating user forms:
› creating basic form,
› using check boxes and option buttons,
› creating lists, additional input types in HTML5,
 Incorporating sound and video:
› audio and video in HTML5,
› HTML multimedia basics,
› embedding video clips,
› incorporating audio on web page
 The <table> tag defines an HTML table.
 An HTML table consists of the <table> element and one or
more <tr>, <th>, and <td> elements.
 The <tr> element defines a table row,
 the <th> element defines a table header, and
 the <td> element defines a table cell.
 A more complex HTML table may also include <caption>,
<col>, <colgroup>, <thead>, <tfoot>, and <tbody>
elements.
 A simple HTML table, containing two columns and two rows:
<html>
<head>
<title>Table Demo</title>
</head>
<body background="planets.jpg">
<table BORDER="1" bgcolor="red">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
</body>
</table>
 A simple HTML table, containing two columns and two rows:
<html>
<head>
<title>Table Demo</title>
</head>
<body background="planets.jpg">
<table BORDER="1" bgcolor="red“ width=“500” height=“300”>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
</body>
</table>
<html>
<head>
<title>Table Demo</title>
</head>
<body>
<table BORDER="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td rowspan="2">$100</td>
</tr>
<tr>
<td>February</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>Table Page Layout</title>
</head>
<body>
<table cols="2" WIDTH=100% BORDER="0">
<tr>
<td width="20%" bgcolor="Yellow">
Left Coloumn<br>
<a href="navbar.html"> Click Me </a><br></td>
<td width="80%" valign="top" bgcolor="black">
Right Coloumn<br>
<h1 style="color:red">Importance of Education in Society </h1>
<p style="color:white">
Education, if looked at beyond its conventional boundaries, forms the very essence of all our actions.
What we do is what we know and have learned, either through instructions or through observation and
assimilation. </p>
</td>
</tr>
</table>
</body>
</html>
 here are different types of form controls that
you can use to collect data using HTML
form:
› Text Input Controls.
› Checkboxes Controls.
› Radio Box Controls.
› Select Box Controls.
› File Select boxes.
› Clickable Buttons.
› Submit and Reset Button.
The HTML <form> element defines a form that is used to collect user input
<form>
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname">
<input type="submit" value="Submit">
</form>
The <input> Element
Type Description
<input type="text"> Defines a one-line text input field
<input type="radio">
Defines a radio button (for selecting
one of many choices)
<input type="submit">
Defines a submit button (for submitting
the form)
The <input> element can be displayed in several ways,
depending on the type attribute.
Here are some examples:
<html>
<head>
<title>User Form</title>
</head>
<body>
<form action="action_page.php">
First name:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname"><br>
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html>
 The action attribute defines the action to be performed
when the form is submitted.
 Normally, the form data is sent to a web page on the
server when the user clicks on the submit button.
 In the example the form data is sent to a page on the
server called "action_page.php". This page contains a
server-side script that handles the form data:
 <form action="action_page.php">
 <input type="radio"> defines a radio button.
 Radio buttons let a user select ONE of a
limited number of choices
<form>
<input type="radio" name="gender" value="male" checked>
Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
</form>
 <input type="submit"> defines a button for
submitting the form data to a form-handler.
 The form-handler is typically a server page with
a script for processing input data.
 The form-handler is specified in the form's
action attribute
 <input type="submit" value="Submit">
 The <fieldset> element is used to group related data in a form.
 The <legend> element defines a caption for the <fieldset>
element.
<form action="action_page.php">
<fieldset>
<legend>Personal information:</legend>
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
FYBSC IT Web Programming Unit II  Html 5 Tables, Forms and Media

More Related Content

PPTX
PDF
SQL injection: Not only AND 1=1
PPT
HTML Tags
PPTX
HTML5 Topic 1
PDF
PPTX
HTML Tables and Forms
PPTX
Html tables, forms and audio video
SQL injection: Not only AND 1=1
HTML Tags
HTML5 Topic 1
HTML Tables and Forms
Html tables, forms and audio video

Similar to FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media (20)

PDF
Web app development_html_02
PPTX
Html&css lesson 2
PPTX
Forms
PPTX
Section1 HTML (part2) Web technology for b
PPTX
Html - Tables, Forms and Frames by Telerik Academy
PPTX
Chapter - 4.pptx marketing trends social media company profilesmarketing tren...
PPTX
Html 5-tables-forms-frames (1)
PDF
Additional Resources for HYPER TEXT MARKUP LANGUAGE
PPTX
Web Design Lecture 4.pptx
PDF
Web Design & Development - Session 4
PPT
WEB DEVELOPMENT EXERCISE-2 LAB NAIDU.ppt
PPTX
Html forms
PPTX
Lecture-5.pptx
PDF
Chapter 2 - HTML5.pdf
PPTX
Html forms
PPSX
Lecture-5.ppsx
PPTX
The Complete HTML
PPTX
PPTX
Html form tag
Web app development_html_02
Html&css lesson 2
Forms
Section1 HTML (part2) Web technology for b
Html - Tables, Forms and Frames by Telerik Academy
Chapter - 4.pptx marketing trends social media company profilesmarketing tren...
Html 5-tables-forms-frames (1)
Additional Resources for HYPER TEXT MARKUP LANGUAGE
Web Design Lecture 4.pptx
Web Design & Development - Session 4
WEB DEVELOPMENT EXERCISE-2 LAB NAIDU.ppt
Html forms
Lecture-5.pptx
Chapter 2 - HTML5.pdf
Html forms
Lecture-5.ppsx
The Complete HTML
Html form tag
Ad

More from Arti Parab Academics (20)

PPTX
COMPUTER APPLICATIONS Module 4.pptx
PPTX
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
PPTX
COMPUTER APPLICATIONS Module 5.pptx
PPTX
COMPUTER APPLICATIONS Module 1 CAH.pptx
PPTX
COMPUTER APPLICATIONS Module 3.pptx
PPTX
COMPUTER APPLICATIONS Module 2.pptx
PPTX
Health Informatics- Module 5-Chapter 2.pptx
PPTX
Health Informatics- Module 5-Chapter 3.pptx
PPTX
Health Informatics- Module 4-Chapter 3.pptx
PPTX
Health Informatics- Module 3-Chapter 2.pptx
PPTX
Health Informatics- Module 4-Chapter 1.pptx
PPTX
Health Informatics- Module 4-Chapter 2.pptx
PPTX
Health Informatics- Module 3-Chapter 3.pptx
PPTX
Health Informatics- Module 5-Chapter 1.pptx
PPTX
Health Informatics- Module 3-Chapter 1.pptx
PPTX
Health Informatics- Module 2-Chapter 2.pptx
PPTX
Health Informatics- Module 1-Chapter 1.pptx
PPTX
Health Informatics- Module 2-Chapter 3.pptx
PPTX
Health Informatics- Module 2-Chapter 1.pptx
PPTX
Health Informatics- Module 1-Chapter 2.pptx
COMPUTER APPLICATIONS Module 4.pptx
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
COMPUTER APPLICATIONS Module 5.pptx
COMPUTER APPLICATIONS Module 1 CAH.pptx
COMPUTER APPLICATIONS Module 3.pptx
COMPUTER APPLICATIONS Module 2.pptx
Health Informatics- Module 5-Chapter 2.pptx
Health Informatics- Module 5-Chapter 3.pptx
Health Informatics- Module 4-Chapter 3.pptx
Health Informatics- Module 3-Chapter 2.pptx
Health Informatics- Module 4-Chapter 1.pptx
Health Informatics- Module 4-Chapter 2.pptx
Health Informatics- Module 3-Chapter 3.pptx
Health Informatics- Module 5-Chapter 1.pptx
Health Informatics- Module 3-Chapter 1.pptx
Health Informatics- Module 2-Chapter 2.pptx
Health Informatics- Module 1-Chapter 1.pptx
Health Informatics- Module 2-Chapter 3.pptx
Health Informatics- Module 2-Chapter 1.pptx
Health Informatics- Module 1-Chapter 2.pptx
Ad

Recently uploaded (20)

PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Lesson notes of climatology university.
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
2.FourierTransform-ShortQuestionswithAnswers.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Final Presentation General Medicine 03-08-2024.pptx
202450812 BayCHI UCSC-SV 20250812 v17.pptx
O5-L3 Freight Transport Ops (International) V1.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pharmacology of Heart Failure /Pharmacotherapy of CHF
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
VCE English Exam - Section C Student Revision Booklet
GDM (1) (1).pptx small presentation for students
Pharma ospi slides which help in ospi learning
Lesson notes of climatology university.
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

FYBSC IT Web Programming Unit II Html 5 Tables, Forms and Media

  • 2.  Creating tables: › creating simple table, › specifying the size of the table, › specifying the width of the column, › merging table cells, › using tables for page layout,  formatting tables: › applying table borders, › applying background and foreground fills, › changing cell padding, › spacing and alignment,  creating user forms: › creating basic form, › using check boxes and option buttons, › creating lists, additional input types in HTML5,  Incorporating sound and video: › audio and video in HTML5, › HTML multimedia basics, › embedding video clips, › incorporating audio on web page
  • 3.  The <table> tag defines an HTML table.  An HTML table consists of the <table> element and one or more <tr>, <th>, and <td> elements.  The <tr> element defines a table row,  the <th> element defines a table header, and  the <td> element defines a table cell.  A more complex HTML table may also include <caption>, <col>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.
  • 4.  A simple HTML table, containing two columns and two rows: <html> <head> <title>Table Demo</title> </head> <body background="planets.jpg"> <table BORDER="1" bgcolor="red"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> </body> </table>
  • 5.  A simple HTML table, containing two columns and two rows: <html> <head> <title>Table Demo</title> </head> <body background="planets.jpg"> <table BORDER="1" bgcolor="red“ width=“500” height=“300”> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> </table> </body> </table>
  • 7. <html> <head> <title>Table Page Layout</title> </head> <body> <table cols="2" WIDTH=100% BORDER="0"> <tr> <td width="20%" bgcolor="Yellow"> Left Coloumn<br> <a href="navbar.html"> Click Me </a><br></td> <td width="80%" valign="top" bgcolor="black"> Right Coloumn<br> <h1 style="color:red">Importance of Education in Society </h1> <p style="color:white"> Education, if looked at beyond its conventional boundaries, forms the very essence of all our actions. What we do is what we know and have learned, either through instructions or through observation and assimilation. </p> </td> </tr> </table> </body> </html>
  • 8.  here are different types of form controls that you can use to collect data using HTML form: › Text Input Controls. › Checkboxes Controls. › Radio Box Controls. › Select Box Controls. › File Select boxes. › Clickable Buttons. › Submit and Reset Button.
  • 9. The HTML <form> element defines a form that is used to collect user input
  • 10. <form> First name:<br> <input type="text" name="firstname"><br> Last name:<br> <input type="text" name="lastname"> <input type="submit" value="Submit"> </form>
  • 11. The <input> Element Type Description <input type="text"> Defines a one-line text input field <input type="radio"> Defines a radio button (for selecting one of many choices) <input type="submit"> Defines a submit button (for submitting the form) The <input> element can be displayed in several ways, depending on the type attribute. Here are some examples:
  • 12. <html> <head> <title>User Form</title> </head> <body> <form action="action_page.php"> First name:<br> <input type="text" name="firstname"><br> Last name:<br> <input type="text" name="lastname"><br> <input type="radio" name="gender" value="male" checked> Male<br> <input type="radio" name="gender" value="female"> Female<br> <br> <input type="submit" value="Submit"> </form> </body> </html>
  • 13.  The action attribute defines the action to be performed when the form is submitted.  Normally, the form data is sent to a web page on the server when the user clicks on the submit button.  In the example the form data is sent to a page on the server called "action_page.php". This page contains a server-side script that handles the form data:  <form action="action_page.php">
  • 14.  <input type="radio"> defines a radio button.  Radio buttons let a user select ONE of a limited number of choices <form> <input type="radio" name="gender" value="male" checked> Male<br> <input type="radio" name="gender" value="female"> Female<br> <input type="radio" name="gender" value="other"> Other </form>
  • 15.  <input type="submit"> defines a button for submitting the form data to a form-handler.  The form-handler is typically a server page with a script for processing input data.  The form-handler is specified in the form's action attribute  <input type="submit" value="Submit">
  • 16.  The <fieldset> element is used to group related data in a form.  The <legend> element defines a caption for the <fieldset> element. <form action="action_page.php"> <fieldset> <legend>Personal information:</legend> First name:<br> <input type="text" name="firstname" value="Mickey"><br> Last name:<br> <input type="text" name="lastname" value="Mouse"><br><br> <input type="submit" value="Submit"> </fieldset> </form>