SlideShare a Scribd company logo
2
Most read
3
Most read
12
Most read
Computer Practical Exam
1. Registration form using HTML. (10)
HTML CODE:
<html>
<head>
<title> Registration Form </title>
</head>
<body>
<center><table border=2>
<tr>
<td colspan=2><center>Registration Form</center></td>
</tr>
<tr>
<td>Name:</td>
<td><input type="text"></td>
</tr>
<tr>
<td>Address:</td>
<td><textarea rows=5 cols=30></textarea></td>
</tr>
<tr>
<td>Gender:</td>
<td><input type="radio" name="gender">Male
<input type="radio" name="gender">Female</td>
</tr>
<tr>
<td>Hobbies:</td>
<td><input type="checkbox">Reading
<input type="checkbox">Writing
<input type="checkbox">Dancing</td>
</tr>
<tr>
<td>City:</td>
<td>
<select name="city">
<option>Surat</option>
<option>Mumbai</option>
<option>Rajkot</option>
<option>Pune</option>
</select>
</td>
</tr>
<tr>
<td colspan=2>
<center>
<input type="submit" name="submit">
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input type="reset" name="reset"></td>
</center>
</tr>
</table>
</center>
</body>
</html>
2. CSS. (05)
12th Computer practical pattern (sci & com both)
12th Computer practical pattern (sci & com both)
12th Computer practical pattern (sci & com both)
12th Computer practical pattern (sci & com both)
12th Computer practical pattern (sci & com both)
3. Registration form in KompoZer. (05)
4. Registration form validation using JavaScript. (10)
Javascript code for validation:
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>regi</title>
<script>
function validateform()
{
var x=document.form1.name.value;
var y=document.form1.pincode.value;
if(x==null || x=="")
{
alert("Please enter your name");
document.form1.name.focus();
return false;
}
if(y=="" || isNaN(y) || y.length<6 || y.length>6)
{
alert("Please enter your pincode");
document.form1.pincode.focus();
return false;
}
if((document.form1.gender[0].checked==false)&&
(document.form1.gender[1].checked==false))
{
alert("Select your gender: Male or Female");
document.form1.gender[0].focus();
return false;
}
if((document.form1.singing.checked==false)&&
(document.form1.dancing.checked==false))
{
alert("Select your atleast one hobby");
document.form1.singing.focus();
return false;
}
}
</script>
</head>
(Go to form properties-> Advanced edit-> Javascript
event : write “return validateform()”)
5. Website. (20)
1. Design (10)
2. Scripting (10)
Name of all checkbox will be same. Here “add” is given
name.
In every checkbox properties, write event name. Here:
onchange=checkTotal().
(Go to form properties-> Advanced edit-> Javascript event
: write “return validateform()”)
<script>
function checkTotal() {
document.index.Total.value =' ';
var sum = 0;
for (i=0;i<document.index.add.length;i++) {
if (document.index.add[i].checked) {
sum = sum + parseInt(document.index.add[i].value);
} } document.index.Total.value = sum; }
function validateform() {
if((document.index.add[0].checked==false) &&
(document.index.add[1].checked==false) &&
(document.index.add[2].checked==false))
{ alert("Select atleast one option");
document.index.add[0].focus();
return false; }
alert("Order Successfully Placed");
}
</script>

More Related Content

PPTX
Html&css lesson 2
TXT
PPTX
Form design by Dreamweaver CS3/CS5
PDF
Html table tags
PPT
Adding tables to your web page
PPTX
html-table
PDF
Web Developement Workshop (Oct 2009 -Day 1)
PPTX
Web design - Working with tables in HTML
Html&css lesson 2
Form design by Dreamweaver CS3/CS5
Html table tags
Adding tables to your web page
html-table
Web Developement Workshop (Oct 2009 -Day 1)
Web design - Working with tables in HTML

Similar to 12th Computer practical pattern (sci & com both) (20)

DOC
Form & frame
PPTX
Lect# 1 html part ii
PPTX
data insert in codeigniter.pptx
PPTX
Computer Html Links
DOCX
Railway res form
PDF
Webpro2 pert6 7_login_menu_
PPTX
HTML Tables and Forms
PPTX
Java script form validation
PPTX
Tables and their padding in HTML etc.pptx
PDF
Practicals it
DOCX
html file
PPTX
Section1 HTML (part2) Web technology for b
PPTX
Html 5-tables-forms-frames (1)
PDF
Html tables examples
PPTX
01 HTML-Tables-1.pptx
PDF
vue-components.pdf
PPTX
Sessionex1
PPTX
A PPT on Creation of Tables in HTML, WEB Designing
Form & frame
Lect# 1 html part ii
data insert in codeigniter.pptx
Computer Html Links
Railway res form
Webpro2 pert6 7_login_menu_
HTML Tables and Forms
Java script form validation
Tables and their padding in HTML etc.pptx
Practicals it
html file
Section1 HTML (part2) Web technology for b
Html 5-tables-forms-frames (1)
Html tables examples
01 HTML-Tables-1.pptx
vue-components.pdf
Sessionex1
A PPT on Creation of Tables in HTML, WEB Designing
Ad

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PDF
Computing-Curriculum for Schools in Ghana
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Classroom Observation Tools for Teachers
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cell Structure & Organelles in detailed.
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Complications of Minimal Access Surgery at WLH
Computing-Curriculum for Schools in Ghana
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Classroom Observation Tools for Teachers
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Final Presentation General Medicine 03-08-2024.pptx
Pharma ospi slides which help in ospi learning
2.FourierTransform-ShortQuestionswithAnswers.pdf
A systematic review of self-coping strategies used by university students to ...
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Structure & Organelles in detailed.
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
GDM (1) (1).pptx small presentation for students
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Ad

12th Computer practical pattern (sci & com both)

  • 1. Computer Practical Exam 1. Registration form using HTML. (10) HTML CODE: <html> <head> <title> Registration Form </title> </head> <body> <center><table border=2> <tr> <td colspan=2><center>Registration Form</center></td> </tr> <tr> <td>Name:</td> <td><input type="text"></td> </tr> <tr> <td>Address:</td> <td><textarea rows=5 cols=30></textarea></td> </tr>
  • 2. <tr> <td>Gender:</td> <td><input type="radio" name="gender">Male <input type="radio" name="gender">Female</td> </tr> <tr> <td>Hobbies:</td> <td><input type="checkbox">Reading <input type="checkbox">Writing <input type="checkbox">Dancing</td> </tr> <tr> <td>City:</td> <td> <select name="city"> <option>Surat</option> <option>Mumbai</option> <option>Rajkot</option> <option>Pune</option> </select> </td> </tr> <tr> <td colspan=2> <center> <input type="submit" name="submit"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp <input type="reset" name="reset"></td> </center> </tr> </table> </center> </body> </html>
  • 9. 3. Registration form in KompoZer. (05)
  • 10. 4. Registration form validation using JavaScript. (10) Javascript code for validation: <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>regi</title> <script> function validateform() { var x=document.form1.name.value; var y=document.form1.pincode.value; if(x==null || x=="") { alert("Please enter your name"); document.form1.name.focus(); return false; } if(y=="" || isNaN(y) || y.length<6 || y.length>6) { alert("Please enter your pincode"); document.form1.pincode.focus();
  • 11. return false; } if((document.form1.gender[0].checked==false)&& (document.form1.gender[1].checked==false)) { alert("Select your gender: Male or Female"); document.form1.gender[0].focus(); return false; } if((document.form1.singing.checked==false)&& (document.form1.dancing.checked==false)) { alert("Select your atleast one hobby"); document.form1.singing.focus(); return false; } } </script> </head> (Go to form properties-> Advanced edit-> Javascript event : write “return validateform()”)
  • 12. 5. Website. (20) 1. Design (10) 2. Scripting (10) Name of all checkbox will be same. Here “add” is given name. In every checkbox properties, write event name. Here: onchange=checkTotal(). (Go to form properties-> Advanced edit-> Javascript event : write “return validateform()”) <script> function checkTotal() { document.index.Total.value =' '; var sum = 0; for (i=0;i<document.index.add.length;i++) { if (document.index.add[i].checked) { sum = sum + parseInt(document.index.add[i].value); } } document.index.Total.value = sum; } function validateform() { if((document.index.add[0].checked==false) && (document.index.add[1].checked==false) && (document.index.add[2].checked==false)) { alert("Select atleast one option"); document.index.add[0].focus(); return false; } alert("Order Successfully Placed"); } </script>