Sei sulla pagina 1di 3

Class VI (Final Exams) 24- Give the output:

a) <html>
1- Why do we use HTML forms? <head><title>Text Input Control</title></head>
2- What are the different types of form controls? <body>
3- Define the purpose of following form controls: <form >
a) Text Input Controls First name:<input type="text" name="first_name" />
b) Checkboxes Controls <br>
c) Radio Box Control Last name:<input type="text" name="last_name" />
d) Select Box Controls </form>
e) Submit and Reset Button </body>
4- How many types of text input are used on forms? </html>
Name them.
b) <html>
5- What is Single-line text input controls? <head><title>Password Input Control</title></head>
6- For what purpose do we use <input> tag. <body>
7- What is Password input controls? <form >
8- Which control masks the character a user enters? User ID:<input type="text" name="user_id" />
9- Why do we use Multiple-line text input controls? <br>
10- Which control is used to enter text longer than a Password:<input type="password" name="password" />
</form>
single sentence?
</body>
11- Why do we use <TEXT AREA> element? </html>
12- How do you create buttons in HTML forms?
13- Can we create a clickable button using <input>tag c) <html>
by setting its type attribute to button. <head><title>Multi-Line Input Control</title></head>
14- The type attribute can take the following values: 1. <body>
submit 2. Reset. Give their purpose. <form>
15- Which attribute creates a button that automatically Description: <br />
submits a form? <textarea rows="5" cols="50" name="description">
16- Which attribute creates a button that automatically Enter description here...
resets form controls to their initial values? </textarea>
17- Why do we use Checkbox Control? </form>
18- Why do we use Radio Button Control? </body>
19- What are <frame> Tag Attributes? Name them. </html>
20- Write the purpose of following frame attributes:
a) Src b) Name d) <html>
b) c) Border d) Frame Border <head><title>Buttons in HTML</title></head>
21- Name the frame attribute: <body>
a) This attribute is used to give the file name that <form>
should be loaded into the frame. Its value can be <input type="submit" name="submit" value="Submit"/>
any URL. <input type="reset" name="reset" value="Reset" />
b) This attribute allows you to give a name to a </form>
frame. It is used to indicate which frame a </body>
document should be loaded into. </html>
c) This attribute specifies the width of the border of
each frame in pixels. e) <html>
22- This attribute specifies whether a three-dimensional <head><title>Checkbox Control</title></head>
border should be displayed between frames. <body>
23- What is the difference between TH and TD tags of a <form>
table? <input type="checkbox" name="Computer_Education"
value="on"> Computer Education
<input type="checkbox" name="Mathematics"
value="on"> Mathematics
</form>
</body> </tr>
</html> <tr>
<td>20190001</td>
f) <html> <td>Arun</td>
<head><title>Radio Box Control</title></head> <td>VI</td>
<body> </tr>
<form> <tr>
<input type="radio" name="subject" <td>20190002</td>
value="Computer_Education"> Computer Education <td>Varun</td>
<input type="radio" name="subject" <td>VI</td>
value="Mathematics"> Mathematics </tr>
</form> </table>
</body> </body>
</html> <html>

g) <html> j) <hml>
<head><title>HTML Frames</title></head> <head><title>Table Ex</title></head>
<frameset rows = "33%, 33%, 33%" Frameborder= “1”> <body>
<frame name = "top" src = <table border="1" bordercolor = "red">
"C:\Users\Lakshya\Desktop\Ex3.html" > <tr>
<frame name = "main" src = <th>Month</th>
"C:\Users\Lakshya\Desktop\FIRSTWEB.html" > <th>Savings</th>
<frame name = "bottom" src = </tr>
"C:\Users\Lakshya\Desktop\Teacher.htm" > <tr>
<noframes> <td>January</td>
<body>Your browser does not support frames.</body> <td>$100</td>
</noframes> </tr>
</frameset> <tr>
</html> <td>February</td>
<td>$80</td>
h) <html> </tr>
<head><title>HTML Frames</title></head> </table>
<frameset cols = "40%, 30%,30%"> </body>
<frame name = "left" src = </html>
"C:\Users\Lakshya\Desktop\Ex3.html" >
<frame name = "centre" src = k) <html>
"C:\Users\Lakshya\Desktop\FIRSTWEB.html" /> <head><title> Personal Form </title></head>
<frame name = "right" src = <body>
"file:///C:/Users/Lakshya/Desktop/Teacher.htm" /> <form>
<noframes> Enter your details: <br>
<body>Your browser does not support frames.</body>
Name: <input type=”text” name=”name” ><br>
</noframes>
Age: <input type=”text” name=”age”><br>
</frameset>
</html> Phone: <input type=”text” name=”phone”><br>
</form>
i) <html> </body>
<head<<title>Table</title></head> </html>
<body>
<table > 25- State true or false
<caption> Students</caption> a) Checkboxes are used when more than one option is
<tr> required to be selected.
<th>Adm.No.</th> b) Checkbox are created using HTML <input> tag but
<th>Name</th> type attribute is set to checkbox.
<th>Class</th> (Output)
c) Radio buttons are used when out of many options; b) <html>
just one option is required to be selected. USER ID: <text type=”text”>
d) Radio buttons are created using HTML <input> tag <hr>
but type attribute is set to radio. Password: <type=”text”>
e) HTML frames are used to divide your browser </form>
window into multiple sections where each section
</body>
can load a separate HTML document.
</html>
f) A collection of frames in the browser window is
known as a frameset. <input type=”checkbox” name=”Mathematics”> Computer
g) The window is divided into frames in a similar way Education
the tables are organized into rows and columns. </form>
h) To use frames on a webpage we use <frameset> tag </html>
instead of <body> tag.
i) The <frameset> tag defines how to divide the
window into frames. 27- Write HTML code to do the following:
j) The rows attribute of <frameset> tag defines
horizontal frames and cols attribute defines vertical a) Enter your name:
frames.
Enter your email address:
k) Each frame is indicated by <frame> tag and it
defines which HTML document shall open into the
frame. Submit Reset
l) Frame Border attribute takes either 1 (yes) or 0 (no)
as value. For example frameborder = "0" specifies
no border. b) Please select your gender:
m) A table allows you to arrange data in the form of
rows and columns. Male Female (use radio buttons)
n) HTML table is defined with the <table> tag.
o) Table caption is defined with the <caption tag>. Please select your hobbies:
p) Each table row is defined with the <tr> tag.
q) A table header is defined with the <th> tag. Reading Dancing Sleeping Music Travelling (use check
r) By default, table headings are bold and centred. box)
s) A table data/cell is defined with the <td> tag.
t) If you do not specify a border for the table, it will be
displayed without borders.
u) The colour of the table borders as a whole is set with
the BORDERCOLOR attribute of the <TABLE>
tag.
v) A table border is specified through Border attribute.

26- Find the errors and rewrite the code:


a) <html>
<head>
<title> Checkbox Control </title>
</head>
<body>
<input style=”checkbox” name=”Computer Education”
value==”on”> Computer Education
<input type=”checkbox” name=”Mathematics”> Computer
Education
</form>
</html>

Potrebbero piacerti anche