Unit I: Define Internet
Unit I: Define Internet
Unit I: Define Internet
DEFINE INTERNET .
PORTS
Ports are used in receiving and sending data to another server or client.
1. are able to connect by having one echo back the Application Layer Transport Layer
(TCP, UDP) Internet layer (IP) Physical path(Ethernet, FDDI etc) other’s input.
Discard 9 TCP/UDP Discard is a less useful test protocol in which all data
FTP 21
SMTP 25
HTTP 80
Powered By www.technoscriptz.com
POP3 110
RMI Registry 1099 This is the registry service for Java Remote Objects.
Class C address block specifies the first 3 bytes of address, for example 199.1.32. This
allows room for 254 individual addresses from 199.1.32.1 to 199.1.32.254
There are also Class D and E addresses are used for IP multicast group.
4. DEFINE FIREWALL.
The hardware and software that sits between the Internet and the local network, checking
all the data that comes and goes out is called ―firewalls‖. The security is provided using
SSL(Secure Socket Layer) in internet.
Proxy servers are related to firewalls prevents hosts on a network from making direct
connections to the outside world, a proxy server can act as a go-between. Thus a machine
that is prevented from connecting to the external network by a firewall would make a
request for a web page from the local proxy server instead of requesting the web page
directly from the remote web server.
Powered By www.technoscriptz.com
6. WHAT IS THE USE OF HTTP PROTOCOL?
HTTP is a standard protocol that defines how a web client talks to a server and how data
is transferred from the server back to the client.
MIME is a way to encode different kinds of data, such as sound and text, to be
transmitted over a 7-bit ASCII connection. It also lets the recipient know what kind of
data has been sent, so that it can be displayed properly. MIME was originally designed to
facilitate multimedia email and to provide an encoding that could get binary data past the
most train –damaged mail transfer programs.
MIME is an open standard for sending multipart, multimedia data through Internet email.
MIME was originally intended for email, it has become a widely used technique to
describe a file’s contents so that client software can tell the difference between different
kinds of data.
URL
The resource identified may be a file on a server, but it may also be an email address, a
news message, b book, a person’s name, an Internet host.
Syntax
Scheme: scheme-specific-part
Powered By www.technoscriptz.com
Scheme types
Telnet – A connection to a Telnet based service (only used in Remote Login System)
URL – Unform Resource Locaters (is a pointer to a particular resource on the Internet at
a particular location.)
URNs – Uniform Resource Name (is a name for a particular resource but without
reference to a particular location)
SYNTAX OF URN
urn:namespace:resource-name
URLs that are not complete but inherit pieces from their parent are called relative URL.
Powered By www.technoscriptz.com
In contrast, a completely specified URL is called an absolute URL address.
• SGML allows the user to create various user defined tags easily without any rules.
</PRODUCT
• Similar to SGML
• The value of an attribute may be enclosed in double of single quotes like this:
• STYLES can be introduced for XML program like CSS using XLS file(XML Style
Sheet program)
• Here XML styles are saved with an extension of .xls (XML style sheet)
Powered By www.technoscriptz.com
• Using .xls files various styles can be given to the data which is inside the XML
program.
Standard protocol for communication between web browsers and web servers.
HTTP specifies how a client and server establish a connection, how the client requests
data from the server, how the server responds to that request, and finally how the
connection is closed.
HTTP 1.0 is the currently accepted version of the protocol. It uses MIME to encode data.
The basic protocol defines a sequence of 4 steps for each request from a client to the
server.
Making a request
Powered By www.technoscriptz.com
15. WRITE THE FORMAT OF HTML PROGRAM
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Note: All the tags in HTML program are optional, however the file should be saved in
.html
extension.
HEADING TAGS - <h1> </h1> .. <h6> </h6> is used to introduce various headings.
TYPES OF LISTS
Powered By www.technoscriptz.com
Unordered lists
Ordered lists
UNORDERED LISTS
TYPE:
EXAMPLE
<LI> IT </LI>
</UL>
START: Alters the numbering sequence, can be set to any numeric value
Powered By www.technoscriptz.com
EXAMPLE
<LI> IT </LI>
</OL>
OUTPUT
5 CSE
6 IT
A table is a two dimensional matrix, consisting of rows and columns. All table related
tags are included between <TABLE> </TABLE> tags.
<TABLE>
</TABLE>
ALIGN Horizontal alignment is controlled by the ALIGN attribute. It can be set to LEFT,
CENTER, or RIGHT VALIGN Controls the vertical alignment of cell contents. It accepts
the values TOP, MIDDLE or BOTTOM WIDTH Sets the WIDTH of a specific number
of pixels or to a percentage of the available screen width.
CELLPADING This attribute controls the distance between the data in a cell and the
boundaries of the cell
Powered By www.technoscriptz.com
CELLSPACING Controls the spacing between adjacent cells
EXAMPLE
<TR>
<TR>
</TABLE>
BORDER: Specifies the size of the border to place around the image.
HSPACE: Indicates the amount of space to the left and right of the image
VSPACE: Indicates the amount of apace to the top and bottom of the image.
Powered By www.technoscriptz.com
20. MENTION THE DIFFERENT TYPES OF LINKS
HTML allows linking to other HTML documents as well as images. There are 3
attributes that can be introduced in BODY tag.
LINK – Changes the default color of a Hyperlink to whatever color is specified with this
tag.
ALINK – Changes the default color of a hyperlink that is activated to whatever color is
specified with this tag.
VLINK – Changes the default color of a hyperlink that is already visited to whatever
color is specified with this tag.
NOTE: User can specify the color name of a hyperlink or an equivalent hexadecimal
number.
EXTERNAL LINKS
SYNTAX
When a hyperlink is created on an image, clicking on any part of the image will lead to
opening of the document specified in the <A HREF TAG>. Linked regions of an image
map are called hot regions and each hot region is associated with
a filename.html.
Syntax
Powered By www.technoscriptz.com
POLYGON: 3 or more coordinates.
HREF – Takes the name of the .html file that s linked to the particular area on the
image.
</MAP>
HTML form provides several mechanisms to collect information from people viewing
your site. The syntax of the form is
• The METHOD attribute indicates the way the web server will organize and send you
the form output.
• Use METHOD = ―post‖ in a form that causes changes to server data, for example when
updating a database.
• The ACTION attribute in the FORM tag is the path to this script; in this case, it is a
common script which emails form data to an address. Most Internet Service Providers
will have a script like this on their site.
Various elements or controls can be created in FORM using <INPUT> tag. They are 1.
Label 2. Text box 3. Text Area 4. Radio button 5. Check box 6. List box 7. Command
button 8. Scroll bars
Powered By www.technoscriptz.com
Frames are used to call many html files at the same time. This can be done using
<FRAMESET> </FRAMESET> tags.
ATTRIBUTES OF FRAMES
ROWS – This attribute is used to divide the screen into multiple rows. It can be set equal
to a list of values. Depending on the required size of each row. The values can
• A number of pixels
COLS – This attribute is used to divide the screen into multiple columns.
EXAMPLE
<FRAMESET COLS = ―50%,50%‖> => Divides the first row into 2 equal
columns
</FRAMESET>
</FRAMESET>
Powered By www.technoscriptz.com
25. What is the difference between node and host?
A node is any addressable device connected to a network whereas the host is a more
specific descriptor that refers to a networked general-purpose computer rather than a
single purpose device (such as a printer).
Port numbers can range from 1 to 65535, however ports 1 to 1023 are reserved. These
reserved ports are referred to as we1l-known ports because the Internet Assigned
Numbers Authority publicly documents the applications that use them.
Powered By www.technoscriptz.com
• URL (Uniform Resource Locator): It is a specification for identifying an object such as
a file, newsgroup, CGI program or e-mail address by indicating the exact location on the
internet.
The components are host, an optional port, path, filename, section and query string.
URL encoding involves replacing all unsafe and nonprintable characters with a percent
sign (%) followed by two hexadecimal digits corresponding to the character\'s ASCII
value.
Powered By www.technoscriptz.com
• For managing information flows between departments and weapons systems
The server
• Handles storage
• Handles security
• Provides scalability
2. Conducting Surveys
3. Interactive services
37. What are the sequences of steps for each HTTP request from a client to the
server?
2. Making a request
3. The response
1. Text
Powered By www.technoscriptz.com
2. Multipart
3. Message
4. Image
5. Audio
6. Video
7. Model
8. Application
It is a simple page description language, which enables document creation for the web.
A zone that enables the server to direct traffic to itself. The host number is almost always
127.0.0.1.
It is a communication channel between web browser and web server. It begins on the
client side with the browser sending a request to the web server for a document.
1. From
2. Reference
3. If_modified_since
Powered By www.technoscriptz.com
4. Pragma
5. User Agent
It is a program or web page that enables you to search an Internet site for a specific
keywords or words.
When you enter a keyword, the search engine examines its online database and presents
to you a listing of sites that, in theory , match your search criteria.
• Application Server
• Database Server
• Transaction Server
ii. <TABLE>
Powered By www.technoscriptz.com
v. …
vii. </TABLE>
xii. …
xiv. </frameset>
• Mail servers
• Web servers
• FTP servers
• News server
• DNS servers
• Web pages
Powered By www.technoscriptz.com
• Home page
• Web browsers
• Web sites
48. Explain HTML forms in detail along with form elements, attributes & methods.
…form data…
</form>
i. <TEXTAREA> element
ii. <INPUT> tag: text, password, checkbox, radio, hidden, reset, submit,
button
49. What are the ways by which a server and a browser do communicate?
1. URL interpretation
• Parsed header
Powered By www.technoscriptz.com
50. What is HTML?
HyperText Markup Language. This is a file format, based on SGML, for hypertext
documents on the Internet. It is very simple and allows for the embedding of images,
sounds, video streams, form fields and simple text formatting. References to other objects
are embedded using URLs. HTML is a plain text file with commands <markup tags> to
tell the Web browsers how to display the file.
Include the element \"bgcolor\" with a color code in your body tag:
VLINK=\"#000066\" ALINK=\"#ffff00\">
Include the element \"background\" with the name of the graphics file:
Powered By www.technoscriptz.com
55. How do you make a graphic a link?
<AHREF=\"http://www.snowhawk.com/wildlife.html\"><IMG SRC=\"leopard.jpg\"
WIDTH=\"25\" HEIGHT=\"25\" ALIGN=\"top\" BORDER=\"0\" ALT=\"link to
wildlife\"></A>
Inserting the <P> tag at the beginning of your paragraph will drop the text down two
lines. (If you insert the <BR> tag, it will drop your text down one line.)
Placing the <B>tag before the text will make everything bold, until you close the tag
with</B> (Or using <STRONG>tags</STRONG > will do the same.)
Placing the <I>tag before the text will make everything in italics, until you close the tag
with</I> (Using <EM>emphasis tags</EM > will do the same.)
Powered By www.technoscriptz.com
60. How would you make all text on a page green and a little larger than normal,
but make all headings yellow?
X. Xylophone
Y. Yak
Z. Zebra
<LI> Xylophone
<LI>YAK
<LI>Zebra
</OL>
62. How would you insert a single word and put a square bullet in front of it?
<UL TYPE=‖Square‖><LI>Supercalifragilisticexpealidocious</UL>
Powered By www.technoscriptz.com
63. How would you insert an image file named elephant.jpg at the very top of a Web
page?
Copy the image file into the same directory folder as the HTML text file and type <IMG
SRC> immediately after the <BODY> tag in the HTML text file
64. How would you give a Web page a black background and make all text,
including links, bright green?
<BODY BGCOLOR=‖black‖>
65. How would you make an image file named texture.jpg appear as a background
tile?
<BODY BACKGROUND=‖texture.jpg‖
66. How would you wrap text around the right side of an image, leaving 40 pixels of
space between the image and the text?
67. How could you insert exactly 80 pixels of blank space between two paragraphs of
text?
Create a small image that is all one color, and save it as nothing.gif with that color set to
be transparent. Then put the following tag between the two paragraphs of text:
Powered By www.technoscriptz.com
<IMG SRC=‖nothing.gif‖ WIDTH=1 HEIGHT=80>
68. How would you write the HTML to draw a rule 20 pixels wide?
<HR WIDTH=20>
69. If you have a circular button that links to another page, how do you prevent a
rectangle from appearing around it?
When a web server receives a HTTP request from a web browser it evaluates the
request and returns the requested document, if it exists, and then breaks the HTTP
connection.This document is preceded by the response header, which has details about
how to display thedocument that will be sent by the server. Each time a request is made
to the server, it is as ifthere was no prior connection and each request can yield only a
single document. This isknown as Stateless Connection.
PART B
i. IMG tag
Powered By www.technoscriptz.com
iii. FRAME tag
3. Write an HTML document to provide a form that collect name and telephone
numbers.
4. Explain HTML forms in detail along with form elements, attributes & methods.
iii. </form>
<TEXTAREA> element
v. button
<SELECT> tag
5. List any four events associated with DHTML and explain each one with an
example.
6. Write the XHTML markup to create a frame with a table of contents on the left
side of the window and have each entry in the table of contents use internal linking
to scroll down the document frame to the appropriate subsection.
7. What are HTML tags? List the commonly used HTML commands.
8. Design a web page that allows the user to choose from a series of images and to
view the image in color and grayscale.
10. How to create user interactive web pages using form objects and form elements?
Powered By www.technoscriptz.com
11. What is HTML?List the goals of SGML. explain the various html tags to
develop the web pages.
12. What are the necessities of using HTML forms?What is the use of HTML
Forms? Create a HTML Form page for Railway Registration Form.
13. Develop a html web page for the following design using frame and frameset.
<frame2>
<link1>
<link2>
<link3> <frame3>
14. How to create user interactive web pages using Form elements and Form
objects? Develop an Student registration form using HTML Form elements.
(Assume your own fields).
Powered By www.technoscriptz.com