0% found this document useful (0 votes)
164 views14 pages

Chapter 1 6th Notes

Uploaded by

vaishnavi.gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views14 pages

Chapter 1 6th Notes

Uploaded by

vaishnavi.gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

TPS Information Technolog

unordered list having names of


to create an
11. Write a html program
subjects they selected. two stude
Add ordered listof

Ans. :
(March 20 02 ,3,
Coding:
DOCTYTE html>

chtml>
<head>
<title>

Subjects offered
</title>

</head>

cbody>
<ul type"disc'>
di>Sanjana</li>
Kol>

<li>Maths</li>
dbEnglish</li>
</ob

i>Ritika</li>
<ob

di>Hindi</li>
<lbBiology</li>
</ob
</ub

</body>
</html>
Output :
Subjects offered

File | FIPS6202022-23/e...
Sanjana
1. Maths
2. English
- Ritika
1. Hindi
2. BiologY

12. Write a html program to create a list of 5 flowers in ordered list and list of 5 fruits
in unordered list.
Ans. : Coding : (March 2022, 23,, 24)
<ldoctype html>
<html>
<head>
<title>
Flowers & Fruits
</title>
</head>
<body>
<h1
align="center'>Flowers & Fruits</hl>
<h2>Flowers</h2>
<ol>

<li>Rose</li>
<li>Lily</li>
kli>Tulip</li>
<li>Orchid</li>
<li>Amber</li>
</ob
TSntomationTehnolgy

h2sFruitse/h2
cub
llbApple</i
elbGrapess/l>
l-Mango</li
loStrawbery</>
|<l>Blueberry</li
s/ub
</body>
</htmb
Output:
Flawers N tiits

Flowers & Fruits

Flowers

1. Rose
2. Lity
3. Tulip
4. Orchid
5. Amber

Fruits
Apple
Grapea
. Mango
Srawberry
Blueberry

13. Write a html program to create an ordered list of 2


and unordered list havìng 3 languages used for speakin
Ans.: Coding : computer languages. (March 2022, 23,2
<ldoctype html>
<html>
<head>
<title>
Liot in WTML

/head
body

12anguayes Used for tipenkiny /h2


o

nglishe/i
Hindi/1
/o
2-Computer Languayes</N2
lython</
<l>C</li>
bJava</i
</u>
</body>
</htm

Output:

G D Fle
/PS%202022-25/h
Ordered & Unordered List
Languages Used for
1, Enyish Speaking
2. Hindi

Computer
Pyhon
Lnguages
-
C++
Java
to create registration fori t8 name,to
14. Write a html program should have register
caption on the button mobile
of birth.Theform
submit tno,he
d

Ans.: Coding:
<ldoctype html>
<html>
(March.02 ,23
<head>
ktitle>
Registration Form
K/title>
</head>
<body>
<hl align='center">Registration Form</hl>
<form name="f1">
Enter Name
<input type="text" name-"t1"><br><br>
Enter Mobile Number
<input type="tel" name="t2" pattern="|0-9][10}"><br><br>
Select Date of Birth
<input type="date" name="t3"><br><br>
<input type="'submit" name="bl" value="Register">
</form>
</body>
k/html>
Output:
S List x X
Rec X

File FE/TPS%202022-23/h. D

Registration Form
Enter Name

Enter Mobile Number

Select Date of Birth dd-mm- yyyy O


|Register
TPS Information Technology 1-119

15. Write a html program to accept Name of the Employee (cannot be blank), Email
Id of the Employee, Salary (maximum 40000). The data should be sent to the
server. (March 2022, 23,24)
Ans.: Coding:
<ldoctype html>
<html>

<head>

<title>

Employee Details
</title>
</head>

<body>
<hl align='center"'>Employee Details</hl>
<form name="f1"s

Enter Name of Employee


<input type='text" name="t1" required><br><br>
Enter Email ID

<input type='email" name="t2"<br><br>


Enter Salary of Employee
<input type="'number" name="3" max="4000">cbr><b
kinput type="'submit" name-"b1">
</form>
</body>
</html>
Output:
+
9 Reg
F/TPS%202022-23/h..
c o File

Employee Details
Enter Name of Employee
Enter Email ID

Enter Salary of Employee


Submit

16.
Write a html program to create a form to accept students roll no(ln nunm
format), Unit test marks(maximum 30 marks), Terminal exam marks(maxim
80 marks). Include the name of the Subject teacher and send the data to the.
(March 2022, 23.
Ans.: Coding:
<ldoctype html>
<html>
<head>
ktitle>
Student Details
</title>
k/head>

<body>
<hl align="center">Student Details</hl>
<form name="fl">
Enter RolINo of Student
<input type='number" name-'rl'><bpcbr>
TPS Information Technology

Enter Unit Test Marks


kinputtype=""'number" name-"1" max="30"cbro<br
|Enter Terminal Marks
max="80"'><br>cbr
kinput type="'number' name="2"
Teacher
Enter Name of the Subject
<input type='text" name="3"><br><br
<input type='submit' name-"b1">
k/form>
</body>
k/html>
Output:
9 Student Details X +

4’C File F/TPS%202022-23/examples/prg1.html

Student Details
Enter RolINo of Student

Enter Unit Test Marks

Enter Terminal Marks

Enter Name of the Subject Teacher

Submit

17.
Write ahtml program to display "T-20 Cricket Match" in bold format and Calibri
font. Add any two sentence about "Cricket" subject below in orange color.
Design this using internal CSS. (March 2023, 24)
Ans. :

<!DOCTYPE html>
<html>
chead>
<titles
T-20Matches
</title>
<stvle>
ilfont-weightbold:font-family:Calibri,font-size:35pt)
b,em<color.orangel
</style>
chead>
cbody>
<i>T-20 Cricket Match</i>br><br>
schedule
<b>The International Cricket Council has released the for the
upcoming T
World Cup</b><brnor
<em>The 8 edition of the cricket extravaganza will take place in the
will feature 16 teams across seven venues</em> Australia and
</body>
</html
18. Write a html program to create an ordered list of Tea, Coffee and Milk an
unordered list under milk as Turmeric milk and plain milk. (March 2023,2
Ans. :
<DOCTYPE html>
<htmi>
<head>
<title>
Ordered and Unordered List
</title>
</headb
<body>
<ob
<li>Tea</li>
<lisCoffee</li>
<li>Milk</li>
<ub
<li>Turmeric Milk</li>
<li>Plain Milk</li>
</ub
</ob
</body></html>
TPS Intormatio

19. Write html program to display "Save Water" in blue color with dotted border and
30 pixel font size. Add any two sent about how to save water in a para in green
color. Use Internal CSS. (March 2023, 24)
Ans. :

<!DOCTYPE html>
<html>
<head>
<title>
Save Water
</title>
<style>
hl{color:blue;border-style:dotted;font-size:30px)
plcolorgreen)
</style>
</head>
cbody>
<hl align="center">Save Water</hl>
<p>
p align="right'>
Earth is the only known planet in this universe where life is
the availability of water and oxygen. Water is most possible only because of
the living beings on the earth. Without water no oneimportant
can exist
necessity of life for all
know that there is very less percentage of clean water means even for a day. We also
on the earth. So, we should not waste drinking water available
clean water and save it for future generations.
</p>
</body>
</html>
20. Write a html program to accept student ld
umbers), date of joining college, percentage in (combination of alphabets and
should be sent to the server. previous class (in digits). The data
Ans.: (March 2023, 24)
<!DOCTYPE html>
<html>
<head>
<title>
Student Information
TIS Inhormation

</titles
/head> 22.
dody>
Chorm name=">
Ar
Enter Student's ID
input tvpe="text" name="t1"><b»<br>

Select Date of Joining


Gnput type="date" name="d1"><br><br>

Enter Percentage in previous class


cinput type="number" name="n1"><br><brs
name-"b1"><br><br>
<input type= "submit"
</form>
</body>
</htm>
Write HTML Code to display alist of any student names having 4to 1numbe
21.
using relevant list tags. (March
Ans.:
<DOCTYPE htmlb
<html>
<head>
<title>
List of Student Names
</title>
</head>
cbody>
hl align="center"> Name of Students in XII IT</hl>
<ol reversed>
di>Pooja Chavan</i>
di>Amit Sharma</li>
<li>Mahesh Verma</li>
di>Nitin Singh</li>
</o>
</body>
</html>
TIS Information Technology 1-125

22. Write a html program to accept name of hospital, Email ld of the hospital,
number of beds in hospital. The data should be sent to the servet
March 2023, 24
Ans. :
<DOCTYPE html>
chtml>
chead>
ctitle>
City Hospital
</title>
<body>
<form name="f1"s
Enter Name of Hospital
<input type="text" name="t1"><br»<br>
Enter Enmail Id
<input type="email" name="t2"s<br><br>
Enter Nunmber of beds in hospital
<input type-"number" name="t3'><br><br>
<input type="submit" name="b1">
</form>
</body>
</html>
23.
Write ahtml program to create Registration Form to accept name, mobile number,
date of birth. The form should have register caption on the button to submit data.
(March 2024
Ans. :
Coding :
<IDOCTYPE HTML>
<html>
<head>
<title>

Registration Form
</title>
</head>
<body>
<hl align="center'>Registration Form</hl>
<form name="f1">
Enter your Name
input tvpe="text"name="t1'<br>cbr>
Number
Enter vour Mobile
input type=tel" name="2"><br><brs
Birth
Select vour Date of
input type="date" name="d1"><br><br>
name="bl" value="Register">
cinput type='submit'
</form
</body>
</html>Write a html code to display a list of any 3 scientist names g-g Vikram Sarab
bhabhaetc) having alphabetical numbering (a , b
24.
Homi Jahangir
Ans. :
relevant list. (March
Coding :
<DOCTYPE HTML>
<html>
<head>
<title>
List of Scientist
</titles
</head>

|cbody>
<hl align="center">List of Scientist</hl>
<ol type='a'>
<li>Vikram Sarabhai</li>
<li>Homi Jahangir bhabha</i>
<li>A. P. J. Abdul Kalam</li>
</ol>

</body>
</html>
TPS Informatton lechnolgy 1-127 Chapter 1

25. Write a html code to display unordered list for search engine website (yahoo.com
and google.com) and ordered list of social media websites (twitter.com and
facebook.com) (March 2024)
Ans.:
Coding :
<!DOCTYPE HTML>
<html>
<head>
ktitle>

Search Engines
</titles
</head>
<body>ctoai a r n t s o t
<hl align="center'>Search Engines</hl>
<ul>
<li>Yaho0.com</li>
<li>Google.com</li>
</ul>
<ol>

<li>Twitter.com</li>
<li>Facebook.com</li>
</o>
</body>
</html>

You might also like