Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION
Web/multimedia Development
Hardware Engineering
Data processing/info Tech
Network/Security
Software Engineering
Ethical Hacking (CEH)
Cisco CCNA
AUTOCAD 2D & 3D
Oracle Database
IT Infrastructure Library
Project Management(PMP)
1|Page
2|Page
CHAPTER TWO
INDUSTRIAL TRAINING EXPERIENCE
CSS
JAVASCRIPT and
SQL.
I will be stating in this chapter the various knowledge I had acquired in each
of the languages listed above.
2.1 HTML
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
4|Page
in.Immediately after the document type definition is the html tag (i.e. HTML
closing and opening tag).
<HTML>
...
</HTML>
Within this HTML tags, is the Head and the Body which forms the two
main sections of my HTML pages. The head section holds the site
information, while the body holds the site content. A typical HTML
document is seen below:<DOCTYPE
HTML
PUBLIC
_//W3C//DTD
HTML
1.01
Transitional//EN >
<HTML>
<HEAD>
...
</HEAD>
<BODY>
5|Page
...
</BODY>
</HTML>
The most vital element of a quality web page is the title. It helped me
know what am visiting and represents the page. Its also one of the tags that
goes within the HEAD tags and can only be applied once on a page. To add
a title to my document I will use the code below:
<Title>this is the title /title>
. . .
6|Page
2.1.4 PARAGRAPHS
<HR>
Attributes such as ALIGN, WIDTH and SIZE can be used as seen below:
2.1.7 COMMENTS
I can also change my font face and size by doing the following:
8|Page
2.1.9 BOLDING/ITALICING/STRIKING
Links are very Essential to help users of my website move from one
page to another within the website .To create a simple link I would make use
of an Anchor tag in the form seen below:
<A Href =Gestric.php>text to be affected </A>
9|Page
I.
II.
III.
IV.
after the body tag in my html document and also place this other code:
<A href =#pagelink>jump to top </A>
before the closing tag of the body.
10 | P a g e
‘
’
# #
$ $
& &
©
% %
2.1.13 LIST
11 | P a g e
<ul>
<li> BOY</li>
12 | P a g e
In addition there exist what is called Defination List (DL) which consist of
the Defination Term (DT) and Defination (DD).An example is seen below:
<dl>
<dt> EFCC</dt>
<dd> Economic and Financial Crimes Commission</dd>
</dl>
13 | P a g e
2.1.14
FORMS
Action: helps to specify the server site processing script for the form
ii.
input.
Method: sends input to the processing script.
The component of a form are numerous, however it has as its basic
type
=text
size
=20
placeholder
=username
name=username/> <br/>
14 | P a g e
15 | P a g e
16 | P a g e
2.1.15 TABLES
Web developers use tables to organize their form fields. This tables has
many attributes which I can modify to fit exactly what i want; some of
which include:
i.
ii.
iii.
Border
Cell padding
Cell spacing etc.
In creating a table i made use of the following table tags:
i.
ii.
iii.
iv.
v.
<table>
<tr> :defines rows
<th> :table header
<td> :data cells
<caption> :Allow you put a caption
17 | P a g e
in fig2.2 it can be seen that tags made-up the whole code. Table 2.1 below
consist of some of these tags.
Opening tag
<p>
<h1>
<div>
<textarea>
<br/>
<frameset>
<fieldset>
<legend>
<img/>
Description
Paragraph tag
Heading tag
Division tag
Textarea tag
Break tag
Frameset tag
Fieldset tag
Legend tag
Image tag
Closing tag
</p>
</h1>
</div>
</textarea>
</frameset>
</fieldset>
</legend>
the whole multiple-page website. It involves having a separate css file saved
in the same directory as my html document and then linking it with the html
page using:
19 | P a g e
Just as Html has tags, css has selectors. Selectors are the names used
to describe styles in internal and external stylesheet.Each selector has
properties inside curly brackets, which simply take form of words such as
color, front-weight or background-color. Each of these properties are given a
20 | P a g e
Body {
Font-size: 13px;
Color: red;
}
When the above code is applied to an html document, text between the body
tags will be 13pixels in size and red in color.
Css selectors can be said to be of basically three types and they are:
i.
ii.
iii.
Class selectors
Html tag selectors and
Id selector.
Class selectors are used when one want to define a style that does not
redefine an html tag entirely. A class selector has the general syntax:
21 | P a g e
Html tag selectors are used when one wants to redefine the general
look for an entire html tag. It has the general syntax:
Unit
Description
Examples
n
1
Absolute
lengths
measurements.
3-Hex color This is an
RGB Body{
where
r Color:#fff;
corresponds to a hex }
value (0 - f) for red, g
for green and b for blue.
For
example,
#f00
#fff
would
specify white.
6-Hex color This is an
RGB Body
{backgroundcolor
where
rr Color:#f3ffff;}
corresponds to a hex
value (00 ff) for red,g
in the same range for
green and b for blue for
example
,#ff0000
#ffffff
would
23 | P a g e
RGB Color
specify white.
A
decimal
or
Strong {
Numbers
from 0 to 100%.
Css supports simple P{line-height:2;}
positive integer values
like 2 etc. as well as Body {margin: 0;}
real
numbers
like3.5
to
put
seen.
Percentages Percentages are denoted Body{font-size:10%}
24 | P a g e
Strings
length.
Strings are defined with P{font-family: fancy font;}
either single quotes or
double quotes.
2.3 PHP
25 | P a g e
From the fig2.4 above, it can be seen that php is used by inserting phpcode
inside the html that makes up the website. When a client (i.e. anybody on the
web) visits a webpage that contains this code, the webserver (which is the
brain) executes it.
i.
ii.
iii.
iv.
Any file that contains php code must be named as .php, in order to get
ii.
the php script working. Like Html my files are saved as plain text.
Notes about my code with comment tag should be included so that
months down the road i can make sense of what i was trying to make
my script do. Im able to set comment apart from my code by using
either // at the beginning of each line, or surrounded by /* and
iii.
iv.
28 | P a g e
iii.
e.g. $lazay_joy;
It is not used elsewhere (like print).
numbers
and
underscore
character
Arithmetic operators
Comparison operators
30 | P a g e
iii.
iv.
v.
Assignment operators
Logical operators
Conditional operators.
The table2.3, 2.4, 2.5 and 2.6 below gives the description of each of these
operators with examples:
Table 2.3: Arithmetic operators
s/
Operato
n
1
2
3
4
5
Description
Example
Let A=10,B=20
A + B will give
30.
Subtracts second operand from the first A B will give
-10.
A * B will give
/
%
200.
Divide numerator by denumerator
B/A will give 2.
Modulus operator and remainder of B % A will give
after an
6
7
0.
++
Integer division
Increment operator, increases integer A++ will give
--
value by one.
11.
Decrement operator, decreases integer A-- Will give 9.
value by one.
31 | P a g e
s/
Operato
==
Description
Example
Let
A=10,B=20
It checks if the value of two operands are A == B is not
equal or not and if yes then condition true.
!=
becomes true.
It checks if the value of two operands are (A! = B) is
equal or not. If values are not equal then true
>
<
>=
<=
operand.
Checks if the value of the left operand is (A <= B) is
less or equal to the value of the right
true
s/
Operato
Description
Example
32 | P a g e
n
1
r
AND
let
A=10,B=20
This is the logical AND operator. If both the (A and B) is
operands are true, then the condition true.
OR
becomes true.
Called logical OR operators .if any of the (A or b) is
two operators are non-zero then the true
$$
||
becomes true.
This is a logical OR operator. If any of the (A || B)
two operands are non-zero then the
s/
Operato
Description
Example
n
1
r
=
Let A=10,B=20
Simple operator assignment operator C=A+B
will
33 | P a g e
+=
value
of
is
to
-=
operand.
This is known as subtract AND C-=A is equivalent
assignment operator. It subtract right to C = C A.
operand from the left operand and
*=
/=
is
to
is
%=
left operand.
This is known as modulus AND C%=A
is
to
34 | P a g e
s/
Operato
Description
Example
n
1
r
?:
Let A=10,B=20
This operator evaluates expression If condition is true
for a true or false value and then then
value
X:
2.4 JAVASCRIPT
i.
Animation :
Cookies :
This can be created with JavaScript. They are the little bits of data
stored on ones computer by web pages that recall information selected or
inputted by users.
iii.
Analytics :
Forms :
JavaScript can be used to check that users have completed all required
fields before submitting, so that users dont have to reload the page and start
all over again if they omit a field .This is important as it saves a lot of stress
and time.
36 | P a g e
}
if(document.myform.res_address2.value == "")
{
alert("please provide your res_address2!");
document.myform.res_address2.focus();
return false;
}
if(document.myform.per_address.value == "")
{
alert("please provide your per_address!");
document.myform.per_address.focus();
return false;
}
if(document.myform.village.value == "")
{
alert("please provide your village!");
document.myform.village.focus();
return false;
}
if(document.myform.clan.value == "")
{
alert("please provide your clan!");
document.myform.clan.focus();
return false;
}
if(document.myform.lga.value == "")
{
alert("please provide your lga!");
document.myform.lga.focus();
return false;
}
if(document.myform.state.value == "")
{
alert("please provide your state!");
document.myform.state.focus();
return false;
}
if(document.myform.dob.value == "")
{
alert("please provide your dob!");
38 | P a g e
document.myform.dob.focus();
return false;
}
if(document.myform.mastatus.value == "")
{
alert("please provide your mastatus!");
document.myform.mastatus.focus();
return false;
}
if(document.myform.nac.value == "")
{
alert("please provide your nac!");
document.myform.nac.focus();
return false;
}
if(document.myform.heq.value == "")
{
alert("please provide your heq!");
document.myform.heq.focus();
return false;
}
if(document.myform.inataqod.value == "")
{
alert("please provide your inataqod!");
document.myform.inataqod.focus();
return false;
}
if(document.myform.workex_date.value == "")
{
alert("please provide your workex_date!");
document.myform.workex_date.focus();
return false;
}
if(document.myform.sub_date.value == "")
{
alert("please provide your sub_date!");
document.myform.sub_date.focus();
return false;
39 | P a g e
}
return(true);
}
</script>
40 | P a g e
41 | P a g e
2.5.2
43 | P a g e
connector B
Pin 1
Pin1
Pin 2
Pin 2
Pin 3
Pin 3
Pin 4
Pin 4
Pin 5
Pin 5
Pin 6
Pin 6
Pin 7
Pin 7
Pin 8
Pin 8
44 | P a g e
In addition straight through cables are used to connect dissimilar devices e.g.
pc to switch.
Crossover cables (see fig2.11) are similar to straight through cables
except that TX (transmitter) and RX (receiver) lines are crossed as shown
below:
Connector A
Connector B
Pin 1
Pin 3
Pin 2
Pin 6
Pin 3
Pin 1
Pin 4
Pin 7
Pin 5
Pin 8
Pin 6
Pin 2
Pin 7
Pin 4
45 | P a g e
Pin 8
Pin 5
Fig
2.11: Crossover wiring
In addition crossover cables are used to connect similar devices e.g. pc to pc.
Rollover cables (see fig2.12) are used to connect to a device console
port
to
make
programming
changes
to
the
device
(i.e.
for
Connector B
Pin 1
Pin 8
Pin 2
Pin 7
Pin 3
Pin 6
Pin 4
Pin 5
46 | P a g e
Pin 5
Pin 4
Pin 6
Pin 3
Pin 7
Pin 2
Pin 8
Pin 1
2.6 DATABASE
Database is a collection of tables with related data. It is needed to
create dynamic pages with changing content and features. There are many
software applications available for building web databases and connecting to
them including:
47 | P a g e
and
fast
growing
organizations
including
facebook,google,Adobe,etc.
It is very friendly with php.
The most appreciated language for web development.
It support large database up to 50millions row or more than in a table.
The default file size of the table is 4GB but it can be increased to a
48 | P a g e
49 | P a g e
50 | P a g e
Fig
2.15: Phpmyadmin
2.6.1
51 | P a g e
<body>
<?php
$mysql_hostname ="localhost";
$mysql_user="root";
52 | P a g e
$mysql_password="";
$mysql_database="registration";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password)
or die
("could not connect databese");
mysql_select_db($mysql_database, $bd) or ("could not select database");
?>
</body>
</html>
2.6.3
column_name2
data_type(size),
column_name3
data_type(size),
. . .
);
An example is seen in fig2.16 and fig2.17, where fig2.16 is the code of the
table and fig2.17 show one part of the table for the Deltona personnel form
designed by me in fig2.7.
54 | P a g e
55 | P a g e
Fig2.14: Sql syntax used for creating table lazico in the database registration
for the form in fig2.7.
56 | P a g e
CHAPTER THREE
57 | P a g e
3.0
CONCLUSION/RECOMMENDATION
Design a website.
Code in Php
Code in Css
Code in Html
Enable two computers to communicate with each other using cables or
wireless connection.
Perform some functions with JavaScript.
3.1
CHALLENGES/RECOMMENDATION
58 | P a g e
APPENDIXES
APPENDIX A
59 | P a g e
APPENDIX B
60 | P a g e
APPENDIX C
61 | P a g e
APPENDIX D
62 | P a g e
<!DOCTYPE
html
Transitional//EN"
PUBLIC
"-//W3C//DTD
XHTML
1.0
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>personnel form</title>
<script type="text/javascript">
function Redirect(){
window.location = "ubong1.html";
}
</script>
<script type="text/javascript">
//form validation code.
function validate()
{
if(document.myform.name.value == "")
{
alert("please provide your name!");
63 | P a g e
document.myform.name.focus();
return false;
}
if(document.myform.position.value == "")
{
alert("please provide your position!");
document.myform.position.focus();
return false;
}
if(document.myform.tel.value == "")
{
alert("please provide your tel!");
document.myform.tel.focus();
return false;
}
if(document.myform.email.value == "")
{
alert("please provide your email!");
document.myform.email.focus();
return false;
64 | P a g e
}
if(document.myform.res_address1.value == "")
{
alert("please provide your res_address1!");
document.myform.res_address1.focus();
return false;
}
if(document.myform.res_address2.value == "")
{
alert("please provide your res_address2!");
document.myform.res_address2.focus();
return false;
}
if(document.myform.per_address.value == "")
{
alert("please provide your per_address!");
document.myform.per_address.focus();
return false;
}
if(document.myform.village.value == "")
65 | P a g e
{
alert("please provide your village!");
document.myform.village.focus();
return false;
}
if(document.myform.clan.value == "")
{
alert("please provide your clan!");
document.myform.clan.focus();
return false;
}
if(document.myform.lga.value == "")
{
alert("please provide your lga!");
document.myform.lga.focus();
return false;
}
if(document.myform.state.value == "")
{
alert("please provide your state!");
66 | P a g e
document.myform.state.focus();
return false;
}
if(document.myform.dob.value == "")
{
alert("please provide your dob!");
document.myform.dob.focus();
return false;
}
if(document.myform.mastatus.value == "")
{
alert("please provide your mastatus!");
document.myform.mastatus.focus();
return false;
}
if(document.myform.nac.value == "")
{
alert("please provide your nac!");
document.myform.nac.focus();
return false;
67 | P a g e
}
if(document.myform.heq.value == "")
{
alert("please provide your heq!");
document.myform.heq.focus();
return false;
}
if(document.myform.inataqod.value == "")
{
alert("please provide your inataqod!");
document.myform.inataqod.focus();
return false;
}
if(document.myform.workex_date.value == "")
{
alert("please provide your workex_date!");
document.myform.workex_date.focus();
return false;
}
68 | P a g e
if(document.myform.sub_date.value == "")
{
alert("please provide your sub_date!");
document.myform.sub_date.focus();
return false;
}
return(true);
}
</script>
</head>
<style>
.form {
background-color:
#FFFFFF;
}
69 | P a g e
#mymenu{margin-left:10px;padding:0;margin-right:0px;margintop:0px;margin-bottom:0px;
background-color:#FFFFFF;
height:70px;
}
#mymenu li{display:inline;list-style:none;
}
#mymenu li a{
display:inline;
float:left;
width:131px;
background:red;
margin-top:52px;
margin-right:27px;
padding-right:0px;
padding-bottom:0px;
margin-bottom:0px;
padding-left:0px;
text-decoration:none;
70 | P a g e
color:#ffffff;
text-align:center;}
#mymenu li a:hover{background:black;display:inline;
}
#mymenu ul{;border:1px solid #ffffff;}
#mymenu
ul
a{width:80px;text-
align:left;background:blue;color:#FFFFFF;}
.lion{float:left;
}
</style>
<body>
<div>
<ul id="mymenu">
<img src="fr.jpg" height=
71 | P a g e
<img
src="deltona.jpg"
height=70px;alt="school
name";
style="float:left"/>
<li><a href="javascript:void()" onclick="change_content('science')"
id="scie1">HOME</a>
</li>
<li><a href="#" >tutorials</a></li>
<li><a href="#">About</a></li>
<li><a href="#">contactus</a></li>
</ul>
</div>
<form
action="connection.php"
method="post"
class="form"
enctype="multipart/form-data"
name="myform"onsubmit="return(validate());">
<div style="background:green;height:320px;margin-left:10px;paddingright:0px ;">
72 | P a g e
<b><span style="color:white;margin-top:100px;marginright:0px;font-size:50px;float:left;"><em>PERSONEL
FORM</em></span></b>
<span style="float :right ;margin-right:20px; margintop:100px;background:#FFFFFF;height:200px;"><input
name="file"
accept="image/*"
width:200px
type="file"
height:200px;
/></span>
</div>
<div style="margin-top:10px; margin-left:10px">
<table>
<tr>
<td>1.Name:<input
type="text"
size="100px"
name="name"/></td>
</tr>
<tr>
<td>2.Position
Held:<input
type="text"
size="93px"
name="position"/></td>
</tr>
73 | P a g e
<tr>
<td>3.Telephone Number:<input type="text" size="89px"
name="tele"/></td>
</tr>
<tr>
<td>4.E-mail Address:<input
type="text"
size="92px"
uyo:<input
type="text"
name="email"/></td>
</tr>
<tr>
<td>5.Residential Address
in
size="89px" name="ad_uyo"/></td>
</tr>
<tr>
<td>6.Residential Address of parents:<input type="text"
size="89px" name="ad_parent"/></td>
74 | P a g e
</tr>
<td>7.Permanent
Home
Address:<input
type="text"
<tr>
<td>8.Village:<input
type="text"
size="89px"
name="village"/></td>
</tr>
<tr>
<td>9.Clan:<input
type="text"
size="89px"
name="clan"/></td>
</tr>
<tr>
<td>10.Local
Government
Area:<input
type="text"
size="89px" name="lga"/></td>
</tr>
75 | P a g e
<tr>
<td>11.State of Origin:<input type="text" size="89px"
name="state_ori"/></td>
</tr>
<tr>
<td>12.Date of Birth:<input type="text" size="89px"
name="dob"/></td>
</tr>
<tr>
<td>13.Marital
status:<input
type="text"
size="89px"
name="m_status"/></td>
</tr>
<tr>
<td>14.Number and Ages of Children:<input type="text"
size="89px" name="n_uchild"/></td>
</tr>
76 | P a g e
<tr>
<td>16.Highest
Educational
Qualification:<input
<tr>
<td>17.Institutions
Attended/Academic
Qualification
<tr>
<td>18.Working Experience with Date:<br/>
<select name="monthofbirth">
<option value="">--selectdate--</option>
<?php for($i=1;$i<=12;$i++)?>
<option value="<?php echo ($i<10)?'0'.$i:$i;?>"><?php echo $i;?
></option>
<?php end;?>
</select>
<select name="dayofbirth">
78 | P a g e
<option value="">--selectdate--</option>
<?php for ($i=1;$i<=31;$i++)?>
<option value="<?php echo ($i<10)?'0'.$i:$i;?>"><?php echo $i;?
></option>
<?php end; ?>
</select>
</div>
<p style="float:right"><input type="submit" value="click to submit"
onclick="Redirect();"/></p>
</form>
</body>
</html>
REFERENCES
79 | P a g e