Web Programming
Web Programming
Chapter two :
1. Define the internet. What protocol suit does it follow?
The internet is a global network of interconnected computers that communicate using
the Internet Protocol Suite, which includes protocols such as TCP/IP, HTTP, FTP, and
SMTP.
2. What is email? How is it sent and received?
Email is a method of exchanging digital messages over the internet. It is sent and
received using email servers and clients, such as Outlook or Gmail.
c. [email protected]
d. [email protected]
Yes, they are valid.
6. What is telnet used for?
Telnet is used for remotely accessing and managing devices or systems over a network.
7. What is virtual terminal? What is it used for?
Virtual terminal is a application service that allows host in a multi terminal network to
communicate with other hosts irrespective of terminal type or characteristics and it is
used to connect to the remote hosts.
Web Programming 1
8. Name applications of telnet.
Few applications of telnet include the ‗putty‘ TCP client which can access a linux server
using windows operating system, Absolute telnet (windows client) and RUMBA (terminal
emulator).
9. Why is FTP protocol used?
FTP protocol is used for transferring files over a network. It is commonly used for
uploading web pages and other files to a web server, as well as for downloading files
from a server to a local computer.
10. Explain different connections that can be used by FTP.
There are two types of connections that can be used by FTP: active mode and passive
mode. In active mode, the client connects to the server's port 21 and then sends a
command to open a data port. In passive mode, the client connects to the server's port
21 and then sends a PASV command, which tells the server to open a data port for the
client to connect to.
11. What are drawbacks of telnet and FTP?
The drawbacks of telnet include lack of encryption, which makes it vulnerable to
eavesdropping and unauthorized access. The drawbacks of FTP include lack of security
features, such as encryption, which makes it vulnerable to attacks such as
eavesdropping and unauthorized access.
12. Define E commerce. What are the advantages of e commerce?
E-commerce refers to the buying and selling of goods or services over the internet. The
advantages of e-commerce include convenience, cost savings, access to a global
market, and the ability to easily compare prices and products.
Web Programming 2
b. Submission of the above form.
E-services
A codec is a device or software that compresses and decompresses digital media files
for transmission. It functions by encoding the data into a smaller file size for
transmission over a network, and then decoding it back to its original format at the
receiving end.
17. What are different types of video conferencing system?
2. Room-based video conferencing: This system is designed for larger groups and
involves dedicated conference rooms with specialized equipment for high-quality
video and audio transmission.
3. Mobile video conferencing: This type of system allows participants to join video
conferences from their mobile devices, such as smartphones or tablets.
1. Cameras: These capture the video feed of the participants in the conference.
2. Microphones: These capture the audio feed of the participants in the conference.
Web Programming 3
3. Displays: These show the video feed of the remote participants in the conference
room.
4. Codecs: These compress and decompress digital media files for transmission over
a network.
1. Connectivity issues: Poor internet connection can lead to dropped calls or poor
audio/video quality during conferences.
2. Compatibility issues: Different devices and software may not always be compatible
with each other, leading to difficulties in joining or hosting conferences.
2. Online banking: managing finances and conducting transactions over the internet
Web Programming 4
5. Online customer service: providing support and assistance to customers through
digital platforms
An e-business model is a framework that outlines how a company will generate revenue
and achieve profitability through its online activities. Three examples of e-business
models are:
23. What are risks for E business? What are the solutions available for these risks?
Risks for e-business can include security breaches, data privacy concerns, competition
from other online businesses, and technological changes. Solutions for these risks can
include implementing strong cybersecurity measures, complying with data protection
regulations, staying updated on industry trends, and continuously innovating technology.
ISP stands for Internet Service Provider. An ISP is a company that provides individuals
and businesses with access to the internet and related services such as email accounts
and web hosting. The role of an ISP in an internet connection is to connect users to the
internet through various means such as dial-up, DSL, cable modem, fiber optic, or
wireless connections. ISPs also manage network infrastructure and provide technical
support for their customers' internet connections.
25. Classify following technologies of ISP in business or home connections
Web Programming 5
Use of wi-fi for a laptop - Home and business connection
Different services provided by ISP include internet access, email services, web hosting,
domain registration, and online storage.
VISP stands for Virtual Internet Service Provider, which is a company that resells
internet services under its own brand name using the infrastructure of another ISP. An
example of VISP is a company that offers internet services to its customers but does not
own the physical network infrastructure.
Domain Name Servers (DNS) are specialized servers that translate domain names into
IP addresses, allowing users to access websites using human-readable addresses
instead of numerical IP addresses. Their function is to maintain a directory of domain
names and translate them into IP addresses when requested by a user's device.
Web Programming 6
The World Wide Web (WWW) has evolved from its inception as a collection of static
web pages with basic text and images to a dynamic platform with interactive content,
multimedia, e-commerce, social networking, and cloud based applications.
33. What is a web browser? List and compare different available web browsers
A web browser is an application used to access information on the World Wide Web.
Some popular web browsers include Google Chrome, Mozilla Firefox, Microsoft Edge,
Safari, and Opera. They differ in terms of features, performance, security, and
compatibility with different operating systems.
Chapter Four :
1. Explain how to create text based top navigation bar in details.
3. Inside the <nav> tag, use an unordered list (<ul>) to create a list of links.
4. Inside the <ul> tag, use list items (<li>) to create individual links.
5. Use anchor tags (<a>) inside each list item to create clickable links.
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
Web Programming 7
website. However, it's important to ensure that the images are clear and easily
recognizable as navigation buttons.
Chapter Five :
1. Create the structure of from pre-designed websites using HTML5 semantic elements.
HTML5 introduced a set of semantic tags that provide a more meaningful structure to
web pages, making it easier for search engines and screen readers to understand the
content. Some of the commonly used semantic tags include <header>, <nav>, <main>,
<section>, <article>, <aside>, and <footer>.
<!DOCTYPE html>
<html>
<head>
<style>
Web Programming 8
.container {
position: relative;
}
.box {
position: absolute;
top: 50px;
left: 50px;
}
</style>
</head>
<body>
<div class="container">
This is a container
<div class="box">This is positioned box</div>
</div>
</body>
</html>
<div id="header">
This is the header
</div>
<div id="content">
This is the main content
</div>
<div id="sidebar">
This is the sidebar
</div>
<div id="footer">
This is the footer
</div>
5. Explain difference between <div> tag and semantic tag in details with examples.
The main difference between <div> tag and semantic tags lies in their purpose and
meaning. Semantic tags provide more context and meaning to the content, making it
Web Programming 9
easier for search engines and screen readers to understand. On the other hand, <div>
tag is simply a generic container without any specific meaning attached to it.
Chapter Six :
1. What is the use of rowspan and colspan attribute?
The rowspan and colspan attributes are used in HTML tables to merge cells.
The rowspan attribute specifies the number of rows a cell should span, while the
colspan attribute specifies the number of columns a cell should span. This allows for
more complex table layouts and can be useful for creating tables with merged cells.
2. What is the importance of table tag in web page
The table tag is important in web pages as it allows for the creation of structured data
and layout. It is used to display tabular data in a structured format, making it easier for
users to read and understand.
Web Programming 10
4. Explain cell padding and cell spacing in details with example.
Cell padding refers to the space between the content of a cell and its border, while cell
spacing refers to the space between cells.
For example, if you have a table with cellpadding set to 5 and cellspacing set to 10,
there will be 5 pixels of space between each cell's content and its border, and 10 pixels
of space between each cell.
<table background="background.jpg">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
The foreground attribute is used to specify an image or color as the foreground (text)
color for a table.
<table foreground="red">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
Chapter Seven :
1. Explain basic html input types?
Basic HTML input types are used to create different types of form fields such as text,
password, checkbox, radio button, submit button, etc. These input types allow users to
enter and submit data in a web form.
Web Programming 11
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br>
<label for="message">Message:</label>
<textarea id="message" name="message"></textarea><br>
HTML5 introduced new input types and controls that provide better user experience and
validation. Some of the HTML5 input types include email, url, number, date, time, color,
range, etc. HTML5 also introduced new form controls such as datalist, output, and
progress.
4. Write short notes on following:
a. Audio tag: The audio tag in HTML is used to embed audio content in a web page. It
supports various audio formats such as MP3, WAV, and OGG.
b. Video tag: The video tag in HTML is used to embed video content in a web page. It
supports various video formats such as MP4, WebM, and OGG.
<audio controls>
<source src="music.mp3" type="audio/mpeg">
Web Programming 12
Your browser does not support the audio element.
</audio>
Chapter Eight :
1. Define javascript. How is it used?
JavaScript is a programming language commonly used for creating interactive and
dynamic content on websites. It is primarily used for client-side scripting, allowing web
developers to create features such as form validation, interactive maps, and dynamic
content updates without needing to reload the entire webpage.
2. explain the difference between client side and server side javascript.
Client-side JavaScript runs on the user's web browser, allowing for immediate feedback
and interaction with the user. It can manipulate the HTML and CSS of a webpage,
making it more responsive and engaging.
Server-side JavaScript, on the other hand, runs on the server hosting the website. It is
used to handle tasks such as data processing, database
Web Programming 13
Web Programming 14