IT Lab Manual Final
IT Lab Manual Final
Approved by AICTE, Affiliated to Bangalore University, Bangalore, Accredited by NAAC with ‘A’ Grade
Prepared by
Prof. Harshitha L
Assistant Professor
Dept. of Computer Applications
The email refers to the electronic mail means of communication of sending and
receiving messages over the Internet. Email is the most common form of
communication nowadays. An email has significantly evolved over the past
couple of years. There are now stronger sync and messaging features along with
stronger security and spam-related features.
Components of an Email:
Protocols of Email:
Emails basically use two types of standard protocols for communication over the
Internet. They are :-
1. POP: POP stands for post office protocol for email. Similar to a post
office, our approach is just to drop the email over the service mail
provider and then leave it for services to handle the transfer of
messages.
We can be even disconnected from the Internet after sending the email
via POP.
POP allows using concentrate all the emails from different email
addresses to accumulate on a single mail program.
2. IMAP:
1. IMAP stands for Internet message access protocol.
2. IMAP has some special advantages over POP like it supports bidirectional
communication over email and there is no need to store conversations on
servers as they are already well-maintained in a database.
3. It has some advanced features like it tells the sender that the receiver has
read the email sent by him.
Working of Email:
1. When the sender sends the email using the mail program, then it gets
redirected to the simple mail transfer protocol which checks whether
the receiver’s email address is of another domain name or it belongs to
the same domain name as that of the sender (Gmail, Outlook, etc.). Then
the email gets stored on the server for later purposes transfer using POP
or IMAP protocols.
2. If the receiver has another domain name address then, the SMTP protocol
communicates with the DNS (domain name server) of the other address
that the receiver uses. Then the SMTP of the sender communicates with
the SMTP of the receiver which then carries out the communication and
the email gets delivered in this way to the SMTP of the receiver.
3. If due to certain network traffic issues, both the SMTP of the sender and
the receiver are not able to communicate with each other, the email to
be transferred is put in a queue of the SMTP of the receiver and then it
finally gets receiver after the issue resolves.
4. And if due to very bad circumstances, the message remains in a queue for
a long time, then the message is returned back to the sender as
undelivered.
From Sender to Receiver:
1. The sender first needs the email address of the receiver to send the
information to be communicated via email.
2. When the sender writes all the information in the email along with the
email address of the receiver and clicks on the send button, the mail
program transfers the message to the MTA (Mail Transfer Agent) which is
transferred from the local computer of the sender to the mail server via the
SMTP protocol.
3. Then the webmail server looks out for the similar mail transfer agent of the
receiver and locates it whether it is using the same DNS (domain name
server) or a different service.
4. The DNS looks for the mail exchanger service of the receiver. Now, the
SMTP protocol transfers the message between both mail servers through
their mailing agents.
5. Then the receiver’s MTA finally transfers this message to the receiver’s
local computer.
Google Meet:
1. Start or schedule a Google Meet video meeting
2. You can set up or start a new Google meet video meeting from:
1. Meet
2. Gmail
3. Google Calendar
4. Google Chat (Mobile only)
5. Another scheduling system
Start a video meeting from Meet
1. Go to Google Meet.
2. Click New Meeting.
3. Select an option:
4. Create a meeting for later:
5. To share the meeting details for a future meeting, copy the meeting link
and share with participants.
6. To directly start the meeting with this link, paste the link into a browser;
or enter the link into the “Enter a code or link” field and then click Join.
Start an instant meeting: Create a new meeting and join the meeting
directly.
1. Schedule in Google Calendar: To schedule a meeting, you’re directed to
Google Calendar.
2. Start a video meeting from Gmail
3. To start a video meeting from Gmail, you must turn on Meet in Gmail.
4. Open Gmail.
5. In the Meet section, click New meeting.
6. To send the meeting invite via link or email, click Send invite.
7. To copy the meeting invite details, click Copy meeting invite.
8. To send an email invite, click Share via email.
9. When you’re ready to join the meeting, click Join now.
10. Before you join your first meeting, make sure to allow permissions for
your Microphone and Camera. Once you grant permission:
11. To turn your microphone on or off, click Microphone Microphone.
12. To turn your camera on or off, click Camera Video call.
13. To join the call, click Join now.
14. To end the call, click Leave call Call end icon.
15. Start a video meeting directly from Gmail or Chat
16. Start a video meeting directly from Gmail or Chat.
Program:
<html>
<head>
<title> Complete Form</title>
</head>
<body bgcolor="pink" text="blue">
<h1><center>Registration Form</center></h1>
<form action=" ">
<p>
<label>Enter your email id:
<input type = "text" name = "myname" size = "24" maxlength = "25" />
</label>
</p>
<p>
<label>Enter the password:
<input type = "password" name = "mypass" size = "20" maxlength = "20" />
</label>
</p>
<p>Sex</p>
<p>
<label><input type="radio" name="act" value="one"/>Male</label>
<label><input type="radio" name="act" value="two"/>Female</label>
</p>
<p>Which of the following Accounts do you have?</p>
<p>
<label><input type="checkbox" name="act" value="one"/>Gmail</label>
<label><input type="checkbox" name="act" value="two"/>Facebook</label>
<label><input type="checkbox" name="act" value="three"/>Twitter</label>
<label><input type="checkbox" name="act" value="four"/>Google+</label>
</p>
<p> Any Suggestions?</p>
<p>
<textarea name="feedback" rows="5" cols="100">
</textarea>
</p>
<p>Click on Submit if you want to register</p>
<p>
<input type="SUBMIT" value="SUBMIT"/>
<input type="RESET" value="RESET"/>
</p>
</form>
</body>
</html>
4.Create a simple HTML page by using some of the basic tags (hyperlink,
marquee, image)
<html>
<head>
<title> Basic Tags Demo</title>
</head>
<body bgcolor="gray" text="cyan">
<h1>
<center> ESOTERIC -The IT Club</center>
</h1>
<img src="C:\Users\prade\Desktop\Web
Development\Sports_Details\Image8.jpg" align = "left" height="200"
width="200" >
<hr>
<h1> About ESOTERIC:</h1>
<p>
<h3>ESOTERIC is an IT Club , It is a group of people with common interest.
Esoteric was
started in the year 2002 and in Esoteric we organize various activites which
will enhance
the talent in students, overcome the stage fear and make a student a better
individual.
the Esoteric organizes activites like PICK and SPEAK, Coding and
Debugging, RAD, Paper Presentation, Technical Treasurehunt, IT
Manager and many more.
</h3>
</p>
<p> One of the most important feature of ESOTERIC is WE CARE. to see
about we care use the following link.
<a
href="https://www3.esoteric.com/?tm=1&subid4=1712821446.0201270000&K
W1=India%20Enterprise%20VPN%20Service&KW2=USA%20Enterprise%20
Cloud%20VPN&KW3=UK%20Enterprise%20Cloud%20VPN&KW4=China%
20Enterprise%20VPN&KW5=Korea%20Cloud%20Based%20VPN%20Service
&KW6=Hong%20Kong%20Cloud%20Based%20VPN%20Service&KW7=Aus
tralia%20Enterprise%20VPN%20Service&KW8=Japan%20Enterprise%20VPN
&KW9=Russia%20Enterprise%20VPN&KW10=Taiwan%20Enterprise%20Clo
ud%20VPN&searchbox=0&domainname=0&backfill=0"> CLICK HERE </a>
</p>
<h3>
<marquee > Esoteric the IT Club... In Pursuit of Excellence </marquee>
</h3>
</body>
</html>
5. Create a web page with multiple types of style sheet used in a
single page
<html>
<head>
<link rel="stylesheet" type="text/css" href="myex.css">
<style>
body
{
background-color: lightyellow;
}
p
{
color:red;
text-align:center;
}
</style>
<body>
<h2 style="color:blue;text-align:center;">This is inline CSS- Akshata</h2>
<b><p>This is Internal Style Sheet- Akshata Pradeep </p></b>
<h3>The External style sheet is applied on this heading- Akshata Pradeep
Kulkarni</h3>
</body>
</html>
CSS External file: myex.css
h2
{
color: maroon;
margin-left: 20px;
}
6. Write a CGI sample program to send output back to the user
CGI Code :
#!C:\Personal\code\xampp\perl\bin\perl.exe
# The above line is perl execution path in xampp
# The below line tells the browser, that this script will send html content.
# If you miss this line then it will show "malformed header from script" error.
print "Content-type:text/html\n\n";
use CGI qw(:standard escapeHTML);
print "<html><body>";
my $p = param("p");
if (!$p) {
$p = "Guest"; # Default value if "p" parameter is missing
}
print "</body></html>";
7. Create Time-Table using table tag
Program:
<html>
<head>
<title>IV SEM BCA A SECTION - TIMETABLE</title>
</head>
<body bgcolor="lightgreen">
<font face="times new roman" size="4">
<h1 align="center">RNS FIRST GRADE COLLEGE</h1>
<h2 align="center">Dept. of Computer Applications</h2>
<hr/>
<h3 align="center">IV SEM BCA A SECTION</h3>
<hr/>
<table align="center" border="3" cellpadding="3">
<tr>
<th>DAY/TIME</th>
<th>9.30-10.30</th>
<th>10.30-11.30</th>
<th>11.30-12.30</th>
<th>12.30-1.00</th>
<th>1.00-2.00</th>
<th>2.00-3.00</th>
<th>3.00-4.00</th>
</tr>
<tr align="center">
<td bgcolor="cyan"> MONDAY</td>
<td colspan="2" bgcolor="orange">ADA/IT LAB</td>
<td>IT</td>
<td rowspan="6" align="center" valign="center">BREAK</td>
<td>SE</td>
<td>ENG</td>
<td>LANG</td>
</tr>
<tr align="center">
<td bgcolor="cyan">TUESDAY</td>
<td>ENG</td>
<td>ADA</td>
<td>SE</td>
<td>C/W</td>
<td>OE</td>
<td>-</td>
</tr>
<tr align="center">
<td bgcolor="cyan">WEDNESDAY</td>
<td colspan="2" bgcolor="yellow">IT/ADA LAB</td>
<td>LAN</td>
<td>ENG</td>
<td>IC</td>
<td>-</td>
</tr>
<tr align="center">
<td bgcolor="cyan">THURSDAY</td>
<td>IT</td>
<td>ADA</td>
<td>LANG</td>
<td>IC</td>
<td>C/W</td>
<td>OE</td>
</tr>
<tr align="center">
<td bgcolor="cyan">FRIDAY</td>
<td>ADA</td>
<td>SE</td>
<td>IT</td>
<td>ENG</td>
<td colspan="3">ADD ON COURSE</td>
</tr>
<tr align="center">
<td bgcolor="cyan">SATURDAY</td>
<td >ADA</td>
<td >LAN</td>
<td >SE</td>
<td colspan="3">Weekend Begins</td>
</tr>
<tr align="center">
<td bgcolor="cyan">SUNDAY</td>
<td colspan="7" bgcolor="pink">HOLIDAY!!!!!</td>
</tr>
</font>
</table>
</body>
</html>
8. Creation of Frames in browser window using HTML
Program:
<html>
<head> <title>frames Demo</title>
</head>
<frameset rows="30%,40%,30%">
<frame
src="C:\Users\prade\Desktop\Akshata_RNS\WP_Labprograms\first_frame.html
">
<frame
src="C:\Users\prade\Desktop\Akshata_RNS\WP_Labprograms\second_frame.h
tml">
<frame
src="C:\Users\prade\Desktop\Akshata_RNS\WP_Labprograms\third_frame.htm
l">
</frameset>
</html>
<label for="password">Password:</label>
<input type="password" id="password" name="password" minlength="6"
required><br><br>
<script>
function validateForm(event) {
event.preventDefault(); // Prevent form submission
// Validate username
if (!usernameRegex.test(username)) {
alert('Username must be alphanumeric and at least 4 characters
long.');
return false; // Prevent form submission
}
// Validate email
if (!emailRegex.test(email)) {
alert('Please enter a valid email address.');
return false; // Prevent form submission
}
// Validate password
if (!passwordRegex.test(password)) {
alert('Password must be at least 6 characters long and contain at least
one letter and one number.');
return false; // Prevent form submission
}
// Form is valid, can proceed with submission or other actions
alert('Form submitted successfully!');
}
</script>
</body>
</html>
11. Write a java script program to perform four arithmetic operations:
Addition, Subtraction, Multiplication and Division on two numbers
<html>
<head>
<title> To calculate math operations </title>
<script type="text/javascript">
var n1, n2, res;
n1=prompt("Enter n1 value:");
n1=parseInt(n1);
n2=prompt("Enter n2 value:");
n2=parseInt(n2);
res = n1+n2;
document.write("Addition of n1,n2 = " + res + "<br/>");
res = n1-n2;
document.write("Subtraction of n1,n2 = " + res + "<br/>");
res = n1*n2;
document.write("Multiplication of n1,n2 = " + res + "<br/>");
res = n1/n2;
document.write("Division of n1,n2 = " + res + "<br/>");
</script>
</head>
<body bgcolor="turquoise">
</body>
</html>
<html>
<head><title> Web Page about RNSFGC</title></head>
<body bgcolor="peachpuff">
<h1> <center>RNS First Grade College</center></h1>
<center><b>Channasandra,RR NAGAR,
BENGALURU-98.
</b></center>
<center><img src="C:\Users\prade\Desktop\rns_college.jpg" width="500"
height="150"></center>
<h2><br>
<marquee> WELCOME TO RNSFGC WEBSITE !! </marquee>
</h2>
<br>
<h1>
COURSES OFFERED
</h1>
<b>* UG COURSES
<ol> o BCOM </ol>
<ol> o BBA </ol>
<ol> o BCA </ol>
</b>
<b>* PG COURSES
<ul> o MBA
</ul>
</b>
</body>
</html>