Ip Unit 1
Ip Unit 1
4. Mention the differences between website and web server. 10. Tabulate the differences between TCP and UDP
Website Web server TCP UDP
It is a collection of web pages It is a server on which web Connection oriented (link Connection less
application is executed between the packets)
It is a software application It is a physical entity that has ACK is available No ACK
that has unique domain name unique IP address Reliable Unreliable
It can host many web pages It can host many websites Heavy weight protocol Light weight protocol
They communicate with web They communicate with other Handshaking mechanism No handshaking concept
server servers such as DB server, Error control, flow control, No control mechanism
File server, etc congestion control, etc
Web server = It receives request and gives Complex, tough to implement Simple, easy to implement
HTML&CSS + JS+ DHTML corresponding response Ex: Telnet, SMTP, FTP, e-mail, Ex: VoIP, DHCP, DNS, RIP,
SSH, HTTP, HTTP, HTTPS SNMP
Ex: https://www.google.co.in Ex: IIS, Apache
11. What is HTTP?
5. Define web crawler.
Hyper Text Transfer protocol (HTTP) is a request/Response,
A web crawler is defined as the ability of the web to parse a
stateless protocol for communication, to transfer information
web page into different semantic elements (navigation links,
on LAN and WWW
friend links, group links, etc) and extract the social network
It is used to deliver files virtually and other data on WWW
and other associated data.
It takes place through TCP/IP sockets
6. What is RIA? What are the features of RIA? A browser is a HTTP client – sends HTTP request
RIA (Rich Internet Application) is defined as a web application A web server is a HTTP server – sends HTTP reply
that is designed to give the same features and functions It uses port no: 80 (HTTP servers listen to this port)
associated with desktop applications.
Features:- 12. What are the protocols used in email?
It can work on the web SMTP POP IMAP
Information in RIA always visible to users thereby reducing Connection- It uses port 110 Manipulate email
oriented Current version:POP3 No downloading
unwanted page refreshes and navigations.
Ability of web to present complex information to the users Text-based Single client Can’t transfer
Works in Offline email access email
Good user interactivity such as images, graphics, etc.
application Can’t search email Access the
It helps users to understand complex business apps
layer Download is needed received emails
ACK is Only 1 mailbox Search the mails
available Less internet usage Many mailboxes
It uses port 25 More internet
usage
13. What are the differences between internet and intranet? 21. Write a HTML5 code to display:
INTERNET INTRANET A B
Network of networks, open for Network of computers, for C D
all closed group < ! DOCTYPE HTML>
Limited no. of users Unlimited no. of users <HTML>
Different sources of info Limited sources of info <HEAD></HEAD>
Large no. of intranets Less number of systems <BODY>
<TABLE BORDER=”4”>
Internet =LAN + WAN + MAN Intranet = LAN | WAN | MAN <TR>
<TD>A</TD>
14. What are the flavours of HTML? (types of HTML DTD) <TD>B</TD>
XHTML 1.0 Strict : When we want a clean mark-up code </TR>
XHTML 1.0 Transitional: To use HTML features <TR>
XHTML 1.0 Frameset: To make use of frames <TD>C</TD>
<TD>D</TD>
</TR>
15. What is XHTML?
</TABLE>
Extensible HTML is the extended version of HTML that has </BODY>
strict rules when compared to HTML </HTML>
It is more consistent, well-structured document
Web pages made in XHTML can be easily understood by the 22. Write HTML5 code to play an audio file.
present and future web browsers <!DOCTYPE HTML>
<HTML>
<HEAD></HEAD>
16. What is the use of forms in HTML? <BODY>
HTML form element is used to allow a user to give input data <AUDIO CONTROLS>
on the web page. <SOURCE SRC="KABALI.MP3"
TYPE="AUDIO/MPEG">
To create registration forms, login forms, getting user info, </AUDIO>
conducting surveys </BODY>
<form>……..</form> tags are used </HTML>
Attributes used: action, method sempte.htm ..
Ex: e ~
<form action = http://www.google.co.in/ method = post>
.... - 6:40 1111•>) --
</form>
g---0--E]
.L
Working:-
From a web browser, user sends HTTP request to a server
Modem ISP finds the corresponding site from DNS and forwards it.
The request reaches the server after a long travel
www.google.co.in
Server responds to that request and the reply goes back
~ Any file transmitted in internet will not be sent as a whole
All the information will be chopped into chunks (data packets)
Packets have header and footer info, useful for ordering
Advantages – internet Disadvantages – internet SMTP POP IMAP
Connect with remote people Loose personal info Connection- It uses port 110 Manipulate email
Surf any kind of information Spamming oriented Current version:POP3 No downloading
Education + entertainment Virus attacks Text-based Single client Can’t transfer
E-commerce Works in Offline email access email
Research purpose, etc application Can’t search email Access the
layer Download is needed received emails
ISP Types:- ACK is Only 1 mailbox Search the mails
Access Providers available Less internet usage Many mailboxes
Mailbox providers It uses port 25 More internet
Hosting ISP usage
Virtual ISP
Free ISP 2. Explain Web 2.0 and RIA with its architecture,
collaboration tools with their features, merits and demerits.
Connection types:- Web 2.0
Dial-up connection (SLIP, PPP) Internet has revolutionized the computer and communications,
ISDN(Integrated Services Digital Network) undergoing extreme make-over
DSL (Digital Subscribers Line) In 1990s, it was used to retrieve information, information flow
o ADSL (Asymmetric DSL) was unidirectional (Read-Only)
o SDSL (Symmetric DSL) Around 2004, new web tools came up, to add contents to web
o HDSL (High bit Rate DSL) People with no programming knowledge can publish an article,
o RDSL ( Rate Adaptive DSL) photo, video, ppt, pdf, etc.
o VDSL (Very High Bit Rate DSL) Web has become 2-way communication medium (R/W)
o IDSL (ISDN DSL) This is called Web 2.0 (bidirectional data traffic)
Cable TV Connection It is not the second version of Web
Satellite Connection It is also called Participatory web (or) Read/Write Web
Wireless Connection Get , post, manipulate, share information
Web 2.0 refers to the transition of static HTML pages to
Protocols used in internet dynamic web
FTP (File transfer Protocol) XML is used
FTP is used to share files among the computers in the LAN It offers freedom for everybody to contribute to the web
It uses two connections (data transfer and control) Ex: Wikipedia, FB, YouTube, Twitter, etc.
FTP data transfer connection uses port 20 Components of web 2.0
FTP control connection uses port 21 Blogs
Some familiar commands in FTP are: USER, PASS, QUIT, Wikis
CWD, DELE, LIST, RETR, STOR, HELP Web services
<TR ALIGN=CENTER> <TH> Day</TH><TH> 1</TH><TH> 2</TH><TH> 3</TH><TH>4</TH><TH ROWSPAN=6>*</TH><TH>5</TH><TH> 6</TH><TH> 7</TH></TR>
HTML5:-
HTML stands for Hyper Text Mark-up Language
It is used to organize text, graphics, audio, video on a web
page
SGML XML
Tool Tool
Flavours of HTML:-
XHTML 1.0 Strict : When we want a clean mark-up code
XHTML 1.0 Transitional: To use HTML features
XHTML 1.0 Frameset: To make use of frames
c:JDDDD DOD
[:] r [:] [:] [:] GI LabI
LabJ
<!DOCTYPE HTML>
<HTML>
<HEAD></HEAD>
<BODY BGCOLOR=YELLOW>
<center>
<h1>Sachin Tendulkar</h1>
<h2>Abdul Kalam</h2>
<h3>A R Rahman</h3>
<h4>Vish Anand</h4>
<h5>Kamal Hassan</h5>
<h6>Dhoni</h6>
</center>
<font color=GREEN size=9>
<hr><br>
<p>These are the legends in their respective arena.
They have remarkably did their homeworks and set a bench
mark in their fields.</p>
<hr><br>
<div>I fail in my duty if I forget to salute the martyrs and army
men because whom we reside safely</div>
</font>
<hr><br>
<img src=deer.jpg width=150px height=150px>
<hr><br>
<a href="https://www.google.co.in">Click me</a>
<hr><br>
<ol type="i" start="iii">
<li>Bala</li>
<li>I Love India</li>
<ol>
<hr>
<ul type=SQUARE>
<li>Bala</li>
<li>I Love India</li>
<ul>
</BODY>
</HTML>
Purpose of forms:-
HTML form element is used to allow a user to give input data
on the web page.
To create registration forms, login forms, getting user info,
conducting surveys
<form>……..</form> tags are used
Attributes used: action, method
Ex:
<form action = http://www.google.co.in/ method = post>
</form>
6. What is CSS3.0? Explain the types of CSS with examples
<HTML> of selector classes.
<BODY> Cascading style sheet is defined as a style sheet in which, all
<FONT SIZE=14> the style information of a web page can be defined.
<FORM> It separates the contents and the decoration of a HTML page
<TABLE BORDER=5> It helps developers to give consistent appearance to all the
<TR> elements in the web page.
<TD>Name</TD> Style information is defined in separate file (ex.css)
<TD><input One or more style rules given
type=text></TD> Collection of these rules are called rule set
</TR> Each rule set consists of selector string and declaration block
<TR> Types:-
<TD>Password</TD>
Inline style sheets <p style=”color:green; font-size:15px”>
<TD><input
Embedded style sheets <style>……</style>
type=password></TD>
</TR> External style sheet Stored in a separate file (ex.css)
<TR> Imported style sheets @import URL(path)
<TD>Sex</TD> Features of CSS3.0
<TD><input type=radio Backward compatible with older versions of CSS
value=Male>Male It also supports selectors, box model, background, borders,
<input type=radio text effects, animations, multiple column0 layouts, 3D
value=Female>Female</TD> transformations, etc.
</TR> Example for Embedded CSS with all selector types:-
<TR> <HTML><HEAD>
<TD>Type</TD> <STYLE TYPE="TEXT/CSS">
<TD><select> P{FONT-FAMILY:TIMES NEW ROMAN; }
<option H3.A{COLOR:BLUE; }
value=Hosteller>Hostel</option> H3.B{FONT-SIZE:40PX}
<option .C{COLOR:BROWN; }
value=DayScholar>DayScholar</option> #D{COLOR:RED; }
</select> </STYLE></HEAD>
</TD> <BODY>
</TR> <P>SELECTOR</P>
<TR> <H3 CLASS="A">CLASS SELECTOR 1</H3>
<TD>Languages</TD> <H3 CLASS="B">CLASS SELECTOR 2</H3>
<TD><input <H4 CLASS="C">GENERIC SELECTOR 1</H4>
type=checkbox value=Tamil>Tamil <DIV CLASS="C">GENERIC SELECTOR 2</DIV>
<input type=checkbox <H1 CLASS="C">GENERIC SELECTOR 3</H1>
value=Tamil>English</TD> <P ID="D">ID SELECTOR 1</P>
</TR> <DIV ID="D">GENERIC SELECTOR 2</DIV>
</TABLE> </BODY>
</FORM> </HTML>
</FONT>
</BODY> forms_ 2 htm ·
</HTML> ~ C' ~
SELECTOR
, file:///C:/User ... ktop/forms.htm X \_:¬ ___, CLASS SELECTOR 1
~, ~ file:///C:/Users/Balamurugan/Desktop/forms.htm
CLASS SELECTOR 2
I Name 111 11
OEi\"ERIC SELECTOR 2
Example for External style sheet with all text formatting:-
EXTERNALCSS.HTM
<HTML>
<HEAD>
<LINK REL="STYLESHEET TYPE="TEXT/CSS" HREF="EX.CSS">
</HEAD>
<BODY>
<P CLASS="FORMATTING">FORMATTING</P>
<P CLASS="WEIGHT">WEIGHT</P>
<P CLASS="STYLE">STYLE</P>
<P CLASS="DECORATION">DECORATION</P>
<P CLASS="SHADOW">SHADOW</P>
<H3 CLASS="DOTTED">DOTTED</H3>
<P CLASS="DASHED">DASHED</P>
<P CLASS="DOUBLE">DOUBLE</P>
</BODY>
</HTML>
EX.CSS
P.FORMATTING
{
FONT-FAMILY:ARIAL;
FONT-SIZE:25PX;
COLOR:BLUE;
FONT-VARIANT:SMALL-CAPS;
}
P.WEIGHT
{
FONT-WEIGHT:BOLD;
FONT-WEIGHT:BOLDER;
FONT-WEIGHT:BOLDER;
}
P.STYLE
{
FONT-STYLE:ITALIC;
FONT-STYLE:OBLIQUE;
}
P.DECORATION
{
TEXT-DECORATION:LINE-THROUGH;
TEXT-DECORATION:UNDERLINE;
TEXT-DECORATION:OVERLINE;
}
P.SHADOW
{
TEXT-SHADOW:-5PX 15PX 3PX GRAY;
}
.DOTTED
{
BORDER-STYLE:DOTTED;
BORDER-COLOR:GREEN;
}
.DASHED
{
BORDER-STYLE:DASHED;
BORDER-WIDTH:5PX;
}
.DOUBLE
{
BORDER-STYLE:DOUBLE;
BACKGROUND-COLOR:YELLOW;
}
EXTERNALCSS.HTM x
~ C' ~
FORMATTING
\VEIGHT
STYLE
DECORATION
SHADOW