0% found this document useful (0 votes)
48 views11 pages

WP Notes

Uploaded by

ubonia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
48 views11 pages

WP Notes

Uploaded by

ubonia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
SAVE TREES USE E-RESOURSES ALL COURSES |ALL SEMESTERS | NOTES | SOLVED QUESTION PAPER |LAB MANUALS ar ~ STUDYMATE Connecting Minds... @ sBustudymatein O © 70194 28102 File Downloaded From www .Bustudymate.in SUBJECT - WEB PROGRAMMING UNIT 1- FUNDAMENTALS OF THE WEB 1. Define Internet, Write its apy Internet is a system connecting computers around the world using TCP/IP, which stands for Transmission Control Protocol/Internet Protocol, a set of standards for transmitting and receiving digital data. The Internet consists primarily of the collection of billions of interconnected web pages that are transferred using HTTP (Hypertext Transfer Protocol), and is collectively known as the World Wide Web. Applications: Search engine: It can be used to search anything and everything. Most popular search engines are Google and yahoo searches. Shopping: Internet has made shopping very easy and flexible. You can buy or sell online. Communication: It helps people to communicate either with the use of social networking websites or through e-mails and chats. lowadays, many people search for their jobs onlin job vacancies present Job search: as it is quicker and there is a larger variety of Research: Research papers are prS@hibonline which helps in the researcher doing a literature review. Video Conferencing: It enable§ direet face-to-face communication across networks via web cameras, microphones, and other communication tools. E-commerce (electronic commerce or EC) is the buying and Sellitig Of goods and services, or the transmitting of funds or data, over an electronic network, priitiily'the Thitémét. Largest e-commerce companies in India are Flip kart, Snap deal, and Amazon India, On-line payments The rising boom of online payments in India has given way to many new entrants in the industry such as Paytm, Mobikwik, oxigen ete who are majorly wallet driven payment companies. 2. What is MIME MIME stands for (Multipurpose Internet Mail Extensions). It is widely used internet standard for coding binary files to send them as e-mail attachments over the internet, MIME allows an E-mail message to contain a non-ASCII file such as a video image or a sound and it provides a mechanism to transfer a non text characters to text characters. ‘The MIME specification includes the following elements: 1. Message header fields. Five message header fields are defined. These fields provide information about the body of the message. The five header fields defined in MIME are as follow: A. MIME-version. It indicates the MIME version being used. Example: It is represented as: MIME-version: 1 B. Content-type. It describes the type and subtype of the data in the body of the message. The content type and content subtype are separated by slash. File Downloaded From www.Bustudymate.in File Downloaded From www.Bustudymate in C. Content-transfer encoding. It describes how the object within the body has been encoded to US ASCII to make it acceptable for mail transfer. The content transfer encoding field is represented as Content-transfer-encoding : D. Content-Id. It is used to uniquely identify the MIME entities in multiple contexts ie. it uniquely identifies the whole message in a multiple message environment. This field is represented as: Content-id: id = E, Content-deseription. It is a plaintext description of the object within the body; It specifies whether the body is image, audio or video. This field is represented as: Content-description: 2. Content formats, A number of content formats are defined, thus standardizing representations that support ‘multimedia electronic mail. 3. Transfer encoding. Transfer encoding are defined that enable the conversion of any content format into a form that is protected from alteration by the mail system. Ents Hanae MIME-VERSION :1.1 | Eontentaype :iypersubtype | Conteatranafer-encoding : encoding type a ate Contentid message id : Content-description : textuatex planation ofinon textual contents =e 3. What is a Web Browser? A Web browser’s basic funetion is to get files from a server and display them on the screen. It normally displays html files with images, PDF, videos etc in a structured layout. A browser is a collection of blocks or lines code that performs numerous tasks of showing a webpage on the pe screen. How Web Browsers works? World Wide Web is based on the client-server model. A user pe works as a client which receives and sends data to the server. If'a web page is requested by a user, the browser contacts the server (where the website is stored) and by getting and interpreting the requested files, it shows the web page on the pe screen. Following are the most common web browser available today: Browser Vendor Internet Explorer Microsoft Google Chrome Google File Downloaded From www.Bustudymate.in File Downloaded From www .Bustudymate.in Mozilla Firefox Mozilla Netscape Navigator Netscape Communications Corp. Opera Opera Software Apple 4, Write Short Notes on Web Servers ‘A Web server is software that responds to client (J.e. web browser) requests. Every web site requires a web server {o process client requests and ‘serve up’ the pages. Server machine is also referred to as the web server. + When client sends request for a web page, the web server search for the requested page if requested page is found then it will send it to client with an HTTP response. «If the requested web page is not found, web servers will the send an HTTP response: Error 404 Not found. + Ifclient has requested for some other resources then the web server will contact to the application server and data store to constructthe HTTP response. Following table describgS the most leading web servers available today 1. Apache HTTP Server This is the most populat web server iff thé world! deyeloped by the Apache Software Foundation. Apache web server is open source sofiware and cai be installed on almost all operating systems. 2. Internet Information Services (IIS) The Internet Information Server (IIS) is a high performance Web Server from Microsoft. This web server runs on Windows NT/2000 and 2003 platforms 3. Sun Java System Web Server This web server from Sun Microsystems is suited for medium and large web sites. Though the server is free it is not open source, 5. Explain URL with an example Uniform Resource Locator (URL) refers to a web address which uniquely identifies a document over the internet. For example, www.wikipedia.com/internet technology/index.html is an URL to the index.html which is stored on Wikipedia web server under intemet technology directory. URL Types There are two forms of URL as listed below: > Absolute URL. > Relative URL ABSOLUTE URL File Downloaded From www.Bustudymate.in File Downloaded From www. Bustudymate.in Absolute URL is a complete address of a resource on the web. This completed address comprises of protocol used, server name, path name and file name. For example http:// www.wikipedia.com / intemet technology /index.htm. Where: http is the protocol, wikipedia.com is the server name index.htm is the file name. The protocol part tells the web browser how to handle the file, Similarly we have some other protocols also that can be used to create URL are: a) FIP b) https c) Gopher 4) mailto e) news RELATIVE URL Relative URL is a partial address of a webpage. Unlike absolute URL, the protocol and server part are omitted from relative URL. 6. Explain Domain Name System Architecture The Domain name system comprises of Domain Names, Domain Name Space, and Name Server that have been described below: Domain Names Domain Name is a symbolic string associated with an IP address. There are several domain names available; some of them are generic such as com, edu, gov, net etc, while some country level domain names such as au, in, za, us ete. Domain Name — Meaning Domain Name Meaning Com Commercial business au Australia Edu Education in India Gov U.S. government agency cl Chile Int International entity fr France Mil US. military us United States Net Networking organization Org Nonprofit organization Domain Name Space File Downloaded From www.Bustudymate.in File Downloaded From www Bustudymate in The domain name space refers hierarchy in the internet naming structure. This hierarchy has multiple levels (from 0 to 127), with a root at the top. Each domain can be partitioned into sub domains and these can be further partitioned and so on Name Server ‘Name server contains the DNS database. This database comprises of various names and their corresponding IP address The three categories of Name Servers that manages the entire Domain Name System: * Root Server - Root Server is the top level server which consists of the entire DNS tree. «Primary Server - Primary Server stores a file about its zone. It has authority to create, maintain, and update the zone file * Secondary Server - The secondary server does not have authority to create or update a zone file. 7. What is a standard XHTML Document Structure? A standard XHTML Document is as follows: * ADOCTYPE declaration at the start of the XHTML document should be written. © Write all XHTML tags and attributes in lower case only * Close all XHTML tags propefly, DOCTYPE Declaration AIL XHTML documents must have a DOCTYPE declaration tthe /start!\ THEE are three types of DOCTYPE, declarations, which are discussed in(detail in XHTML Doctypes chapter Here is an example of using DOCTYPE ~ Case Sens ity XHTML is case sensitive markup language, All the XHTML tags and attributes need to be written in lower case only. XHTML Tutorial

This paragraph is not written according to XHTML syntax.

EXAMPLE: File Downloaded From www.Bustudymate.in File Downloaded From www .Bustudymate.in Every document must have a title-/title> </head> <body> ... your content goes here. <html> </body> 8. What are the different types of Headings? Give an example. HTML uses six levels of heading tags <h1> to <h6>; the higher the heading level number, the greater its importance, so <h1> defines the most important heading, whereas the <h6>defines the least important heading in the document. EXAMPLE <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Example of HTML headings tags/title> </head> <body> <h1>Heading level 1</hl> <h2>Heading level 2</h2 <h3>Heading level 3</h3> <h4>Heading level 4</h4> <h5>Heading level 5</hS> <h6>Heading level 6</h6> <body> <html> 9, What is a HTML Table? Write about Cellspacing and Cellpadding. Tables in HTML are defined with the <table> tag. A table is divided into rows with the <tr> tag, which stands for table row, and each row is divided into data cells with the <td> tag, which stands for table data. ‘A<td> tag can contain text, links, images, lists, forms, other tables, etc. Table Cellpadding and Cellspacing The cellpadding and cellspacing attributes are used to adjust white space inside a table. ‘© Cellpadding adjust the white space between table cell border and its content. © Cellspacing adjust the white space between table cells. <!DOCTYPE html> <htmi> <head> <title> Example of HTML Table Cellpadding and Cellspacing File Downloaded From www.Bustudymate.in File Downloaded From www. Bustudymate,in ‘ <>
No.Name Email
1 Ram [email protected]
2 Ali [email protected]
10. What is Hyper Text Transfer Protocol (HTTP) HTTP is a communication protocol. It defines mechanism for communication between browser and the web server. It is also called request and response protocol because the communication between browser and server takes place in request and response pairs. HTTP Request HTTP request comprises of lines w! contains: © Request line © Header Fields Message body The first line i.e, the Request line specifies the request method i.e. Get or Post. The second line specifies the header which indicates the domain name of the server from where index.htm is retrieved. GET Method: a) Appends form-data into the URL in name/value pairs ») The length ofa URL is limited (about 3000 characters) ©) Never use GET to send sensitive data! (will be visible in the URL) d) Useful for form submissions where a user want to bookmark the result POST Method: a) Appends formedata inside the body of the HTTP request (data is not shown is in URL) b) Has no size limitations File Downloaded From www.Bustudymate.in File Downloaded From www .Bustudymate in ©) Form submissions with POST cannot be bookmarked Value Description get Default. Appends the form-data to the URL in name/value pairs: URL?name=valuc&name=value post Sends the form-data as an HTTP post transaction HTTP Response Like HTTP request, HTTP response also has certain structure, HTTP response contains «Status line © Headers © Message body In answer to a request, the server typically issues an HTTP response, the first line of which is often referred to as the status line. In that line the server echoes the HTTP version and gives a response status code (which is a three-digit integer) and z short message known as a reason phrase. Here's an example HTTP response: HTTP/1.0 200 OK Status Code Explanat 200 - OK Ei ithe Request Sutaeenea\ TE 204 - No Content “The document contains no data, 404 — Not Found a The requested resource does not exist on the server 11, What is a Protocol? Explain various types of Protocols There are rules governing how data is transferred over networks, how they are compressed, how they are presented on the screen and so on. These set of rules are called protocols. Various Types of Protocols are: HTTP: Hypertext Transfer Protocol, used for transmitting and displaying information in the form of web pages on browsers. FTP: File Transfer Protocol, used for file transfer (uploading and downloading) over the Internet. POP: The most common protocol for receiving mail is Post Office Protocol (POP). Email clients such as Outlook Express require an address for a POP3 server before they can read mail SMTP: Simple Mail Transfer Protocol used for email Both SMTP and POP3 use TCP for managing the transmission and delivery of mail across the Internet. Ethernet: Used for data transmission over a LAN. IP: Internet Protocol is the primary network protocol used on the Internet, developed in the 1970s, IP is ofien used together with the Transport Control Protocol (TCP) File Downloaded From www.Bustudymate in File Downloaded From www.Bustudymate.in 12. What is a List? Explain various types of Lists in HTML, Lists are the preferred way to display items one after the other, Lists have a tag to start and end the list itself, as well as a tag for each item in the list. ‘There are three types of lists, ordered, unordered and definition lists. Unordered Lists « An unordered list is a bulleted list, similar to the menu on the right. An Unordered List is represented by -
    ...
A number of list items (li elements) will go within the ul tags. * Add the text for each item in between some
  • and
  • tags. * Bullet Type
      by default a browser will show a round bullet. This can be changed by using the type attribute of the ul tag, which will change the bullet type for the entire list, Item Type
    • You can set the type of bullet for an item in the middle of the list by setting the type attribute of a li tag. Example for Unordered List Example of HTML Unordered List- HTML Unordered List
    • Chocolate Cake
    • Black Forest Cake
    • Pineapple Cake <> Ordered Lists * An ordered list is used to create an indexed list, such as a numbers or alphabetical list. A number of list items will then go between the ordered list tags. * Ordered List Item -
    • an item
    • each item must use the
    • tags the same as with an unordered list, But this time the browser will number cach item automatically, instead of showing bullets. * List Type
        Set the type of list index by using the typ. «The default style is numeric, and you can also choose from upper or lowercase, alphabetic or roman numerals. attribute. File Downloaded From www.Bustudymate.in File Downloaded From www Bustudymate in ‘List Starting Position
          Set the starting number (or letter) if you don’t want the list to start at | or A. «Item Value
        1. You can set the value of an item in the middle of the list manually, if you do not want it to follow the previous letter or number Example for Ordered List Example of HTML Ordered List HTML Ordered List
          1. Mix ingredients
          2. Bake in oven for an hour
          3. Allow to stand for ten minutes
          Definition Lists «This type of list is used to define and describe:terms, much ike a-dietionary. A browser will usually bold the term, and indent the definition: * Define a Definition List -
          The title of a term being defined * Definition Description -
          the definition ofa term. Note: you can have multiple definitions for a single term, Example for Definition List Example of HTML Definition List HTML Definition List
          Bread
          A baked food made of flour.
          Coffee
          A drink made from roasted coffee beans.
          File Downloaded From www.Bustudymate.in

    You might also like