الفائز - كمبيوتر لغات - 2 ع - ترم 2 - ذاكرولي
الفائز - كمبيوتر لغات - 2 ع - ترم 2 - ذاكرولي
I ii«
•L
J.
Jnfcnndici]T(
¥' 3- .'.'S'
]
V '"1.
M
V Vi - " ;"
Preparator
Second Ten
. uUlreiUVU ja\s
CompUeci b
Topic Topics I Page
Unit one: Web Sites.
Topic 3 Project. 23
Topic 3 IF statement. 52
Topic 7 [informative]HTML. 93
129
- Unsolved general test.
- The Night before the Exam 131
^^^By^he^en^his^^it, the^udents are expected to be able to:
(1) Recognize some basic scientific concepts and terminology
of information technology(Website - Webpage.)
(2) Practice Basic processes for dealing with information and
communication technology applications.
(3) Discusses the impact of the usage of modern information
technology services to the different academic and life fields.
¥
0) 0
HTML language
OBJECTIVES:
HTML language
Form - some form input controls
Preface
- Dear students; We have finished in the first semester designing
a number of my school site pages, which displays information
about the school, to visit her, and wander inside only, without
the possibility of holding any processing through you or through
the visitors (Static webpage).
Registration from
Nbims
password |
Confirm password
¥MSB- (numarle) |
iSBwdr
Preflelency language
7. Bngllsh FrenoH Q Sermany,
I Sow Ww; J
4
AlFaez 2S£ mtmm. Topic 1
Form
- Text data field, allows to the user to enter a string or text data,
using keyboard.
- Jo add a textbox for enter a student name 11-HTML language |
to a webpage, use the following tag: Text box
¥rtw'
ictivit
- To add a textbox, follow the following steps:
(1) Create a new text file, using Notepad program.
ijjj' Untitfed - Wcftepadi ; jj fgH3' M '1
Fie fsmat jftg*
o
5
Topic 2 AiFaez
He m *em Hl»
Cfpe - ”Ccaa*>
<iribnn>
Name:[
Text field
¥ Note: After adding a text field, you can type your name
or any text within it.
6
yyy'y
y y
AlFaez 2
mr Topic
/¥/
m
m etivit
- The following steps to add a password field:
(1) Create a new text file.
(2) Write the following HTML tags.
<fonTi>
Password:
Password: [
; Password field
7
/# 2 AiFaez
© ¥
Radio buttons
k
LCtivit m
Radio button
¥ Note: After adding the radio buttons, you still can choose
select all available options, and this a problem.
8
AlFaez 2 -Topic 1
¥ Note
f You can select the two radio buttons (male / female) at the
same time.
- How can you prevent the user from selecting all available options?
-To prevent the user from choosing all available options, use the
attribute "name=.
- Add name attribute to all available radio buttons with the same
value.
- Give the mame, such as "a"* for all available radio buttons.
<form>
f Form: with a Form element you can add a group of other elements
to a webpage such as buttons and fields, used for data entry in
order to send this data to storing.
* Text input field: which gives ability to the user to enter a string or
text data via keyboard.
- To add a text input field on the web page, use the following tag:
< input type = '9text'9>
2£Faez
•Password input field
- The (*)symbol will be displayed instead of characters to secure
a password key.
- To add a password field to enter password we use the following tag;
< iiqmt type =""passwonl"^
m
¥
ro o n 0 0 0:
HTML tanauage
13
n
Topic 2 ^ * a>a;w..a. ia«>: AiFaez
HTML language
Form elements input fields Continued
Preface
-We will add checkboxes, to give ability to the user that he can
select more than one box at the same time.
Checkbox field
m
Note: You can repeat the previous command to add more
than the selection of the webpage fund.
LCtivit
- To add a checkbox, follow the following steps:
(1) Create a new text file, using Notepad program.
(2) Write the following HTML tags.
14
AlFaez 2
<form>
Select your proficiency languages<br>
4¿ Arabic < input f^pc = **cIiecklMix**>
^ English< input type = =checkbox"'>
French< input l^fpc = **clicckbox**>
</fonn>
0 amhic
2 .nriliH:
Checkbox fields | ¥
[ Ok
1
a button
- To add a button to a webpage, use the following tags:
15
//
Topic 2 — 2AiFaez
\s \
<form>
ft
<input type = ”buttoii” value ok” >
</form>
I ok'
5
A button
2 Notc>
- In the previous code, we've used attribute "value" to assign
caption to a button "ok”.
- There are three types of buttons, that can be added to the from
as follows:
Submit button
- It is used to send the form data, which you have entered using
the form elements to another webpage, assigned by action
attribute value of the form. Submit Query
Submit button
mLctivit
- To add a submit button, follow the following steps;
(1) Create a new text file.
(2) Write the following HTML tags.
<html>
<form>
17
//
^ Topic 2 ^ 2 AiFaez
¥ Note:
- In the previous HTML tags, after clicked submit button, all data
send to a webpage named "process.php" in order to processing
via PHP statements. We will teach PHP language next years.
user clast
name
password
I sign In I
new user
Reset button
- It is used to clear all data fields, which you have entered and
a return to the default values of the controls.
mictivlt
- To add a reset button, follow the following steps:
(1) Create a new text file.
(2) Write the following HTML tags.
<form>
18
AlFaez 2
Reset
Reset button
- Checkbox field give ability to the user that he can select more
than one box at the same time.
- To add a checkbox field to a webpage, use the following tags:
< Input type = "checkbox">
- Repeat the previous command number of choices (alternatives)
available.
- There are three types of buttons, that can be added to the from as follows:
(1) Button: used to perform a certain task.
(2) Submit: used to send data.
(3) Reset: used to delete data.
* Submit button: The user click this to submit the form data to
another webpage assigned by action attribute value of the Form.
-To add a submit button, use the following tags:
<input type = "submit''>
19
I, M ll,, l.ir 111 II ill! ¥" ¥
2 AiFaez
* Reset button: The user click it to clear all data fields to return to
its original state.
- To add a reset button to a webpage, use the following tag:
<input type = "reset">
lOmMCaK
^ First: Put (^) for right answer and (x) for wrong answer:
O Checkbox input field by which you can select more than one
choice at the same time. ( )
@ A radio button field by which you can select more than one
choice at the same time. ( )
20
AlFaez 2 ^ Topic 2^
To select an alternative or
4 .Submit button D
more at the same time.
21
/# ' • V
2 AiFaez
22
Design a Webpage with a registration data Form
OBJECTIVES:
:SHTML^
23
2 AiFaez
Registration from
Name
password
Confirm password
Age (numeric)
Proficiency language
t Save 1 New
*
Execution:
24
AlFaez 2
ms
<html>
Rogjstration from (?)
<head> 3^®*
<title> </title> ^ j pAMword
</head>
Confirm paxword
Q®
«o> (numorle)
^ name<input type="text"><br><br><br>
password <input type="password"><br><br><br>
M confirm password<input type="password"><br><br><br>
^ age(numeric)<input type="text"><br><br><br>
2gender<input type="radio" male<input type="radio">female
8) <br><br><br> O Mai* O F*mal*
^proficiency language
I <br><br><br> | 31'?
^ <input type="submit'9 value="save"> 1 Save 1
D^       31'?
. ) <input type="reset= value==new"> New
</center>
</form>
¿ </body>
</html>
25
H
^^Topic^^ 2£Faez
-To add a text field for enter a student name to a webpage, use
the following tags:
-To add the confirm password field, type the following tags:
confirm password <Input type='* password ">
-To add a radio button field for male, type the following tags:
Male <Input type==radio=>
26
AlFaez 2
27
2 AiFaez
® Reset button is used to send your data, which you have entered
using word document ( )
O We has been used property "OK" to add text that appears on the
button. ( )
28
AlFaez 2__ Questions
I First Unit Ml
*? ^S-v.v-,
n
^ First: Choose the correct answer from between the brackets:
o allows you to choose an alternative or more at the same time.
(Button - Checkbox - Submit)
© We use a property ' "to add text that appears on the button.
(Reset - Submit - value)
© button is used to send your data, whieh you have entered
using the form elements. (Submit - Check box - Reset)
O When pressing on ,can performed many funetions, sueh as
load a function, or store your data, or delete your data.
(button - Radio button - Submit button)
0 field, whieh gives ability to the user to seleet only one option,
(button - Radio button - Submit button)
^ Second: Place each number on the following form in front of
its own code: IgWof-^M
Registration from
Nm
pntwom [
i
3®
Confimi(MSfwonl [
(numiic) [
Gender
OFcnute
Prctkiencf Umgiag^
f'] Eitfltfich Q Fnneh O Otnmmy 2
»«»» I
29
/#
^ Questions^ t,
2 AiFaez
^ Third: Write scientific concept for each of the following
sentences:
I First Unit 2
^ First: Select the type of box or button to use the following:
O We can determine the sex of student(male / female) by
button.
30
AlFa 2
ez
Ilk Questions
31
Questions^ 2 AiFaez
I First Unit JJ
'? 3
* First: Select from (B)that matches with other from (A):
Column (B)
32
AlFaez mt^. ^
iSis
Questions
© There are three types of buttons, that can be added to the from.
( )
© Reset button is used to send the form data, which you have
entered using the form elements to another webpage.( )
33
>
,v
^
¥i
By the end this unit, the students are expected to be abie to
*
!
¥'--<5 A'-.
it
&
-i !)
If, I-
i:
34
k.
AlFaez 2
Basics Concepts of
JavaScript Language
introduction
* Dear student:
JavaScript fundamentals
35
r
Topic 1 2 AiFaez
<script></script>
</head>
<script></script>
<script></script>
</body>
</html>
alert() statement
mLctivit
- Create a webpage that displays a dialogue box with message
"welcome" when loading by the following steps:
Execution:
< body>
< script>
alert ("welcome");
</ script>
</body>
A Welcome
OK
V.
37
2 AiFaez
< body>
< script>
document.write ("computer and information technology subject");
</ script>
</body>
38
AlFaez 2 Topic 1^
MHsliMwae
^ First; Put(v^) for right answer and (x)for wrong answer:
O JavaScript orders and instructions are statements. ( )
@ HTML statements are written inside <text> </text> tag. ( )
® JavaScript commands and instmctions (Statements) are written
within HTML tags. ( )
O To develop an interactive webpage project to register your data,
and confirm that the entry data is eorrect; you will need to add a
HTML statements to your webpage document. ( )
0HTML language is case-sensitive, so you must pay attention
to the case of(small or capital letters) when writing statements.
( )
© JavaScript statements are written inside <script> </script>( )
© Alert()statement used for displaying text within a webpage
contents. ( )
© HTML commands and instructions (Statements) are written
within JavaScript tags. ( )
© Each HTML statement must end with a semi-colon (;) character.
( )
© Document.write statement used for displaying a message via a
dialogue box. ( )
39
^iBfewib^Jbpic 1 AiFaez
0 There isn’t any different between using small and capital letter
while writing statements.
({;)- (*)-(/))
40
AlFaez 2 ^ Topic 1 ^
1 ■
UM 9 ?
^ First: Write the scientific term to the following statements:
O The language used to make your registration webpage to
interactive.
41
##
■ Questions 2 AiFaez
42
AlFaes32 Questions
^ Third; Write scientific concept for each of the following
sentences:
'v X \
® Reset button is used to send your data, which you have entered
using word document ( )
0 There are only one type of buttons, that can be added to the from.
( )
44
AlFaez 2 Questions
n
46
Calling JavaScript code i
OBJECTIVES:
By the end of this topic, students shouid be able to:
47
u
Topic 2 i ^2 AiFaez
Functions
Function Creation
,!J
function function-name(){
Code to be exeeuted
}
ctivit
- Create a function that displays "Arab Republic of Egypt" via
a message box. Execution:
[1] Create a new text file.
[2] Write the following HTML tags.
- <body>
<seript>
function country()
{
alert("Arab Republic of Egypt");
}
¥¿</script>
4¿ </body>
0 Note:
Function call
i
LCtivit
aw
^2
- Change the previous activity so that the country()function can
be executed when a button clicked. Execution:
I <script> I
j function country(){ |j
I alert ("Arab republic of Egypt") I \
}
</script>
</body>
[3] Save the modifications to the file.
[4] Open the document in the Internet browser.
50
AlFaez 2 - Topic 2^
E3 Note:
(1) A textbox and button is displayed, write any text within the
textbox.
[°1b)1 a
mohammed
(D
OK
alert box
Activifr;!i-3
- Design a web page as shown in pervious shape by executing the
following:
51
2 AiFaez
[1] Create a new text file.
[2] Write the following HTML tags, JavaScript statements.
<body>
<form name="form 1">
i <script> j
function printTextContent()
{
alert(forml .tl.value);
}
</script>
</body>
¥ Note:
52
AlFae* 2
53
wm
.V'
"N
mjopic 12£Faez
^ Second; Complete the following code to create a function,
when calling it appears a message box contains "Arab
republic of Egypt".
<Body>
<Script>
o country()
{
("Arab republic of Egypt");
0
}
</Script>
</body>
54
AlFaez 2
■
0 Create a new text file. Write the following tags, and save the text
file with extension.
r© < .>
<Script>
0 country()
{
o ("Egypt");
}
0 < >
</body>
55
Topic 2 —- 2 AiFaez
^ Sixth: Re-Arrange the following code to create a function
called "printTextContent":
( ) Codes
( ) Function printTextContent()
( ) {
( ) }
56
Topic
>
4
R avaScript
H
Branching “IF statement
1 r
OBJECTIVES: I!
By the end of this topic, students should be able to:
57
2AiFaez
Branching
" In the previous two topics, we have noticed that, JavaScript
statements are being executed one by one.
" But sometimes we may need to execute or non-execute some
of these statements according to condition expression result
as in the following shape:
Is
Conditional expression
¥ Example:
sa
AlFaez
•'A,
1
60 X total button(2)
t Message from webpage
Text box
success
(D
t]
K - OK
alert box
59
* Execution:
<body>
(J) <formname ="formO
y <input type = "text" name = "tl'*>
^ <input type ="button" value ="click me" onclick='’total()">
</form>
<scripts
0 function tota]()
{
0 if (forml.tl.value>=50)
{
alert ("successful");
}
}
</script>
</body>
60
AlFaez 2 Topic 3
- The onclick event occurs when the user clicks on a button.
61
H
Topic 3 ^ ; V^..- v .-¥"tv/
-2 AiFaez
UM i ^ ^
o (condition expression)
© { Statements to be executed if the condition result lead to true.
0
* Second: Put (v^) for right answer and (x) for wrong answer:
O Branching: mean JavaScript statements are being executed one
by one. ( )
62
!A1 Faez 2
O Is execute
or non-execute some of JavaScript statements according
to conditional expression result.
©To check the condition expression.
® Expression that must be evaluated first and lead to true or false.
O Execute or non-execute statements according to specific result.
63
%Jopic 3^ 2 AiFaez
^ Fifth: Complete the next steps to call any function:
O Write an HTML tag for displaying a button within webpage.
< type="button">
© Write an 'onclick' attribute to this button.
— It tt
>
<mput type="button"
e Write a function name as the value of that attribute (onclick).
<input type="button" ="function name you need to call">
0Function can be executed when a button clicked.
.="click me">
<input type="button'' onclick="cormtry()"
© If total = 100 then the result of(total >= 100) expression leads to
true.
64
AlFaez 2 Questions.
I General Revision I Mi r M
To prevent the user from choosing all available options, use the
attribute "name". ( )
® Reset button is used to send the form data, which you have entered
using the form elements to another webpage. ( )
O document.write() statement used for displaying a message via a
dialogue box. ( )
65
Questions 2 AiFaez
^ Fourth: Write scientific concept for each of the following
sentences:
66
Questions
*6—
Questions
© All JavaScript statement within tag implemented automatically.
^ Third: Complete the following statements from between the
brackets:
O Submit Button is used to send the form data, which you have
entered using the form elements to another webpage, assigned by
attribute value of the form.
67
Questions 2 AiFaez
I Genera
^First: Choose the correct answer from between the brackets:
69
Topic
Si:-
0
s. <i
aa ijL w. ?
SCRIP avaScript
70
AlFaez 2
Data validation
m
- In the pervious activities you created a lot of controls to input
your data.
- Discuss with your colleagues that after Form submitted, can
you:
m
- Create a webpage in whieh we can see a Form with these
elements:
ss
© P- c
O
student name Textbox
send
Message from w^ipage ^SSSSSS9
Submit button
.1 required field
0 OK
72
AlFaez 2 ^Topic 4^
Execution:
¥ Explanation:
(1) To add a Form element to webpage, you can use the
following tag;
i <form name="forml action="requiredl,htm"> j
- The name attribute specifies a name used to identify the form.
<form name="formT'
73
n
Topic 4 2 AiFaez
(2)To add a textbox to webpage, you can use the following tag:
i <input type="texf name="textT'>
|
fbrml through the value attribute.|(f()rml.textl.value==””)
-To check that the field was not left empty, we use the following
condition:
i if(fbrml.textl.value==’"'){ I
i J
I alert("required field");
(7) To return false if the textbox was left empty:
I return false; I
74
AlFaez 2
- Ensuring that the user didn’t leave the field empty is one of the data
validation methods.
-To check that the field is not left empty, we use the following
condition; if(forml.textl.value==""){
C
To display the alert box with
3 return false;
"required field".
will be called and executed
4 alert("required field"); D
when command button clicked
To check that the field was not
5 action="requiredl.htm' E
left empty.
76
avaScript
mLctivifr
- Create a webpage in which we can see a Form with the
following elements:
a ax fi -C &
-tev^ i col-
password send
(f
Message from webpage
(D
1, minhntiin length 8 character
(3) OK
78
y
AlFaez 2
<html>
<head>
</head>
O I
<body dir ="rtl">
e ¿<form name="forml action = "data.php">
© I <input type="password id ="textl">
¿ <script>
© function fl ( ) {
I
© I I if (forml.textl.value.length<8) {
O I
alert ("minimum allowed length 8 characters");
© I return false;
}
}
</script>
</body>
<html>
79
AiFaez
(2) To add a Form element to webpage, you can use next tags:
<form name="forml action = "data.php">
- The name attribute specifies a name used to identify the form.
<form name="formr'
SO
AlFaez 2
Data validation
Third: Matching the data entered in the two fieids
m etivifr
- Create a webpage in which we can see a Form with the
following elements:
(1) Textbox for password input "enter password".
(2) Textbox for re-enter password input "re-enter password".
(3) Submit button for form data submission.
- Comparing the content of the two fields, in the case of
mismatch the contents show a warning message "The two
values do not match".
_ ¥
^<k\ P- C 3
password
(i> send
@
OK
81
2 AiFaez
^¿<bodydir="rtr>
e f'<form name="forml action = "data.php >
password
© <input type="password" id="textr'>
re-enter password
<input type="password" icl="text2">
<br>
¿ <script>
© function fl (){
82
AlFaez 2 ^ Topic 5^
(2) To add a Form element to webpage:
<form name="forml" action = "data,php'’>
- The name attribute specifies a name used to identify the form.
<form name="forml"
83
AiFaez
Data validation
I,
enter e numeric value
OK
84
<body dir ="rtl">
<form name="forml action = "data.php">
<input type="text id="textl">
<script>
function fl(){
if(isNaN(form1.text1.value)){
</script>
</body>
85
Topic 5 s i2. AiFaez
s €t
* First; Put(v^) for right-answer and (x)for wrong answer:
O To check the data entered, use the html language. ( )
0Defining the minimum allowed length for the input field from
cases of data validation. ( )
(a)if(forml.textl.value!==forml.text2.value)
(b)if(isNaN(forml.textLvalue)
(c)if(forml.textl.value.length<=8)
(d)if(fonnl.textl.value=="")
© Prevent the user from leave the field empty:
(a)if(forml.textl.value!==forml.text2.value)
(b)if(isNaN(forml.textLvalue)
(c) if(formLtextLvalue.length<=8)
(d) if(formLtextLvalue=="")
86
® Prevent the user from enter a non-numeric data:
(a)if(forml.textl.value!==forml.text2.value)
(b)if(isNaN(forml.textLvalue)
(c)if(formLtextl.value.length<=8)
(d)if(forml.textl.value=="")
O To match the password values, we can use the condition:
(a)if(forml.textl.value!==forml.text2.value)
(b)if(isNaN(forml.textl.value)
(c) return false;
(d) if(formLtextLvalue=="")
® To return false as a function returned value in the case the textbox
is leaved empty, we used return false;
(a)if(formLtextl.value!==forml.text2.value)
(b)if(isNaN(formLtextLvalue)
(c)return false;
(d)if(forml.textLvalue)
^ Third: Matching from column(A)for column (B):
Column (A) Column (B)
Prevent the user from enter a
1 Function fl(){ A
non-numeric data.
87
^Topic 5^ 2 AiFaez
^ Fourth: Complete the followingsentences from between the
brackets:
1 Checkbox A
A language is used to create a
text file with htm extension.
2 Value B
To select your proficiency
language(s).
An attribute is used to add a text
3 HTML C
on the button.
5 Submit button E
To add a password field to the
webpage
88
AlFaez 2
s
M
^ First: Complete the following sentences:
Cases of data validation are:
89
:>
P avaScript
OBJECTIVES:
90
AlFaez 2
Project
Data validation in the registration webpage ^
- After you have learnt how to validate input data, complete your
previous project(my school) and add a registration webpage.
1^ Enter Student Data C3
Enter
Re enter p^word
Age 28
Gender
#) Male © Female
Language
Register New
91
^Toplc6^ 2^aez
Enter Student Oats
Re enter password
^V! Age
Gender
«a1S
'» Male O Female
Language
1
3] German U English Q French
I Register...! New
My School
V&M A photos About sctiool Home
* 1^
I
Vision & Mission A photo album About school
f. • :Ai«>uh jjiaTi ^
m
4-
¥ Note:
92
HTML5
HTIVII.5
- What's New in HTML5? 1
I I
i ¥_
r</>^
i i
93
2 AiFaez
HTML5
HTML5
- There are many new Form tools used for input data such as:
(1) Color input field.
(2) Date input field.
(3) Number input field.
(4) Required attribute of text input field.
- Through color input filed, the user can select a color as his
input data from a color picker.
- To add a color picker as an input field to the webpage, you can
use the following tag:
<input type="color">
94
AlFaez 2
k
LCtIvit'
- Do the following:
(1) Create a new text file.
(2) Write the following HTML tags.
— <form>
^<input type="coloi^
</form>
t; / X c
(-1
l i ✩ ©DO I
¥i M
I
I choose your favorite color
!
¥:y-.
.1
m M
r' 8a«eecle(».
: mr
fl
i
PE ar
i
d CiMamcekan:
P i
1:
0^-
Cancal MiHtiCiMCdM
95
//
^Toplc 7^ 2 AiFaez
- Date input field: by which the user can select a date value from
date picker (calendar).
-To add a date picker as an input field, you can use the following
tag: <input type="date'’>
A
iCtivii
-To appear a date box within the web page to choose the
required date do the following:
(1) Create a new text file.
(2) Write the following HTML tags. O
X c
: (POO
— <form>
Birth Date
birthdate
3 ImaiN-
^<input type="date">) i
>0
r
i
11
w
i:
1}
u
»
6
11
;i
s
i;
</form> y a ;* a » 7^
31
%
AlFae:32
AI®:
- Appear the number tool inside the web page for use in the
introduction of numerical values, between 1 and 20.
(1) Create a new text file.
(2) Write the following HTML tags.
<form>
<br>
97
/# 2 AiFaez
¥ Note:
(2) After you9ve typed a number, submit the form data through
the <submit button= in order that the browser checks an
X^ +
\f
X +
98
AlFaez 2- - ^. Topic 7 ^
Required Attribute
Activity h‘-kj
^<form>
¥{
I <input type="text required">
\ <input type="submit">
^</form>
(3) Save the file with .htm extension.
99
^o
^aez
¥ Notice:
- There are many new Form tools used for input data such as:
(1) Color input field.
(2) Date input field.
(3) Number input field.
(4) Required attribute of text input field.
m
^ First: Complete the following steps to add a date picker as
an input field to the web page:
O Create a new
© Write the following tags.
< >
birthdate
</form>
too
AlFaez 2 ^Topic 7
101
^ Questions^ 2 AiFaez
I Second Unit -1
^ First; Put for right answer and (x)for wrong answer:
O HTML commands and instructions are called Statements.( )
^1 Second Unit i-
2 ¥; t'
103
H
^ Questions^ 2 AiFaez
^ Second: Put(^)for right answer and (x)for wrong answer:
O We will use Function to check the condition expression. ( )
e Branching is execute or non-execute some of JavaScript
statements according to condition expression result. ( )
C
used for displaying text
3 if(isNaN(forml.textl.value)) within a webpage contents.
used to validation of the data
4 A radio button D
to be entered into a webpage
by which the user can select
5 Document.write() statement E one of a limited number of
options.
104
AlFaez 2_ Questions ^
I Second UnitKjm§ii@ 3
^ First: Put(v^) for right answer and (x)for wrong answer:
O alert() statement used for displaying a message via a dialogue
box. ( )
3 C
Add a color picker to
<input type="date">
webpage.
4 HTML5 D
Add a number input
field.
5
Add a date picker to
<input type="number"> E
webpage.
106
'1.- i ■
I m
OBJECTIVES:
107
•WKiWfelnternet^ 2 AiFaez
Internet safety
* The internet is one of the most important means of
communication in all fields. It is important to focus on the
dangers that result from this usage.
* There are vary dangers such as virus infection, which destroy
the system data, attack to spoil the user files or harm or,
blackmail deploy identity or personal data theft and other types
of dangers.
* Many people do not know that some information which may be
considered useless are so important for others.
-Next:
- How to deal with some of the situations that may appear during
internet usage?
- Some common idioms used on the internet.
(2)Identity theft j
(3) Spyware
14
(4) Virus
108
y
II
.
// y'
L¥ Ji
AlFaez 2 i
r 1
Internet Safety
IDentity
THEPT
Identity theft
t
Malware
Spyware
Virus
109
.lawiiiii^lnternet m 2[gFaez
Secret codes
1
• •
tional Activit
- Search on the internet for programs to protect your
computer and download them.
110
AlFaez 2 Internet ^
First situation
Second situation
Third situation
Possible Problem:
Fourth situation
Possible Problem:
- They may be some deceit especially when the others are unreal
persons.
m
AlFaez 2 Internet ^
- How to deal with this?
Fifth situation
The Problem:
- Online application has be well known but you have to take care
to apply only for authorized companies and make sure they are
real through knowing their real places.
- It is better to apply only for official or governmental job
vacancies online.
113
£Faez
The following idioms are key words for internet search for
more information about this lesson:
114
AlFaez 2 ^ Internet
Computer
User name ftitirlffitl flMt
network
Wan Password
(^1 JJ4M
Moblog Virus
liljMtl uU^U
Spam JiLj Atm
Phishing Contempt
Social
interactive Happy slapping
television
Contempt Spyware
115
/#
- Internet^ 2 AiFaez
(4) Make sure of the real identity of the people you talk to.
(5) When applying for a job online, make sure of the real
information of the companies and it is better to apply for
official or governmental job vacancies online.
;'9
mejs ?
^ First: Put(v^)for right answer and (x)for wrong answer:
O Internet network of the most important means of eommunication
in various fields. ( )
116
AlFaez 2 %Jnternet^
® Vims is small harmful programs that can spread and harm
computer and programs. ( )
O Must reply to unknown messages or from unknown people.
( )
0 Bluetooth is parasite programs are programs that backdoor
computer systems. ( )
0 Web blog, means all the personal data that belong to anyone deals
with the means of information and communication technology.
( )
© To protect your system against Malware, use antivirus programs
and update them continually. ( )
0 Spying: the name is derived from Malicious Software. ( )
117
6- Internet ^
^ ^ ^
2 AiFaez
0 Weblog is
^ Second: What will you do when:
O Talk to a stranger to exchange opinions or culture through social
media programs.
0 Not taking any step against any harm on the internet is kind of
hiding wrong doers. ( )
118
¥Viv-
I General Revision
^ First: Write scientific concept for each of the following:
O Allows visitors of the web page to enter text data, using the
keyboard.
® They are all the personal data that must not be shown to everyone
on the internet like: username, password or mobile phone number.
® A language which used to make a confirmation to the data entry.
O An attribute used to add a text on the button.
® By which the user can select one of a limited number of options
such as your gender (male / female).
^ Second: Matching from column (A) for column (B):
Column (A) Column (B)
1 <lnput type = "checkbox "> A To add a Password input
field.
2 If(form 1 .text 1 .value!==) B Semi-colon" (;).
To check that the field was
3 <lnput type = "password "> C
not left empty
4 Keep your username and D To add a Checkbox input
password secret field.
^ Third: Put for right answer and (x) for wrong answer:
O Textbox in which we can type a total of degrees, ( )
@ Alret( ) statement is used for displaying text within a webpage
contents.
( )
e
To add a button to the webpage, we can use the following tags:
<Input type = "button"> ( )
119
-Questions 2 AiFaez
O Submit button is used to clear all data fields, which you have
entered and a return to the default values of the controls. ( )
I General Revision
^ First; Re-Arrange the following steps to add a Submit button:
( ) Open the file in the Internet browser.
( ) Type the following tags within the <form>.
( ) Save the text file in extension .htm.
( ) Create a new text file, using Notepad program.
( )<Input type = "submit">
^ Second: Put(v^) for right answer and (x)for wrong answer:
O To create a fonn use <form>....</form> tag. ( )
0 To add a textbox for enter a student name to a webpage, use the
following tag; <input type = "password"> ( )
120
AlFaez 2 Questions ^
©You can prevent the user from choosing all available options,
using the value attribute. ( )
O The password field, use to enter the password to a webpage via
keyboard. ( )
© Need branching if the execution or non-execution of orders based
on a certain condition. ( )
^ Third: Matching from column(A)for column (B):
Column(A) Column(B)
Used to select one or more
1 Reset A option from a limited number of
options at the same time.
121
Questions 2 AiFaez
General Revision
^ First; Matching from column(A)for column(B):
Column (A) Column (B)
To add a send button to the
1 <lnput type = "text"> A
webpage.
To add a Radio button to the
2 <Input type = "reset"> B
webpage.
To add a delete button to the
3 If(forml.textl.value==" "){ C
webpage.
122
AlFaez 2 Questions ^
© A language is used to ereate a text file with htm extinction.
® An attribute is used to add a text on the button.
O It is parasite programs that sneaks to backdoor computer systems.
0 JavaScript statements are written inside it.
^ Fourth: Choose the correct answer from [a],[b],[c], or [dl:
O If the condition result lead to , the statements within {} will
be executed,
123
124
isl
Name:[
to a webpage:
[ The answer ^
''
(1)Create a new text file, using Notepad program.
(2) Write the following HTML tags within the <form>.
<form>
Name:
<lnput type = "text">
</form>
(3) Save the text file with .htm extension.
(4)Open the HTML document in the Internet browser.
125
Practical tests^ 2 AiFaez
(4) Write steps to add a Password field to the webpage:
r The answer j r-
Password; I »f»»f»
, The answer j
(1) Create a new text file.
;[ Sutoit Query I
(2) Write the following HTML tags.
<form>
<form action = "process.php">
<input type = "submit" value="Submit Query">
</form>
,The answer 1
(1)Create a new text file, using Notepad program.
(2) Write the following HTML tags within the <form>.
<form>
(1)
<head>
(2)
</head>
(3)
<body>
(4)
</body>
</html>
127
'-¥2:1
r The answer 1
(1) Create a new text file, using Notepad program.
(2) Write the following HTML tags.
< Body>
< Script>
Document.Write ("Computer is my favorite");
</ Script>
</ Body>
(3) Save the text file with .htm extension.
(4) Open the HTML document in the Internet browser.
The answer J
If (Conditional expression)
{ Statements to be executed if the result of the expression is true }
128
AlFaez 2. luestions
A
used for displaying text
1 <Input type = "checkbox">
within a webpage contents.
129
© Adding a value attribute to the button element for is called a
function. ( )
© We use a onclick” attribute for writing a text on a button.(
a
130
ft ■■
Text
ir
II II
Password
<form>
¥I II
Radio
II
<iiiput Type = Checkbox"! Name="aname" Value = "atext"
II II
Button
The name alftyle specifies The value attribute
</form> a name used to identify the spedfies the caption for
II II
Submit a button
II II
Reset /A 'S
Exam Night 2 AiFaez
II
132
- Shows the symbol(*) when you type a password in order to hide the
true password components.
- To add a password field to the webpage use the following tag:
<input type = "password">
- You can add the confirm password field, by follow the above steps
to create the password field.
Add a Radio Button field O ®
- A radio button, by which the user can select one of a limited number
of options such as your gender(male / female).
- To add a radio button to the webpage, use the following tag:
< input type = "radio">
# Note: There is a problem, you can select the two radio buttons
(male / female) at the same time, and this a wrong .
- You can prevent the user from choosing all available options, using
the name attribute.
- Add name attribute to all available radio buttons with the same value
- Give the name, such as "a" for all available radio buttons.
<input type = "radio" name = "a">
133
Exam Night 2^aez
- To add a button to a webpage, use the following tags:
< Input type = ’'button">
- In the following code, we will used attribute "value" to assign
caption to a button "ok". E Ok 1
<input type = "button" value ="ok">
- There are three types of buttons, that can be add to a from;
(1)Button: used to perform a specific task.
(2)Submit: used to send data.
(3)Reset: used to clear data.
- Submit button: is used to send form data, which you have
entered using the form elements to another webpage, assigned by
action attribute value of the Form.
Submit button: The user click this to submit the form data to
another webpage assigned by action attribute value of the Form.
- To add a Submit button to a webpage, use the following tags:
<input type = "submit"> I SubmilQuety
- Reset button: is used to clear all data fields, which you have
entered and a return to the default values of the controls.
134
Control Action
•k Subject (1):
- To confirm that the entry data is correct; you will need to add a
JavaScript statements to your webpage document.
* HTML language isn’t enough to make a confirmation to the data
entry.
JavaScript fundamentals:
(1)JavaScript commands and instructions are called Statements.
135
Exam Night 2 AiFaez
(2)JavaScript commands and instructions (Statements) are written
within HTML tags.
(3)JavaScript statements are written inside <script> </script> tag.
(4) Each statement must end with a semi-colon (;) character.
(5) JavaScript language is case-sensitive, so the letter case (smaller
capital letter) must be considered while writing JavaScript
statements.
136
AlFaez 22 »y»;:
Exam Night
» Subject (2):
137
H
Exam Night 2 AiFaez
- Next steps to call any function:
[1] Write an HTML tag for displaying a button within webpage.
<input type="button'>
[2] Write an 'onclick' attribute to this button.
<input type=’'button" onclick= >
[3] Write a funetion name as the value of that attribute (onclick).
<input type=''button" onelick="function name you need to caH">
[4] Funetion can be executed when a button clieked.
<input type="button" onclick='’country( )" value="cliek me">
★ Subject (3):
* JavaScript statements are being exeeuted one by one.
* Branehing is exeeute or non-exeeute some of JavaScript statements
aeeording to eondition expression result.
* To eheek the eondition expression, we will use IF statement.
Branching IF statement is written as the following:
if(condition expression)
{ Statements to be executed if the eondition result lead to true }
- Condition: is expression that must be evaluated first and lead to
true or false.
★ Subject (4):
- We use JavaScript language to set an interaetive webpage that
validates your entered data.
138
AlFaez
fiBSfiS
i'tjpMfciit.;.
Operator Description
Equal to.
I
Not equal.
I
Not equal value or not equal type.
> Greater than.
>=
Greater than or equal to.
< Lass than.
<=
Lass than or equal to.
- Data validation methods:
* Second: Defining the minimum allowed length for the input field.
* Third: Matching the data entered in the two fields.
* Fourth: Prevent the user from entering type ofdata that different of
field data type.
* First: Required Field(Do not leave empty field):
- If submit button clicked without typing student name, an alert box
will be is played to inform us that this field is required.
(1)To add a Form element to webpage, you can use the following tag;
<form name="form1 action="required1.htm">
- The name attribute specifies a name used to identify the form.
<form name="form1
(2)To add a textbox to webpage, you can use the following tag:
<input tvpe="text name="text1">
139
ti
Exam NigHt 2 AiFaez
(3) To add a submit button to webpage, you can use the following tags
<input type=''submit" value="send onclick-'return f1
- Where:
- The value attribute specifies the caption for a button.h/alue="send"
- The onclick event occurs when the user clicks on a button.
- Specifies the JavaScript statements or function name(here the
function is fl()) to be executed. onclick-’return f1()";
(1) To verification if the entered data was less than the minimum
allowed length (8 characters), we use the following tags;
if (forml .text1 .value.Iength<8 [{
14a
AlFa 2
ez
(3)By creating a numeric input field, you can also set restrictions
on what numbers are accepted to a certain range.
141
S,
/
Exam Night ^aez
- To add a number as an input field, you ean use the following tag:
<input type=''subtnir>
(4) If required attribute is added to any input field such as (text,
password, date, number, checkbox, radio, ... etc.),
- The browser forces the user to input this field because it is a
required field and the form submission is not completed.
- To add a required attribute to an input field, you can use the next tag
<mput type="text required">
<input type="submit">
* The Third unit *
142
AlFaez 2
u
Exam PsTight
(4) Virus;
- It is a small program that can spread itself to infect the computer and
programs.
143
v9-ai
1
i
1 u J MJ
uter
JnfcFinalicn Teclinclctfy and ccmmanicoficn
r#ei!
9
'VI;
ilii
—,V^, .- .MB* ^ ^
Preparatory
Second Term
uUS^I 54 UIm
<]
CompUect by
Exam Models
School Tests
r
r
J
'\ ^
j
ri
iiiiKpAlFaez
iiiiij
automatically executed.
^ Second: Put or(x):
O From the steps of creating function, type the command
function then write a suitable name. ( )
0 Java script statements which are written inside <form>
</form> are automatically executed. ( )
0 To create a function, type the code that will be executed
between(## ). ( )
O HTML statements which are written inside <script> </script>
are automatically executed. ( )
0 We call the function in order to execute its order when we
press on the button command. ( )
0 Shows the symbol(@)when you type a password in order
to hide the true password components. ( )
0 Property value added to the button to call a function by
pressing the command button. ( )
«
2 t
AlFaezill
2 1
Exam model Jp 5jlij'
d}
iAlFaez
^ Second: Choose the correct answer between the brackets:
4 Exam model y
7l «
AlFaez
8
AlFaezIS
^ Third: Put the suitable concept from the table in it’s place:
function Identity theft radio button form submit
Q
i AlFaez
^ Second: Put(^)or(x):
O Through reset button user click it to clear all data fields to its
original state. ( )
O Function is a set of commands that executes without having
to be called. ( )
® JavaScript commands and instructions (Statements) are
written within HTML tags. ( )
O To add Submit button to a webpage use <input type = "">
tag. ( )
0 Onclick property used to write the text that appears on the
button. ( )
^ Third:(a) Write the necessary codes to do the following:
O Declaring a function as (school).
0Call the function (msg)to show the text welcome message
box when you press the button show.
O document.writeC'My School")}
© Alert("l love my school")}
#
OD
AlFaez^ General
Gi
General Tests iAlFaez
8 . Exam model Lijla djlJj
12}
AlFaez m General Tests
9 ¿ Exam model
5k First: Choose from column (B) what suitable column (A):
»
13j
2J AlFaez
^ Second: Put (v^) or (x):
O You can publish photos of others or show their phone
number online. ( )
® When online do not answer any unknown messages.( )
©To match the password values, we can use the condition
form1.text1.value=="". ( )
© We add action attribute to <form> element for specify the
webpage to which the submitted data will be sent. ( )
©To create f1()function, we used: function f1(){ ( )
^ Third: Put the suitable concept in it's place:
Name - Java Script Language - true - Action - Form
O Attribute determines the process that will be executed when
you press the submit button
© Property used to prevent the user from choosing or selecting
more than one option in the radio field
© is used to create an interactive websites in which the
user can enter data.
[J4
AlFaez il
I
Exam model:
^ First: Choose the correct answer between brackets:
15
General Tests i AlFaez
^ Third:(A)What are the validate data entered into webpage:
o e
6 o
(B): Put the suitable concept in it’s place:
Function -(;)- Reset - htm - alert - <input type ="text">
O To add student name field, write code.
GD
AlFaez i General Tests
^ Second: Matching from column(A)for column (B):
Column (A) Column(B)
To add a clear button to
1 <lnput type="password"> A
the webpage.
2 B
To add a password input
DocumentWrite("Salah");
field to the webpage.
4
lf(form1.password.value. D
To add a checkbox field to
Iength<8); a webpage.
«
iD
AlFaez 2
(4) Add a Text data field to the (4)HTML (5) Document.Write()
webpage. Third:
(5) Add a button to the webpage. (1)<scripts> </script>
(2) JavaScript (3) HTML
- Answers of the First Unit(2) ■
(4) Statements
First: (5) All of the previous
(1) Radio (2)Checkbox (6) document.write()
(3)textbox (4)Password (7) alert()
(5)button (8)HTML (9);
Second:
Fourth:(0
(1) <input type="password"> <Script>
(2)Name (3) Radio button alert ("welcome");
(4)value (5)input </Script >
Third:
(2)
(l)text (2)Input <Script>
(3)radio (4) reset (5)type Document.write("computer and
Fourth: information technology subject");
(1)x(2)'4(3)x(4)>4(5)x </Script>
- Answer of the First Unit(31 - Answers of school questions -
First:
First:
(1)C(2)A(3)D(4)E(5)B (1) JavaScript (2) alertC)
Second: (l)name (3)document.write()
(2) Internet Browser Second:
(3)HTML (l)^(2)^(3)x
(4)Submit button (5) Reset button
(6) All of the previous - General revision (March)(1) -
Third: First:
(1)* (2) Notepad (3) value (l)/(2)>4(3)x(4)x(5)x
(4) Checkbox (5) Reset button Second:
Fourth:
(l)alert() (2) JavaScript
(l)x(2)x(3)^(4)x(5)^ (3)HTML (4) semi-colon (;)
(5) Document.write))
- The Seqond Unit • Third:
iD
2 AlFaez
- General revision (March)(2) - (4) alertC'Egypt") (5) </Script>
First: Sixth:(3),(1),(2),(4)
(l)^(2)^(3)^(4)x (5)x - Answers of school questions -
(6) X (7) X (8) X (9)X (10)^ First:
Second:
(1)function (2)function
(1) Checkbox (2) button
Second:
(3) value (4)Submit
(5) Reset (6) html - htm (l)x(2)x(3)^(4)^
ID
Answer of All Questions
AlFaez 2
- General revision (April)(2) - (3) The onclick event oeeurs when
the user clicks on a button, and
First:(1)text
specifies the function name(fl())
(2)HTML (3)Document.write to be executed.
(4).htm (5) internet browser
(4)To display the alert box with
Second:(1) document.write() "Successful".
(2)reset button (5) To add a command button to
(3) JavaScript language webpage, and the value attribute
(4) Branching specifies the caption for a button.
(5) <script>...</script>
Third:
Third:(1) action (1)D(2)E(3)A(4)C(5)B
(2) The password (3)Button
Fourth: (1)textbox
(4)function (5) A radio button
(2)caption (3) required field
Fourth:
(4) validation (5) value
(l)^(2)^(3)x(4)^(5)x
- The Answer of topic Five ■
- General revision (April)(3) -
First: (l)x
First: (2)/(3)^(4) X (5)^(6)^(7) X
(l)fonu (2)Password field Second:
(3)htm (4)If statement (1)C(2)D(3)B(4)A(5)C
(5)Interactive (6) Branching Third: (1)E(2)A(3)D(4)C(5)B
Second:
Fourth:
(1)D(2)E(3)B(4)A(5)C
(1) Name (2) Text Box
Third:(1)^(2) x
(3) X (4) (5) X (6) X (7)X (8) x (3)Radio button (4) Reset Button
(5)value (6) button
Fourth:
(1) name (2) Text box Fifth: (1)B(2)C(3)A(4)E(5)D
(3) radio button (4) webpage
- Answers of school questions -
- The Answer of topic Four ■ First:
ID
12 AlFaez
- The Answer of topic Seven ■ - Unit Three A
First: - The Answer of questions ■
(1)text file (2)HTML (3)<fomi> First:(1) (2) x
(4) date (5) htm (6) Open (3)^(4) X (5)X (6)X (7)^(8)x
Second:(4),(5),(2),(3),(1) Second:(1) All of the previous
- Answers of school questions - (2) Virus (3)internet safety
First: (4) Spyware (5) angry
(1)HTML5 (2)required - Answers of school questions -
(3)a number input field First:(1) Identity theft.
Second:(1)b (2) c(3)a (2) Spyware. (3) Virus.
(4) User name and Password
Enswer of the Second Unit(1) (5) A discussion or informational
First:(l)x(2)x(3) V(4)x(5) V website published on the World
Second:(3),(1),(4),(2) Wide Web.
Third:
Third:(l)x(2) V(3) V(4)x
(1)Document.write statement
(2) JavaScript (3)Function - General revision (May)(1) -
(4) Alert statement (5)If statement First:(1) Text input field
Fourth:
(2) Secret codes (3) JavaScript
(1)C(2)A(3)D(4)E(5)B (4) value (5)A radio button
Second:
Answer of the Second Unit (2) (1)D(2)C(3)A(4)E(5)B
First:
Third:(1) V (2) x (3) V (4) x (5)x
(1) value (2) name (3) onclick Fourth:(1)Function
(4) Function name (5)textbox (2) Identity theft (3)"Semi-colon"(;)
Second:
(4)false (5)onclick
(1)x(2)V(3)V(4)x(5)x
Third:(1)B (2) D(3)A(4)E(5) C - General revision (May)(2) -
Fourth:(3),(1),(4),(2) First:(5),(2),(4),(1),(3)
Second:(1)V (2)x (3) x (4)V (5)V
E nswer of the Second Unit (3) Third:(1) E(2) A (3)D (4)B(5)C
First:
Fourth:(1) Malware (2) alert()
(1)V(2)x(3)x(4)V(5)V
Second:
(3)Length (4) html (5) Spyware
(1) name (2) <script></script> - General revision (May)(3) -
(3) JavaScript First:(1)d (2) c(3)e(4) b (5) a
(4)form 1.tl.value (5) Function Second:(1) x (2) x (3) V (4) x (5) x
Third:(3),(4),(1),(5), (2) Third:(1)Identity theft
Fourth:(1)C(2) A (3)E(4)B (5) D (2)HTML (3) Value
22
jAlFaez A
(4) Malware (5) <script></script> [B](1) value
Fourth:(1) b(2) a(3)c (4) d (5)a (2) if statement (3) Malware
*&*
- (4) 4jUI (p396 6)-
* Answer of the Model Exams * First: (1)Fomi (2) Text data field
(3)* (4)checkbox (5) button
Second: (l)'^ (2) x (3) x (4) x (5)^
First: (1) <input type ="text"> Third: [a] (1) Virus (2) Spyware
(2) htm (3)Function (4) Java script (3) Malware (4) Secret cods
(5) <script></script> [b] (1),(3),(4),(2)
Second: (1) V (2) x (3) x (4) x
(5) V (6) X (7)X
- (5) 4 jita 4ji4i (page 8)-
Ttiird: (1)B(2) A(3)E(4)C(5)D First: (1) X (2) X (3) X (4) (5)
Fourth: (1) Secret codes Second: (1) button (2) Vims
(2) (3) <form> (4)text box
if(form1.textl.value!==form1.Text2.value){ (5) User name and password
(3) Identity theft Third: (1) radio button (2)submit
IK> (3)flinction (4) Identity theft (5) Form
Fourth: (1) If Statement
First: (1) x (2)x (3) x (4) x (5) V (2) JavaScript (3) alert();
Second: (l)onclick (2)java script (4)branching (5) dociimi at.write
(3) alert (4) Button (5)function
Tlord: (1) Checkbox (2) Submit (6) I 4jij( (page 9) —
(3) Text data field (4) value Firrst: (1) submit (2)function
(5) document.write (3)- Do not leave empty field.
Fourth: - matching Password.
(1) disagree (2)agree (3) agree - Specifies the password length.
(4)return (5) Property(name)
- (3) j?* 4^141 (page 5)^ Second: (1)^(2) x (3)^(4) x (5) x
First: (1)E(2)D(3)A(4)B(5)C Third: [a] (1)function School( ){
Second: (1)function (2)tme (2) <script>
(3) False (4)function name
<body>
(5)conditional expression
<input type="button" onclick="msg()'
Third: (l)x(2)x(3)x(4) V(5) V
name="show">
Fourth:
lAI Cases of data validation are: function msg(){
(1) Leave the data field empty. alert("Welcome"):}
(2) Define the minimum allowed </script>
length for the input field. </body>
» 23
AnsweriftfAII Questions 2 AlFaez
(3)if(form1.text1 .value.Iength<6)
- (9) (page 13)-
[b](I)Show the text "My School"
within the webpage. First;(i)B(2)C(3)D(4)E(5) A
(2)Show text ("I love my school") Second;(1) x (2)^(3) x (4)^(5)^
inside the text box within a Third:(i) Action (2) Name
message. (3) Java Script Language
(4) Form (5)tmc
- (7) (page 11)- Fourth:(3),(1),(4),(2)
First:
- (10) (page 15) -
(1) branching
First:
(2) Virus (3) name (1) name (2)onclick
(4) action (5) JavaScript (3)Password (4) Branching (5) html
Second;(i)/(2)x(3)x(4)^(5)X
Second:(i) Displays a dialogue box Third:
with message "welcome".
1^1 Cases of data validation are;
(2)To add a password input field to
(1) Leave the data field empty.
the webpage. (2) Define the minimum allowed length
(3) Check if the textbox content for the input field.
empty or not. (3) Matching the data entered in the
(4)To create a function named fl() two fields.
that will be called or executed on (4) Prevent the user from entering type
button clicked. of data that different of field data type.
(5) To return false if the textbox [B](1) <input type ="texf'>
was left empty. (2) htm (3)(;) (4)Function
Third; (5) alert (6)Reset
(1)V(2)V(3)x(4)x(5) V
- (11) (page 16) -
- (8) (page 12)-
First:(1) Vims
First:
(l)x(2)x(3) V (4)^(5) X (2) Statements (3) False (4)Tme
Secon
(5)
(1) Value (2) Semicolon (;) formt .textt.value!==form1.text2.value
(3) branching (4)isNaN Second;(i) B (2)E(3) D(4) C(5) A
all of the above Third:
bird:
(1) Action (1) Radio button (2) Value
(2) use antivims programs and update (3)Submit(4) Name(5)Text data field
them continually. (3) False Fourth: {[)^(2)^(3) x (4) X
(4) Name
(5) Username and Password
Fourth: With the best wishes for success