Docsity

web programming for bcom, Study notes of Web Programming and Technologies

Toggle sidebar
bg1
red0;UNIT-I
The internet came on-line in 1969 as a joint project between the Defence
Advanced Research Projects Agency(DARPA).More computer were added to
the network and electronic mail was introduced in 1972.Web was originally
visualized and shaped in 1989, by Tim Berners-Lee.
Purpose of Internet:
1. Communication
2. Exchange of ideas and messages
3. Sharing software to know current affairs
4. Entertainment
5. To get general knowledge
Introduction to HTML
To publish information for global distribution, one needs a understood
language. The publishing language used by the WWW is HTML(Hypertext
Markup Language).
HTML gives authors the means to:
• Publish online documents with headings, text, tables, lists, photos etc.
• Retrieve online information via hypertext links, at the click of a button.
• Design forms for conducting transactions with remote services, for use
in searching information, making reservations, ordering products etc.
• Include spreadsheets, video-clips, sound crips, and others applications
directly in their documents
History of HTML:
HTML was originally developed by Tim Berners-Lee while at CERN in 1990s
and popularized by the Mosaic browser developed at NCSA.
HTML 2.0 was developed under the aegis of Internet Engineering Task Force
in 1994.
HTML 3.0 proposed much rich versions of HTML in 1995.
HTML 3.2 was developed in 1996.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download web programming for bcom and more Study notes Web Programming and Technologies in PDF only on Docsity!

red0;UNIT-I

The internet came on-line in 1969 as a joint project between the Defence Advanced Research Projects Agency(DARPA).More computer were added to the network and electronic mail was introduced in 1972.Web was originally visualized and shaped in 1989, by Tim Berners-Lee.

Purpose of Internet:

  1. Communication
  2. Exchange of ideas and messages
  3. Sharing software to know current affairs
  4. Entertainment
  5. To get general knowledge

Introduction to HTML

To publish information for global distribution, one needs a understood language. The publishing language used by the WWW is HTML(Hypertext Markup Language).

HTML gives authors the means to:

  • Publish online documents with headings, text, tables, lists, photos etc.
  • Retrieve online information via hypertext links, at the click of a button.
  • Design forms for conducting transactions with remote services, for use in searching information, making reservations, ordering products etc.
  • Include spreadsheets, video-clips, sound crips, and others applications directly in their documents

History of HTML:

HTML was originally developed by Tim Berners-Lee while at CERN in 1990s and popularized by the Mosaic browser developed at NCSA.

HTML 2.0 was developed under the aegis of Internet Engineering Task Force in 1994.

HTML 3.0 proposed much rich versions of HTML in 1995.

HTML 3.2 was developed in 1996.

HTML 4 extends HTML with mechanisms for stylesheets, scripting, frames, embedding objects, tables and enhancements to forms, offering improved accessibility for people with disabilities.

HTML 4.01 is a revision of HTML 4.0 that corrects errors and makes some changes since the previous revision.

Classification of Tags:

Tags are instructions that are embedded directly into the text of a html document. Each html tag describes that the browsers should do something instead of simply displaying the text.

Html tags are of two types:

Paired Tags: A tag is said to be paired tag if the text is placed between a tag and its companion tag i.e closing tag. In paired tags the first tag is called opening tag and second tag is called closing tag.

Unpaired Tag: An unpaired tag does not have a companion tag. i.e it does not have an end tag or closing tag. These are also called singular or stand alone tags.

1. What are the various services of Internet?

Email: using this facility files and messages can be exchanged Eg. Rediffmail, yahoomail, hotmail, rocketmail etc.we can create number of email addresses in a single system which is unique feature in email.

Search Engine: It is to search for a keyword in WWW.

Knowledgebase: It is a where companies and establishments provide information in their products and services avaliable in their websites. These sites providing information on various topics like politics, sports, entertainment, education, business etc.

Chat Rooms: Users can log in to a certain website and communicate with various other users online. This uses an interactive software which enables users to chat with others by sending and receiving typed messages.it is a conference kind of facility where many users can have discussions, simultaneously.

Universities on the web: Various universities have their user websites where they provide information about the university

:Formally starts an HTML document, indicating the version of HTML.

: starts the HTML document and contains that document surrounding everything else except the tag.

:contains the head of an HTML document which holds information about the document, such as title. Here are the HTML elements that can appear in the head.

  • Base: Base URL for the document.
  • Basefont: Base font for the document. Only in IE.
  • Bgsound: Background sound. Only in IE.
  • Link: Indicates a relationship between document and other object.
  • Meta: Header information.
  • Script: Holds programming script statement, such as vbscript or javascript.
  • Title: The web pages title, which appears in the web browser.

:Contains the tile of the HTML document, which will appear in the web browser’s title bar and is used by search engine to refer to the document.

<Body>: contains the body of the HTML document, which includes the content that will actually appear in the web browser.

3. What is the use of padded tags in HTML? or Explain padded tags in HTML?

Paired Tags: A tag is said to be paired tag if the text is placed between a tag and its companion tag i.e closing tag. In paired tags the first tag is called opening tag and second tag is called closing tag.

  1. Header Tags: These are used for marking headings and sub headings.

<h1>……</h1>

<h2>……</h2>

……

……

……

……

Here is the top level heading. is the bottom level heading.

  1. for Paragraph:

It is useful for making a normal paragraph text.

….. Indicates preformatted text.

….. Indicates block of text indented.

…..

line break(unpadded tag)

  1. Logical Formatting Tags:

….. It stands for emphasis.

….. Many browsers show text as bold.

  1. Character Formatting Tags:

This tags help in changing the look of text.

….. Bold

…..

…..

…..

…..

…..

…..

CONTENT: It provides values associated with the names defined by quiv or name.

Ex:

  1. : It contains information about where to find an image file and to display.

7.: This is known as comment tag. It is used for writing comments.

8.: It stands for list which helps in displaying the list of items according to the user requirement. It can be used under order list and also under unordered list.

  1. Definition list term

  2. Definition list definition

These come under definition list which is a type of list ^s ordered list, unordered list.

5. What are the different formatting tags which are frequently used in HTML? Explain.

The different formatting tags used in HTML are:

  1. ** through :** Creating a heading in the web page, like a headline, using bold font and various sizes. creates the largest text and the smallest.

Attribute:

Align: specifies the alignment of text in the heading. Set to left, center, right, or justify.

Title: Holds additional information.

  1. : sets the text style to bold.
  2. : Display text in italics.
  3. : Displays text in a monospace “teletype” font.

  1. : Underlines text.
  2. ** or :** Displays text in strike through style.
  3. : Renders the text in a bigger font that the current default.
  4. : Renders the text in a smaller font that the current default.
  5. : Styles text as a superscript.
  6. : Styles text as a subscript.
  7. : Emphasizes text , usually rendered in italics.
  8. : Emphasizes text strongly , usually rendered in bold.
  9. : Styles text as program code in a monospace.
  10. : Lets to select text size, color and face.

Attributes:

Color: color of the text, set it to a color value or predefined color.

Face: Font face can be a list of names separated by commas.

Point-size: size of the text in points.

Size: Size of the text. Possible values range from 1 through 7.

Weight: Sets the font weight from 100 to 900 in steps of 100.

  1. : Sets the basefont. Relative font changes set with the are made.

Attributes:

Color: Color of the text set it to a color value or predefined color.

Face: Font face can be a list of names separated by commas. The browser will select the first font face from the list it can find in the system its running on.

Size: Size of the default text. Possible values range from 1 through

  1. : Displays enclosed text as blinking on and off approximately once a second.

Cols: Indicates the number of columns to break the text into. Set it to a positive integer.

Gutter: Sets the number of pixels between columns, set to a positive integer, the default is 10.

Width: Supposed to be the width of each column, actually seems to be the width of all columns plus gutters. The default value is 100 percent of the display width.

  1. : The control over horizontal and vertical spacing.

Attributes:

Align: Sets alignment when the type attribute is set to block. Possible values are: Left, Right, Top, Texttop, Middle, AbsMiddle, Baseline, Bottom and Absbottom.

Height: Sets the width or height in pixels of the spacer when the type attribute is set to Block

Size: Sets the width or height in pixels of the spacer when the type attribute is set to horizontal or vertical.

Type: Sets the type of the spacer. Required attributes may be horizontal, vertical or Block.

Width: Sets the width in pixels of the spacer when the Type attribute is set to Block.

  1. : Displays scrolling text in a marquee style.

Attributes:

Align: Sets the alignment of the text relative to the marquee.

Behavior: Sets how the text in the marquee should move. Can be scroll, slide, alternate

Bgcolor: Sets the background color for the marquee box.

Direction: Sets the direction the text should scroll. Can be left, right, down or up.

Height: specifies the height of the marquee.

Hspace: Gives the left and right margins outside the marquee.

Loop: Sets how many times how many times the marquee to cycle.

Scrollamount: Sets the horizontal space between each successive display of the text.

Scrolldelay: Sets to number of milliseconds between each successive display of the text.

Truespeed: Specifies the exact scrolldelay values should be given.

Vspace: Sets the top and bottom spacing margins outside the marquee.

Width: Sets the width of the marquee, the default is 100 percent of the available display width.

  1. : Selects a block of text so we can apply styles.

Attributes:

Align: Sets the horizontal alignment of the element in the page. Set to Left, Right, Center, or Justify.

Clear: Used to move past aligned images or other elements in the page. Set to None,Left,Right,All.

  1. : Selects inline text to let apply styles.

Attribute:

Style: Inline style indicates how to rendered the element.

  1. : Creates a layer with contents that can overlap other layers.

Attributes:

Above: Gives the name of the layer that will occur directly above the current layer in the layer z-order. Only one of the attributes: Z- index, Above, or Below can be used for a give layer.

Background: Indicates a background image to be tiled on the layer.

Below: Gives the name of the layer that will occur directly below the current layer in the layer z-order. Only one of the attributes: Z- index, Above, or Below can be used for a give layer.

Bgcolor: Gives the background color of the layer. Set to predefined colors or color value.

METHOD: Specified which protocol the web server will use to pass the form data to the program which processes it. Two methods are available, GET and POST.

METHOD = “GET” html documents are retrieved by requesting a single URL from the server

ACTION: Indicates the script that will be called to process the form when it is submitted.

Form Elements: The elements within the form are indicated by the tag. This tag takes at least attributes: TYPE and NAME.

NAME: This indicates the name of the element. It defines the name of the data for the field.

TYPE: It defines the various types of input fields recognized in the current HTML specification(text,radio,checkbox,password or submit).

VALUE: This attribute is used to specify what text the user wants to appear on the element.

TEXT INPUT ELEMENT

Text Field: A text input box is used to enter and edit a single piece of text by the user.

SIZE: Specifies the length of the text box.

VALUE: Specifies the value in the text box which can of course be changed to any other name.

MAXLENGTH: specifies the maxlength of text that can be entered into the text box.

Password Text Field: This works the same way as the text field except the characters typed or echoed back to browser in a masked format.

SIZE: Specifies the length of the text box.

VALUE: Specifies the value in the text box which can of course be changed to any other name.

MAXLENGTH: specifies the maxlength of text that can be entered into the text box.

Text Area Field: Text area fields can contain many lines of text giving the user opportunity to type in larger inputs unlike the regular text input fields.

BUTTONS

Check Boxes: Check boxes can be used to choose multiple items in a list. Each check box can either be on or off i.e, it can be selected or not selected. When the user has to choose more options at a time checkbox is good element to use unlike radio buttons, where only one item from each group can be selected.

Sunday

Monday

Tuesday

Wednesday

TYPE: Indicates that this is a checkbox

NAME: Is unique for each member in the list and specifies the variables where the required value will be stored.

CHECKED: the boxes can be checked by the default by using the CHECKED attribute.

Sunday

VALUE: Attribute can also be used to indicate the value that would be seen in the script.

Sunday

Monday

Tuesday

SELECTION LISTS: Selection list is another useful element that enables the user to selected from a list of items. Each item can be selected or not selected. Selection lists can be of three types.

  1. Drop down List Boxes
  2. Simple List Boxes
  3. Scrollable List Boxes

The type of selected list displayed is determined by the SIZE keyword in the SELECT tag. SIZE refers to the number of rows visible to the user at a time.

  • If the SIZE is one, a drop down list box is created.
  • If the SIZE is greater than one, and the number of options is less than or equal to the SIZE, a simple list box is displayed.
  • If the SIZE is greater than one, but the number of options available to the user is greater than the SIZE, a scrollable will appear to the right of the list box to allow the user to scroll through the options.

Drop Down List Box

Simple List Box

Scrollable List Box

…….: defines the caption or the title of the table.The default position of the title is centered at the top of the table.

…….: defines a table header cell. Header cells usually are on the first row and contain information regarding the rest of the table.

…….: specifies a table row within a table. Cells within each row are defined within these tags. TR can have both ALIGN and VALIGN attributes, which if specified become the default alignment for all cells in this row.

……: defines a table data cell. By default the text in this cell is aligned left and centered vertical. Table data cells may contain other attributes to determine the characteristics of the cell and its contents.

Table Format

title of the table

first row starts

cell contents

cell contents

second row starts

cell contents

cell contents

second row ends

Third row starts

cell contents

cell contents

third row ends

10. What are the attributes associated with Tables? Explain.

Table Attributes:

Align (Left,center, Right): Horizontal alignment of a cell.If appearing inside a caption it controls whether tha caption appears above or below the table, can the values top or bottom. If appearing inside a TR, TH or TD it controls whether text inside the table cells is aligned to the left ,right and center of the cell.

Valign: Vertical alignment of a cell. Appearing inside a TR,TH or TD controls whether text inside the table cells is aligned to the top,bottom,centered within the cell.

Colspan: number of columns a cell spans.

Rowspan : number of rows a cell spans. Rowspan attribute can be used to span the cell across the table in a particular row when used within or tags.

Nowrap: turn of word wrapping within a cell.

Border: To put a border around the table.

Cellspacing: The distance between the cells can be specified in pixels.

Cellpadding: The border around each cell within a table.

Width: When this attribute appears on the TABLE tag it is used to describe the desired width of this table, either as an absolute width in pixels or a percentage of document width.

11. Explain about frames?

Dividing a single browser window into multiple regions for separate document viewing is called framing. Frames allow the user to divide a web page into independent sections that act as sub-windows. As each frame acts as a separate web page, it has its own attributes and at the same time can communicate with each other.

Like an independent web page , a frame can have a background attribute, scroll bars and name. It also has text graohics and links unique to it.

  • Frames provide static areas in the browser that remain as users visit various portions of a site.