You are on page 1of 7

Q#1. Make an HTML form which is given below having Grouped/Related fields.

Use fieldset element to make group of related fields together. Explore on google
how to use fieldset element.
<!DOCTYPE html>

<html>

<head>

<title>Zoo Keeper Form</title>

<style>

body{

max-width: 650px;

padding: 4px 50px;

p{

margin-top: 0px;

fieldset{

margin-bottom: 15px;

padding: 10px;

legend{

padding: 0px 5px;

font-weight: bold;

label{

width: 120px;

margin: 8px;

display: inline-block;
vertical-align: top;

</style>

</head>

<body>

<h1>Zoo Kepper Application Form</h1>

<form id="zookepperform">

<p><i>Please Complete the Form. Mandory fields are marked with a </i>

<em>*</em>

</p>

<fieldset>

<legend>Contact Details</legend>

<label for="name" style="line-height: 30px"> Name

<em style="color: red">*</em>

</label>

<input id="name" autofocus="" required="">

<br>

<label for="telephone">Telephone</label>

<input id="telephone">

<br>

<label for="email">Email <em>*</em></label>

<input id="email" type="email" required="">

<br>

</fieldset>

<fieldset>

<legend>Personal Information</legend>
<em>*</em><label for="age">Age</label>

<input id="age" type="number" required=""><br>

<label for="gender">Gender</label>

<select id="gender">

<option value="female">Female</option>

<option value="male">Male</option>

</select><br>

<label for="comments">When did you first know you wanted to be a zoo-


keeper?<em>*</em></label>

<textarea id="comments" oninput="validateComments(this)" required=""></textarea>

</fieldset>

<fieldset>

<legend>Pick Your Favorite Animals</legend>

<label for="zebra"><input id="zebra" type="checkbox"> Zebra</label>

<label for="cat"><input id="cat" type="checkbox"> Cat</label>

<label for="anaconda"><input id="anaconda" type="checkbox"> Anaconda</label>

<label for="human"><input id="human" type="checkbox"> Human</label>

<label for="elephant"><input id="elephant" type="checkbox"> Elephant</label>

<label for="wildebeest"><input id="wildebeest" type="checkbox"> Wildebeest</label>

<label for="pigeon"><input id="pigeon" type="checkbox"> Pigeon</label>


<label for="crab"><input id="crab" type="checkbox"> Crab</label>

</fieldset>

<p><input type="submit" value="Submit Application"></p>

</form>

</body>

</html>

Output:
Q#2. Give a detailed explanation Compare TCP/IP with other protocols
like HTTP, FTP, and TELNET. About TCP/IP, its layers and how does it
work also.
TCP/IP, or the Transmission Control Protocol/Internet Protocol, is a suite of communication protocols
used to interconnect network devices on the internet. TCP/IP can also be used as a communications
protocol in a private network (an intranet or an extranet).

The entire internet protocol suite -- a set of rules and procedures -- is commonly referred to as TCP/IP,
though others are included in the suite.

TCP/IP specifies how data is exchanged over the internet by providing end-to-end communications that
identify how it should be broken into packets, addressed, transmitted, routed and received at the
destination. TCP/IP requires little central management, and it is designed to make networks reliable,
with the ability to recover automatically from the failure of any device on the network.

Three of the most common TCP/IP protocols

HTTP means HyperText Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web
and this protocol defines how messages are formatted and transmitted, and what actions Web servers
and browsers should take in response to various commands.

Hypertext Transfer Protocol Secure (HTTPS) is an extension of the Hypertext Transfer Protocol (HTTP). It
is used for secure communication over a computer network, and is widely used on the Internet. In
HTTPS, the communication protocol is encrypted using Transport Layer Security (TLS), or, formerly, its
predecessor, Secure Sockets Layer (SSL). The protocol is therefore also often referred to as HTTP over
TLS, or HTTP over SSL.

The File Transfer Protocol (FTP) is a standard network protocol used for the transfer of computer files
between a client and server on a computer network.

FTP is built on a client-server model architecture using separate control and data connections between
the client and the server. FTP users may authenticate themselves with a clear-text sign-in protocol,
normally in the form of a username and password, but can connect anonymously if the server is
configured to allow it. For secure transmission that protects the username and password, and encrypts
the content, FTP is often secured with SSL/TLS (FTPS) or replaced with SSH File Transfer Protocol (SFTP).

What are the different layers of TCP/IP?

There are four total layers of TCP/IP protocol, listed below with a brief description.

Network Access Layer - This layer is concerned with building packets.

Internet Layer - This layer uses IP (Internet Protocol) to describe how packets are to be
delivered.
Transport Layer - This layer utilizes UDP (User Datagram Protocol) and TCP (Transmission
Control Protocol) to ensure the proper transmission of data.

Application Layer - This layer deals with application network processes. These processes
include FTP (File Transfer Protocol), HTTP (Hypertext Transfer Protocol), and SMTP (Simple
Mail Transfer Protocol).

HTTP

(Hyper Text Transfer Protocol) is a protocol that utilizes TCP to transfer its information between
computers (usually Web servers and clients). The client makes an HTTP request to the Web
server using a Web browser, and the Web server sends the requested information (website) to
the client.

Remember, IP is required to connect all networks; TCP is a mechanism that allows us to


transfer data safely; and HTTP, which utilizes TCP to transfer its data, is a specific protocol
used by Web servers and clients.

TELNET:

This protocol allows connecting to remote computers or servers. Using TELNET client
software or using telnet command on command utility users can connect to remote
computers through TCP/IP network.

FTP:

File transfer protocol, as the name suggests this protocol allow files to be transferred from
one computer system to another.

Q#3. Write out the difference between HTML, xHTML and XML.
XHTML:

Full form is Extensible Hyper Text Markup Language. XHTML was developed by World Wide
Web Consortium and it was released in the year 2000. It has been extended from XML and
HTML. The filename extension of XHTML is .xhtml and .xht. The last release of XHTML is
XHTML5, which is being developed as XML configured with HTML5 specifications.

XML:

XML and HTML are the markup languages defined for the distinct purposes and have several
differences. The prior difference is that in XML there are provisions for defining new elements
while HTML doesn’t provide a specification to define new element and it uses predefined tags.
XML can be used to build markup languages while HTML itself is a markup language.HTML
(Hypertext Markup Language) was designed to facilitate the transfer of web-based documents.
Conversely, XML was developed for providing interoperability with SGML and HTML and ease
of implementation.
HTML: full form is Hyper Text Markup Language. HTML was earlier proposed by Tim Berners
Lee and developed by W3C and WHATWG and released in the year 1993. HTML has been
extended from SGML. The filename extension of HTML is .html and .htm. The last release of
HTML is HTML5, which is a major release for HTML in the year 2014.

HTML is used for developing web pages and applications. HTML can be embedded with CSS
(Cascading style sheet) and Java Script. HTML consists of elements, these elements define the
structure of HTML pages. HTML elements are used to represent heading, paragraph, images,
tables and many more features. HTML elements are enclosed in HTML tags like <H1></H1>.
The browser does not display HTML tags; it displays only the content enclosed in tags.

You might also like