


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















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:
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:
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.
: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.
<h1>……</h1>
<h2>……</h2>
……
……
……
……
Here is the top level heading. is the bottom level heading.
It is useful for making a normal paragraph text.
….. Indicates preformatted text.
….. Indicates block of text indented.
…..
line break(unpadded tag)
….. It stands for emphasis.
….. Many browsers show text as bold.
This tags help in changing the look of text.
….. Bold
…..
…..
…..
…..
…..
…..
CONTENT: It provides values associated with the names defined by quiv or name.
Ex:
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.
Definition list term
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:
Attribute:
Align: specifies the alignment of text in the heading. Set to left, center, right, or justify.
Title: Holds additional information.
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.
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
: 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.
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.
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.
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.
Attribute:
Style: Inline style indicates how to rendered the element.
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 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.
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.
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.