Wednesday, September 7, 2011

MCSL-016 INTERNET CONCEPTS AND WEB DESIGN, (SCRIPTING LANGUAGE), MCSL 016 INTERNET CONCEPTS AND WEB DESIGNING - SCRIPTING LANGUAGES; INDIRA GANDHI NATIONAL OPEN UNIVERSITY, IGNOU, FIRST SYMESTER, FIRST YEAR, (THE INTERNET, INTRODUCTION TO HTML, ADVANCE HTML, JAVA SCRIPT, VBSCRIPT, DREAMWEAVER);

MCSL-016 INTERNET CONCEPTS AND WEB DESIGN, IGNOU 2011 SYLLABUS;
(SCRIPTING LANGUAGE), MCSL 016 INTERNET CONCEPTS AND WEB DESIGNING - SCRIPTING LANGUAGES; INDIRA GANDHI NATIONAL OPEN UNIVERSITY, IGNOU, FIRST SYMESTER, FIRST YEAR, (THE INTERNET, INTRODUCTION TO HTML, ADVANCE HTML, JAVA SCRIPT, VBSCRIPT, DREAMWEAVER);
NOTE: These are my/our personal notes, for personal use, please follow your own books and syllabus, i/we are not responsible for any error/errors in these notes, thanks.
======================================================
COURSE INTRODUCTION : Internet is a hot topic today.  It has revolutionized the way we live,work, learn and communicate with each other. It has opened up new gateways of opportunities for education and helped increase productivity, as well efficiency in areas like healthcare banking, governance, and manufacturing all over the world.
As IT Professionals we have to deal with the whole range of Web Technologies starting from the Internet, i.e. to HTML, Advanced HTML, Java Script, VB Script, XML, COM, JSP, ASP, Dream Weaver, etc.  The purpose of the course is to introduce some of these technologies.  In the first Block of course, We study how to design specific page and dynamic web pages. We will also examine forma and frames, two of the most important features of the web pages. The second part of the course, We focus on the practical issues. Each topic is covered in the 10 practical sessions of three hours duration each.
======================================================
BLOCK INTRODUCTION
This block (MCSL016 - I.C.W.D. - SCRIPTING LANGUAGE) introduces three major topics namely, Internet, Scripting Languages, and HTML Editor. Internet has been discussed in the first unit and remaining four units focuses on Scripting Language and the last unit is about Dreamweaver, which is a HTML Editor. The block is organized as follows :
===============================================
Unit 1 : In this unit, lessons describe about the classification of Different Computer Network and then describes how does the Internet work? Unit/ Book also take up practical issues like : how to configure a browser, how to connect to Internet etc. Internet is based on two standard protocols TCP & IP, (OR WE CAN SAY INTERNET PROTOCOL SUIT) (OR DIFFERENT TYPE OF INTERNET PROTOCOLS) which has also been discussed in brief. At the end of this unit we describe different types of services provided by the Internet.
Unit 2 : This unit is about HTML, which is a Scripting Language. When we connect to a Web Site, the Web Server on on the remote computer presents our browser with a file in a special format. The contennts of the file are stored in a special format-usint HTML. The unit introduces a large number of tags.
Unit 3: Describes how to make interactive Web sites for which we require features like, frames, tables, and forms accepting user input.
Unit 4: In this unit we are going to learn about another Scripting Language, Java Script code and insert name into HTML documents and how to make the Web Page more dynamic and interactive.
Unit 5: This unit is about VBScript, a Microsoft Scripting Language. This is the last unit on Scripting Language, which is quite common. VB Script is a Microsoft Scripting Language. It enable us to write programs that enhance the power of Web Page by allwing to control their behaviour. It also discusses about objects in VBScript and talk about dictionary object as an example.
Unit 6: The last unit of this block is about HTML Editor, which is a tool for managing and creating a Web Site. At the end of this unit we discuss how to choose option, use inspectors and panels, and set preferences that best fit our work styles.

Reference : 1. The Internet By Douglas E. Comer.
2. Web Technologies by Achyut S Godbole and Atul Khate.
3. Data Communication & Networking by Bchrouz A. Forouzan.
4. Computer Networking by James F. Kurose, Keith, W. Ross, Pearson.
5. Computer Networking by A.S. Janenbaun, 4th Edition, PHI.
======================================================
UNIT-1 : THE INTERNET
======================================================
1.0 - Introduction
1.1 - Objectives
1.2 - Classification of Networks
1.3 - Networking Models
1.4 - What is Packet Switching ?
1.5 - Accessing the Internet
1.6 - Internet Protocols
----- 1.6.1 - Internet Protocol - IP
----- 1.6.2 - Transmission Control Protocol (TCP)
1.7 - Internet Address 
----- 1.7.1 - Structure of Internet Servers Address
----- 1.7.2 - Address Space
1.8 - How does the Internet Work ?
1.9 - Internet & Extranet 
1.10- Internet Infrastructure
1.11- Protocols and Services on Internet
----- 1.11.1 - Domain Name System
----- 1.11.2 - SMTP and Electronic Mail
----- 1.11.3 - HTTP and (WWW) World Wide Web
----- 1.11.4 - Usenet and News-groups
----- 1.11.5 - FTP
----- 1.11.6 - Telnet
1.12- Internet Tools
----- 1.12.1 - Search Engines
----- 1.12.2 - Web Browsers
1.13- Summary
1.14- Solutions / Answers
======================================================
1.0 INTRODUCTION
The Internet is worldwide computer network that interconnects, million of computing devices throughout the world. Most of these devices are PC's and servers that store and transmit information sucha as web pages and e-mail messages. Internet is revolutionizing the enhancing the way we as humans communicate, both locally and around the globe. Everyone wants to be a part of it because the Internet literally puts a world of information and a potential world-wide audience at your fingertips.
The Internet evolved from the ARPANET (Advanced Research Projects Agency) to which other networks where added to form an inter network, The present Internet is a collection of several hundred thousand of networks rather than a single network. From there evolved a high-speed backbone of Internet acces for sharing these of networks. The end of the decade saaw the emergance of the World Wide Web, which heralded a platform -independent means of communication enhanced with a pleasant and relatively easy-to-use Graphical Interface (GUI).
 
CLICK THE IMAGE TO ENLARGE --------------------
                                             ||
                                             \/
World Wide Web (or WWW) - is an example of an Information Protocol/ Service that can be used to send and receive information over the Internet. It supports:
  • Multimedia Information (text, movies, pictures, sound, programs... ).
  • Hyper Text Information (information that contains links to other information resources).
  • Graphic User Interface or GRAPHICAL USERE INTERFACE - GUI - (so users can point and click to request information instead of typing in text commands) like Mouse, Pointing Devices, Touch Pad, Video Inputs etc.
The World Wide Web model follows Client/ Server software design. A service that uses client/ server design requires two pieces of software to work: Client Software, which you use to request information, and Server Software, which is an Information Provider.
The server software for the World Wide Web is called an HTTP Server(or informally a web server). Examples are Mac HTTP, CERN HTTP (CERN IS European Organization for Nuclear Research), and NCSA HTTP   (NCSA = National Center for Supercomputing Applications), The client softwares for World Wide Web is called a Web Browsers (examples are : Internet Explorer, Mozilla Firefox, Netscape Nevigator, Opera, Chrome, etc.)
(NOTE: CERN FULL FORM - Conseil Européen pour la Recherche Nucléaire )
= = = = = = = = = = = = = = = = = = = = = = = = = =  = = = = = = = = = = = =
1.1 OBJECTIVES :
After going through this unit students / we - should be able to :
  • Make classification of Networks (variour Network Topologies);
  • Understand Two types of Networking Models OAI MODELS;
  • Understand the concept of Packet Switching;
  • Understand how to access to the Internet;
  • List the services available on Internet; and to
  • Understand how does the Internet or Intranet Works.
1.2 CLASSIFICATION OF NETWORKS :
There are different approaches to the classification of Computer Networks. One such classification is based on the distance approach. In this section we will discus such networks.
.
The networks can be classified into LAN, MAN and WAN networks. Here we desctibe them into brief to understand the different between the types of network.
.
Local Area Network (LAN) : LAN is a privatey - owned computer networks confined to small geographical area, such as an office or a factory Widely used to connect office PCs to share Information and Resourses (such as peripheral devices - printer, scanner, softwares, hardware etc..  In a Local Area Network - two or more computers are connected by same physical medium, such as a transmission cable. An important characteristic of Local Area netwoks is speed. i.e. they deliver the data very fast compared to other type of networks with ptypical data transmission speed are 10-100 Mbps (or in market we say 10/100 LAN Card).

A wide variety of LANs have been build and installed, but a few types have more rcently become dominant. The most widely used LAN system is the Ethernet System. Intermediate Nodes (i.e. repeaters, bridges, switches, routers, etc.) - allow LANs to be connected together to form large LANs. A LAN may also be connected to another LAN or to WANs and MANs using a "ROUTER".
SUMMARY OF LAN : ---
  1. LAN is a Communication Network (Home, School, Offices etc.).
  2. Useful in - One Building or Group of Buildings / Rooms etc.
  3. Controlled by one Administrator Authority.
  4. It is High Speed 10/100, and is always shared.
  5. We can share mostly all resourses by LAN.
  6. We can Control over other Desktop or Multiple Desktops through LAN.
  7. LAN is usefur for Building - other / Multiple and Big Networks.
  8. Networking is done by CAT Cables and RJ Connectors.
= = = = = = = = = = = = = = = = = = = =  = = = =  = = = = = = = = = =  = = = = =
A MAN, basically a bigger version of a LAN is designed to extend over an entire city. It may be single network such as a cable television network, or it may be a means of connecting a number of LANs into a large network so that resources may be shared for example, a company can use a MAN (Metropolitan Area Network) to connect the LANs in all of its office throughout a city.
A MAN typically covers an area of between 5 and 50 Km diameter. Many MANs cover an area the size of a city, although in some cases MANs may be as small as a group of Buildings.

The MAN, its communications links and equipment are generally owned by either a consortium (संघ) of users or by a single network provider who sells the service to the users. This level of service provided to each user must therefore be negotiated with the MAN operator, and some performance guarantees are normally specified.
A MAN often acts as a high-speed network to allow sharing of regional resources (similar to a large LAN). It is also frequently used to provide a shared connectio to other networks using a link to a WAN.
SUMMARY OF MAN : ---
  1. MAN - IS BIGGER VERSION OF - LAN; (OR MAN IS GROUP OF LAN)
  2. LIKE CABLE TV, AND INTER CITY NETWORKS;
  3. A COMPANY CAN JOIN ALL ITs OFFICE IN A CITY BY MAN;
  4. FROM 5 - 50 KILO METER -- TO -- ENTIRE CITY (REPEATERS AND ROUTERS ARE USED).
  5. MORE THEN ONE ADMINISTRATORS (NETWORK ADMINS.);
  6. SAME AS LAN - WE CAN SHARE RESOURCES IN - MAN;
  7. 34 - 155 Mbps.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Wide Area Network (WAN) :
The term Wide Area Network (WAN) usually refers to a network, which covers a large geographical area, and use communication subnets (circuits) to connect the intermediate nodes.  A major factor impacting WAN design and performace is a requirement that they lease communication subset from telephone companies or other communication carriers.  Transmission rates are typically 2 Mbps, 34, Mbps, 155 Mbps, 625 Mbps (or sometimes considerably more).  the basic purpose of th subnet is to transmit message from one end to another end through intermediate nodes.

In most WAN a subnet consists of two types of elements: (i)Transmission Lines; (ii)Switching Element.
Transmission Lines - also called channels move about from one machine to another machine. The basic purpose of the switching element is to select the outgoing path for forwarding the message.
Numerous WANs have been constructed, including public switched networks, large corporate networks, military networks, banking networks, stock brokerage networks, and airline reservation networks. A WANis wholly owned and use ny a single comapny is oftern referred to as an enterprises network.
SUMMARY ABOUT WAN :
  1. WAN Covers - Large Geographical Area.
  2. They Lease communication subsets from Tel. Companies / Communication Carriers (Airtel, MTNL, BSNL, VSNL, Bharti Telecommunications etc.)
  3. Transmission Rate is - 2 Mbps, 34, Mbps, 155 Mbps, 625 Mbps or more (sometime 1 Gbps).
  4. WAN subnet consist of two types of Elements (1) Transmission Lines (2) Switching Elemennt.
  5. Transmission Lines are Channels from one Machine to another, WHILE - Switching Elements are path to Forwarding Messages.
  6. WAN used mostly in Large Companies, Military, Banking, Stock, Airline, Train, Govt. Offices.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
1.3 NETWORKING MODELS (OSI & TCP/IP) - There are two types of Networking Models available: (1)OSI and (2) TCP/IP;
OSI (Open System Interconnection) Networking Model : An Open system is a model that allow any two different systems to communicate regardless of their underlying architecture. The purpose of teh OSI model is to open communication between different devices without requiring change to the logic of the underlying hardware and software.
The OSI model is not a protocol, it is a model of understanding and designing a network architecture that is inter- operable (अंतर - प्रचलित), Flexible and Robust (मजबूत).  The OSI model has a seven - lsyered architecture. These 7 LAYERS ARE :
  1. PHYSICAL LAYER - to send the Raw Bits between physical medium.
  2. DATA LINK LAYER - to transmit a group of bits between the adjacant (समीपवर्ती, nearby, निकटस्थ, संलग्न) nodes.
  3. NETWORK LAYER - responsible for routing a packet within the subnet that is, from source to destination nodes across multiple nodes in the same network or across multiple networks. (i.e. same subnet mask like 255.255.255.0 etc etc.)
  4. TRANSPORT LAYER - this is end to end layer, header of the transport layer contains information that helps send the message to the corresponding layer at the distination node.
  5. SESSION LAYER - responsible for establishing / maintaining and synchronizing the interaction between two communication hosts. 
  6. PRESENTATION LAYER - Data encryption / decryption / Compression / Translation etc.
  7. APPLICATION LAYER -  provides user interface for network applications such as remote login, WWW and FTP. responsible for file access / transfer, mail services, remote login, WWW.

NETWORK LAYERS IN DETAIL

:

  1. PHYSICAL LAYER : Responsible for sending raw bits between the source and destination nodes over a physical medium. The source and destination nodes have to agree on a number of factors.
    - SIGNAL ENCODING : how are the bits 0 and 1 to be represented ?
    - MEDIUM : type of medium used and its properties ?
    - BIT SYNCHRONIZATION (तुल्यकालन, समकालीन बनाने की क्रिया, समकालीकरण) : is the transmission synchronous or asynchronous (अतुल्यकालिक) ?
    - TRANSMISSION TYPE :
    - TRANSMISSION MODE :
    - TOPOLOGY :
    -
    -

    The physical layer defines electrical and physical specifications for devices. In particular, it defines the relationship between a device and a transmission medium, such as a copper or optical cable. This includes the layout of pins, voltages, cable specifications, hubs, repeaters, network adapters, host bus adapters (HBA used in storage area networks) and more.

OSI Model
Data unit
Layer
Function
Host
layers
Data
Network process to application
Data representation, encryption and decryption, convert machine dependent data to machine independent data
Interhost communication
Segments
End-to-end connections, reliability and flow control
Media
layers
Packet/Datagram
Path determination and logical addressing
Frame
Physical addressing
Bit
Media, signal and binary transmission

Monday, September 5, 2011

MCSL-016, INTERNET CONCEPTS AND WEB DESIGN , INTERNET CONCEPTS & WEB DESIGNING, INDIRA GANDHI NATIONAL OPEN UNIVERSITY, SCHOOL OF COMPUTER & INFORMATION SCIENCES, LAB MANUAL, (HTML, ADVANCED HTML, JAVA SCRIPT, VBScript (V.B. Script), Dreamweaver, (INDIRA GANDHI NATIONAL OPEN UNIVERSITY NOTES, IGNOU NOTES, IGNOU ASSIGNMENTS, IGNOU FIRST SYMESTER, IGNOU QUESTION PAPERS); IGNOU PROSPECTUR, IGNOU SYLLABUS, IGNOU MCA NOTES; MCA IGNOU - FIRST YEAR; MCA - IGNOU - SYM 1

MCSL-016, LAB MANUAL
INTERNET CONCEPTS AND WEB DESIGN, INTERNET CONCEPTS & WEB DESIGNING, INDIRA GANDHI NATIONAL OPEN UNIVERSITY, LAB MANUAL, (HTML, ADVANCED HTML, JAVA SCRIPT, VBScript (V.B. Script), Dreamweaver, (INDIRA GANDHI NATIONAL OPEN UNIVERSITY NOTES, IGNOU NOTES, IGNOU ASSIGNMENTS, IGNOU FIRST SYMESTER, IGNOU QUESTION PAPERS); IGNOU PROSPECTUR, IGNOU SYLLABUS, IGNOU MCA NOTES; MCA IGNOU - FIRST YEAR; MCA - IGNOU - SYM 1 :

ACCORDING TO (JULY - JANUARY SESSION - SYLLABUS)
NOTE : These are our / my personal Notes - I suggest you (students) to please follow your own syllabus and/ or books as these are my/ our personal and modified notes - for my personal use only, Thanks.
BLOCK INTRODUCTION :
This Block is a practical Block It consists of 5 sections, namely, HTML, Advanced HTML (Hyper Text Markup Language), VBScript or Visual Basic Scripting, JAVA Script, and Dreamweaver. Each section introduces the basics of scripting language, how to create the basic documents and finally a list of 10 sessions for doing practical exercises.  the details of commands of the scripting language are explained in the respective units of Block 1 of this course.
The block is organized as follows: section 1 describes HTML. It introduces the basics of HTML, how to create an HTML document, steps for creating an HTML program, and finally, it contains 10 sessions for lab practice.
Section 2 goes one step further and introduces Advanced HTML. All the lab exercises in this session are about the two basic advanced features: frames and forms. HTML deals with forms exactly the same way as you would with a paper form. There are groups of items and single items all gathered together in one large form, like a paper form.
Section 3 focuses on Java Script, which is also a scripting language.  The JAVA Script provides interactivity to the user. The following features are supported in JAVA Script:
  • Add scrolling or changing messages to the browser's status line.
  • Validate the contents of a form and make calculations.
  • Display messages to the user, either as part of a web page or in alert boxes.
  • Animate images or create images that change when you move the mouse over them.
  • Detect the browser in use and display different contents for different browsers.
  • Detect installed plugins and notify the user if a plugin is required.
This section also gives tips on how to incorporate JAVA Script into a Web Page.
Section 4 introduces VB Script. Like JAVA Script, VB Script is a powerful and easy to learn tool that can be used to provide interactivity to the Web Pages. As in the previous section we also discuss how to incorporate VBScript into HTML pages.
Section 5 is the last section, which works like an HTML editor. Before providing lab sessions we provide the following descriptions about the package:
  • How to work in Dreamweaver.
  • Insert external media in the Web Pages.
  • Adding SSI to the pages.
  • Adding CSS style to the pages.
================================================= 
SECTION-1 -HTML (HYPERTEXT MARKUP LANGUAGE) ;

Structure :
1.0 - Basics of HTML
1.1 - How to Create HTML Document ?
1.2 Step of Creating a Simple HTML Program.
1.3 Exercises for Practice in Lab Sessions.
================================================= 

1.0 - BASICS OF HTML 
Web pages or materials in the form of hypermedia documents accessed through the Internet can be located anywhere in the world.
No matter where they originated, most Web documents are created using HYPERTEXT MARKUP LANGUAGE (or HTML) is a powerful authoring language and has different Versions - like : HTML 4.2, HTML 3.2, HTML 3.0, and HTML 2.
HTML  is used to difine document structure and format, with the help of a single tag or a pair of tags. A tag is a string in the language surrounded by a less than (<) and a greater than (>) sign.  An opening tag does begin with a slash (/) [or simply <start>], while ending or closing tag is a string that begins with a slash (/) [or simply <end/>].
HTML documents format textual information with embedded markup tags that provide style and structure information.  A whole document in HTML begins with <HTML> and ends with </HTML>.
1.1 - HOW TO CREATE AN HTML DOCUMENT ?
An HTML document can be created using any HTML editor or text editor like notepad [or if you are using dos then EDIT simply].

1.2 STEPS FOR CREATING A SIMPLE HTML


  1. Go to Start ---> Programs ---> Accessories ---> Notepad --
    .
  2. Begin with a document type tag and an <HTML> opening tag. Enter the following line in your doc.
    <HTML>
    .
  3. Indicate that you are begining the head element of a document by issuing the <HEAD> opening tag. If a <HEAD> element is included, it must appear within an <HTML> element. The following line should appear next in your document :
    <HEAD>
    .
  4. The <TITLE> element is used to indicate the title of an HTML document. <TITLE> tags are placed within the head component of a document and the title is placed between the opening and the closing <TITLE> tags. Add the following <TITLE> element to your document.
    <TITLE>My First Page</TITLE>
    .
  5. To end the head area issue a <HEAD> closing tag.
    </HEAD>
    .
    Thus the <HEAD> element is nested within the <HTML> element.
    .
  6. At this point the body of the document is developed. A <BODY> opening tag indicates that this point has been reached.  Enter the following line :
    <BODY>
    .
  7. In the following example, the body of the document contains a simple text statement which you can now enter in your file :
    Hello World !
    .
  8. A </BODY> closing tag marks the end of the <BODY> element. Similar to the Head element, the <BODY> element is also completely nested within the <HTML> element.  To end the <BODY> element, issue the closing corresponding tag in your document.
    </BODY>
    .
  9. Finally, terminate the <HTML> tag with </HTML> as shown below :

  10.  Save your document as mypage.html
  11. To view the document opent he .html document in teh browser.
--------------------------------------------------------------------------------
1.3 EXERCISES FOR PRACTICE IN LAB SESSION
--------------------------------------------------------------------------------
SESSION 1
--------------------------------------------------------------------------------
EXERCISE 1.
Write HTML code to develop a Web page having the background in red and title "My First Page" in any other colour.
Ans:
<html> 
    <head> 
       <title>My First Page</title></head><body bgcolor="#FF0000">
     <font color="#99FF66"><strong>My First Page </strong>
</font></body> 
</html>

EXERCISE 2.
Q. Create an HTML document giving details of your name, age, telephone number, address, TLC codE & enrolment number aligned in proper order.

Ans:  <HTML> <H1> <font face="algerian" color="blue">LAB EXERCISE 1.2</font>
  </H1><BODY BGCOLOR="PINK"><P ALIGN CENTER><i><FONT FACE="ARIAL" COLOR="GREEN">MY PERSONAL DETAILS</i></FONT>
      <HR SIZE="2" WIDHT=100%></HR></p>
      <h3><pre>
         NAME ----------  : YOUR NAME
         AGE  ----------  :  AGE
         TELEPHONE NUMBER : YOUR AGE

         ADDRESS ---------: YOUR ADDRESS
        TLC CODE --------: _________________
         ENROLMENT NUMBER : YOUR ENROLMENT NO

        </pre></h3>
      </BODY>
</HTML>


EXERCISE 3.
Q.3. Write an HTML code to design a page containing text, in form of paragraphs giving suitable heading style.
Ans. <html><head><title>My First Page</title></head>
    <body><h1 align="center"><strong>What's new in Windows     XPProfessional</strong>
    </h1><h2 align="justify">Welcome to Windows XP
     Professional. Among the new features available in Windows XP, there are new security tools that you can use to helpkeep your computer more secure, and new technologies that run in the background,making your computer run more efficiently and reliably.</h2><h3 align="justify">Windows XP has improved upon security, including the newSecurityCenter, which allows you to check the status of the important security elementson your computer&#8212;Windows Firewall, Automatic Updates, and virus protectionsoftware&#8212;making it easier for you to understand how to keep your computer  better protected against viruses and other security threats. Performance isat an all-time high.</h3><h4 align="justify"> You can now use more programs at the same time and theywillrun faster than ever. Windows XP is dependable and stable, so you can alwaysrely on the performance and effectiveness of your computer.
    <br>
</h4>
</body></html>

SESSION 2
EXERCISE 1.
Q.1    Create a page to show different attributes of Font Tag.
Ans.   <html>
     <head>
           <title>THE HTML FILE TO SHOW DIFFERENT ATTRIBUTES OF FONT TAG &mdash; BY CANDIDATE</title>
     </head>
     <body>
           <p align="left"><strong><font color="#0000FF" face="Arial">Left Aligned, font color #0000FF, font face is ARIAL</font></strong></p>
           <font color="#FF0000" face="Courier New">This is Font Color #FF0000, here font face is Courier New</font><p>
           <font face="Geneva"><strong><em>Here Font Face = Geneva, and here &ndash; < EM > TAG is inside the < STRONG > TAG </em></strong></font><br><p>
           <font color="#FFFFFF" face="Verdana">Here Font Face is Verdana, and Color #FFFFFF</font><p>
           <font face="impact" size=+1>Here Font Face &eqou; IMPACT, and here SIZE of Font is +1.</font><p>
           <font face="arial black" size=4>This is ARIAL BLACK and the SIZE is 4</font><p>
           <font face="comic sans MS" size=+1>This is Comic Sans MS, and SIZE is +1.</font><p>
           <font face="geneva" size=-2>This is GENEVA SIZE is -2</font><p>
    </body>
</html>

SESSION 2
EXERCISE 2
Q. Create a page to show different attributes : Italics, Bold, Underline.
Ans. <html>  <head> <title>HTML Pagr to show BOLD, UNDERLINE &amp; ITALICS effect</title>
  </head> <body bgcolor="#FFFFFF">
     <p align="left"><strong>Bold</strong></p>
     <p align="left"><em>Italics</em></p>
     <p align="left"><u>Underline</u></p>
     <p align="left"><strong><em>Bold and Italics</em></strong></p>
     <p align="left"><u><em>Italics and Underline</em></u></p>
     <p align="left"><strong><em><u>Bold Italic and Underline</u></em></strong></p>
<style type="text/css">
.double_underline {border-bottom: 3px double;}
</style></head><body><span class="double_underline">This is The Sample of Double Underlined Text &mdash; with the use of css text.</span></body>
</p></body>
</html>
SESSION 2 
Exercise 3.
Q.3. Design a page having background colour yellow, giving text colour Red and using all the attributes of font TAB.
Ans. <html><head><title>HTML FILE to SHOW BACKGROUND AS YELLOW with FONT COLOR RED AND ALL ATTRIBUTE OF FONT TAB</title>
        </head>
   <body bgcolor="#FFFF99"><p align="left"><strong><font color="#FF0000" face="Arial">Here I am using &lt;STRONG&gt; TAG &amp; FONT COLOR &ndash; FF0000 Font Face is Arial</font></strong></p><p aligh="justify"><font color="#FF0000" face="Courier New">Hello Friends This is the sample JUSTIFIED text with the use of align &amp; justify TAG and &ndash; this text is inside the &lt;P&gt; Tag and here i am using font color as FF0000, where Font Face is Courier New, Now with the use of &lt;B&gt; <b>BOLD</b> tag <b>THIS IS BOLD</b>, with the use of <U>UNDERLINE</U> tag which is U &ndash; <u>THIS IS UNDERLINE TEXT</u>,</font></p>
       <p><font color="#FF0000" face="Geneva"><strong>Here Font Color is #FF0000, inside &lt;P&gt; TAGFont Face is Geneva, which is inside the &lt;STRONG&gt; TAG, after that I am using &lt;EM&gt; TAG &mdash; actually &lt;EM&gt; TAG is used in leu of &lt;I&gt; TAG &ndash; which is generally used for &lt;I&gt; <i>ITALICS TAG</i> now THIS IS THE &lt;I&gt; TAG, and <em>THIS IS THE &lt;EM&gt; TAG</em>, you can see easily that they both are similar. Now this is the example of STRIKETHROUGH
          OR <del>DELETED TEXT</del> effect with the use of &lt;DEL&gt; TAG</strong></font></p>
       <p><font color="#FF0000" face="Verdana" size=-1>Here Font Color is #FF0000, This is the Font Size Experiment THE FONT SIZE
          IS MINUS &mdash;1, <font size=+1>THIS IS FONT SIZE +1</font>, <font size=+3>THIS IS FONT SIZE +3</font><br></p>
     </body>
</html>

SESSION 3
Exercise 1. Write an HTML Code to create a web page of Blue color and display links in red colour.
Ans. <html>
  <head>
    <title>Showing a Webpage where Background is BLUE &amp; Links in RED</title>
  </head>
      <body bgcolor="#0000FF" link="#FF0000" vlink="#FF0000" alink="#FF0000">
      <p align="left"><a href="1.htm"><strong>This is The Link To Page 1</strong></a></p>
      <p align="left"><strong><a href="2.htm">This is The Link To Page 2</a></strong></p>
      <p align="left"><strong><a href="3.htm" target="_blank">This is The Link To page 3</a></strong></p>
</body>
</html>
SESSION 3
Exercise 2 : Write an HTML code to create a Web page that contains an Image at its center.

Ans. <html>
    <head>THIS IS HEADING </head>
<body>
<div align="center"><img src="C:\Windows\wallpaper.jpg" width="241" height="133"> </div>
</body>
</html>
SESSION 3
EXERCISE 3 : Create a Web page with appropriate content and insert an image towards the left hand slide of the page. When user clicks on the image, it should open anotehr Web Page.
Ans. <html>
    <head>SESSION 3 EXERCISE 3 &mdash; Inert an Image towards the left hand side of the page
          &ndash; when user clicks on the image, it should open another web page
    </head>
        <body><br>Click the Image Below it will open another Web Page  <p><a href="ANOTHER.html"><img src="C:\photos\img2.jpg" width="272" height="151" border="2"></a></p>
        </body>
</html>
SESSION4
EXERCISE 1 :  Create a Web Page using href attribute of anchor tag & the attribute: alink, vlink etc.
Ans. <html>
  <head>SESSION 4 EXERCISE 1 &ndash; Using href attribute of
        anchor TAG & the attrib &ndash; alink vlink etc.</head>
     <body link="#0000FF" vlink="#009900" alink="#0000FF">
         <p><a href="MAIN.htm" target="_blank">THIS IS LINK TO MAIN PAGE</a></p>
         <p><a href="HOME.htm" target="_parent">THIS IS LINK TO HOME PAGE</a></p>
         <p><a href="CONTACT_US.htm" target="_self">THIS IS LINK TO CONTACT US PAGE</a></p>
     </body>
</html>


SESSION   - 4
EXERCISE  2 :  Create a Web page, wherein when the user clicks on the link it should go to the bottom of the page.Ans. : <html>
    <head>HERE I AM USING anchor &ndash; anch TAG, CLICK BELOW LINK TO
GO TO BOTTOM OF THE PAGE</head>
      <body link="#0000FF" vlink="#009900" alink="#0000FF">
        <p><a href="#Anch1">CLICK HERE TO GO TO BOTTOM</a></p>
        <p>First Demo Paragraph</p>
        <p>Second Demo Paragraph</p>
        <p>Third Demo Paragraph</p>
        <p>Fourth Demo Paragraph</p>
        <p>Fifth Demo Paragraph</p>
        <p>Sixth Demo Paragraph</p>
        <p>Seventh Demo Paragraph</p>
        <p>8 Demo Paragraph</p>
        <p>9 Demo Paragraph</p>
        <p>10 Demo Paragraph</p>
        <p>11 Demo Paragraph</p>
        <p>12 Demo Paragraph</p>
        <p>13 Demo Paragraph</p>
        <p>14 Demo Paragraph</p>
        <p>15 Demo Paragraph</p>
        <p>16 Demo Paragraph</p>
        <p>17 Demo Paragraph</p>
        <p>18 Demo Paragraph</p>
        <p>19 Demo Paragraph</p>
        <p>20 Demo Paragraph</p>
        <p>21 Demo Paragraph</p>
        <p>22 Demo Paragraph</p>
        <p>23 Demo Paragraph</p>
        <p>24 Demo Paragraph</p>
        <p>25 Demo Paragraph</p>
<p><a name="Anch1">THIS IS THE BOTTOM LINK FOR THE ABOVE ANCHOR</a><BR>
<marquee><font size=+9>THANKS FOR VISITING MY PAGE</marquee></font></p>
</body>
</html>


SESSION   - 4
EXERCISE  3 : Write HTML Code to create a Web Page of pink colour and display a moving message in red colour.Ans: <html>
    <head>THIS IS HEADING SESSION 4 EX&ndash;3</head>
  <body bgcolor="#FF99FF">
     <marquee>
        <font color="#FF0000"><strong>HI FRIENDS THIS IS MOVING TEXT
                                 WITH THE USE OF MARQUEE TAG, THANKS
                              </strong></font>
     </marquee>
  </body>
</html>


SESSION   - 5
EXERCISE  1 :  Create a Web Page, showing an ordered list of the names of five of your friends. Ans. : <html>
      <head>THIS IS HEADING</head>
  <body ><H4>HERE &lt;OL&gt; TAG is for ORDERED (i.e. Auto Numbering with LI TAG)
             LIST &amp &lt;li&gt; TAG is for List</H4>
      <ol>
          <li>Friend 1</li>
          <li>Friend 2</li>
          <li>Ashish</li>
          <li>Mrs. Sharma</li>
          <li>Mr. Singh</li>
      </ol><p></p>
               <H5>Below is the Example of Roman Auto Number List with use of 'ol' (order list) type i (if we use capital I in place of small I then the roman letters will look as I, II, III, so on</h5>
      <ol type="i">
          <li>Harish</li>
          <li>Satish</li>
          <li>Gautam</li>
          <li>Pinki</li>
          <li>Anil</li>
      </ol>
  </body>
</html>

SESSION   - 5
EXERCISE  2 : Create an HTML document containing a nested list showing the content page of any book.
Ans.:   <html>
     <head><H2>TITLE OF THE BOOKS &ndash; LET US HTML</H2>
     </head>
   <body><strong>Contents </strong>
       <ol><li>Introduction</li>
              <li>Getting Started</li>
                  <ul><li>What is HTML</li><li>Saliant features of HTML</li></ul>
              <li>History of HTML</li>
                  <ul><li>Difference Between HTML & DHTML</li><ul>
                      <li>HTML VS XML &am; SGML</li></ul>
                      <li>INTRODUCTION TO TAGS</li><li>BASIC TAGA IN HTML</li>
                      <li>LIST OF SOME BASIC TAGS</li></ul>
              <li>HEADING TAGS IN HTML</li>
              <li>BODY TAG IN HTML</li>
              <li>DIFFERENCE BETWEEN HEADING AND BODY TAG</li>
              <li>TITLE TAG IN HTML</li>
              <li>COLOUR TAGS IN HTML</li>
         </ol>
</body></html>
SESSION   - 5
EXERCISE  3 :  Create a web page, showing an unordered list of names of five of your friends.Ans.:  <html>
   <head>THIS IS HEADING</head>
     <body >
       <ul><li>Friend 1</li>
         <li>Friend 2</li>
         <li>Sharma</li>
         <li>Anil </li>
         <li>Friend </li>
       </ul></body>
</html>

SESSION   -  6
EXERCISE  1 : Create a Web page, which should contain a table having two rows and two columns.
Ans.:<html>
    <head>HEADING</head>
       <body>
         <table width="100%" border="2">
           <tr>
              <td>&nbsp;one</td>
              <td>&nbsp;two</td>
           </tr>
           <tr>
              <td>&nbsp;three</td>
              <td>&nbsp;four</td>
           </tr>
         </table>
</body></html>
SESSION   -  6
EXERCISE  2 : Fill in some dummy data in the table created by you in question 1 of this session.
Ans.: <html><head>HEADING</head>
  <body>
     <table width="55%" border="3">
        <tr>
          <td><strong>LIST OF ITEMS</strong></td>
          <td><strong>BRAND NAME</strong></td>
       </tr>
       <tr>
          <td>MONITOR</td>
          <td>SAMSUNG 14&rdquo;</td>
       </tr>
     </table>
   </body>
</html>

SESSION   -  6
EXERCISE  3 :  Create the following table in HTML with Dummy Data.
Ans.: <html><head>TRAIN SCHEDULE &ndash; TABLE</head>
  <body><table width="95%" border="4">
     <tr><td width="28%" rowspan="2" ><strong>Name Of Train</strong></td>
       <td width="11%" rowspan="2" ><strong>Place</strong></td>
       <td width="16%" rowspan="2" ><strong>Destination</strong></td>
       <td width="17%" rowspan="2" ><strong>Train No</strong></td>
       <td colspan="2" ><div align="center"><strong>Time</strong></div></td>
       <td width="13%" rowspan="2" ><strong>Fair</strong></td>
      </tr>
        <tr>
       <td width="8%" ><strong>Arrival</strong></td>
       <td width="7%" ><strong>Departure</strong></td>
    </tr>
    <tr>
       <td >Lokamanya Thilak</td><td>Tvm</td> <td>Loka Manya Thilak</td>
       <td>CH8906</td> <td>03:40</td> <td>03:55</td> <td>650</td>
        </tr>
        <tr> <td>Nizamudhenn Express</td>
       <td >Kannur</td>
       <td>Koyambathoor</td>
       <td>NEH08634</td>
       <td>20:25</td> <td>16:45</td> <td>320</td>
        </tr>
      </table>
</body></html>

SESSION   - 7
EXERCISE  1 : Create to following table 
Ans. : <html><head>SESSION 7 EXERCISE 1</head><body bgcolor="#AAAAAA">
      <table width="60%%" border="1">
        <tr bgcolor="#FFFFFF"><td colspan="3">&nbsp;White</td>
        </tr>
        <tr><td bgcolor="#FF0000">&nbsp;RED</td>
          <td bgcolor="#009933">&nbsp;GREEN</td>
          <td bgcolor="#000000">&nbsp;<font color="white"><b>BLACK</b></font></td>
        </tr>
     </table>
    </body>
</html>

SESSION   - 7
EXERCISE  2 :  Design an HTML Page having 3 images placed in the following format.Ans: <html> <head><b><u>SESSION 7 EXERCISE 2</u></b></head><p></p>
   <body><table width="36%" border="0" cellpadding="0" cellspacing="0">
      <tr><td width="26%" align="left" valign="top">
           <img src="C:\wallpapers\hello.jpg" width="159" height="129"></td>
        <td width="24%">&nbsp;</td>
        <td width="50%">&nbsp;</td>
      </tr>
      <tr><td>&nbsp;</td>
        <td align="left" valign="top"><img src="c:\images\photo2.jpg" width="159"
         height="129"></td> <td>&nbsp;</td>
      </tr>
      <tr><td>&nbsp;</td>
        <td>&nbsp;</td>
        <td align="left" valign="top">
        <img src="c:\images\image3.jpg" width="159" height="129"></td>
      </tr>
    </table>
</body></html>
SESSION   - 7
EXERCISE  3 : Write HTML code to generate the following output :
Ans.: <html><head>SECCION 7  EX 3 IGNOU</head>
   <body>
    <table width="100%" border="1">
      <tr><td rowspan="2">Weather</td>
      <td><strong>Delhi</strong></td>
      <td><strong>Mumbai</strong></td>
     </tr> <tr>
    <td>40</td>
   <td>35</td>
</tr>
</table>
</body></html>

SESSION   -8
EXERCISE  1 : What are HTML Physical style tags and Logical style Tags ?
Ans :

Logical Styles
<DFN>
for a word being defined. Typically displayed in italics. (Internet Explorer is a World Wide Web browser.)
<EM>
for emphasis. Typically displayed in italics. (Watch out for pickpockets.)
<CITE>
for titles of books, films, etc. Typically displayed in italics. (A Beginner's Guide to HTML)
<CODE>
for snippets of computer code. Displayed in a fixed-width font. (This is a sample of code.)
<KBD>
for user keyboard entry. Should be displayed in a bold fixed-width font, but many browsers render it in the plain fixed-width font. (Enter password for Windows networking.)
<SAMP>
for computer status messages. Displayed in a fixed-width font. (Segmentation fault: Core Meltdown!.)
<STRONG>
for strong emphasis. Typically displayed in bold. (Important)
<VAR>
for a ``metasyntactic'' variable, where the user is to replace the variable with a specific instance. Typically displayed in italics. (del filename deletes the file.)
Physical Styles
<B>
This is a sample of bold text
<I>
This is a sample of italic text
<TT>
This is a sample of typewriter text, e.g. fixed-width font

SESSION   -8
EXERCISE  2 : Which HTML tag allows you to scroll text on the Web Page ? Ans : Scrolling Tag allows us to scroll text on the Web Page<iframe align="left" scrolling="yes" width="100%" height="100%"src="cont.htm">


SESSION   - 8
EXERCISE  3 :What is the comment tag in HTML ?
Ans: Comment tags are used to provide comments to the webpage. The contents insidethe tag will not displayed by the web browser when it displays the page.Eg. <!This is comments used to help web designers >

SESSION   - 8
EXERCISE  4 - Design an HTML Page for the "Block Introduction" of thisBook: The page should allow scrolling and the code should contain a comment header with your name and enrolment number ?

Ans: <!Name :CANDIDATE NAME><!Enrolment No : XXXXXXXXXXXX>
<html>     <head>SESSION 8 EX. 4</head>
       <body><table width="80%" border="2">
        <tr><td><strong>Block Introduction</strong></td>
        </tr>  <tr><td height="118" align="left" valign="top">
            <iframe align="left" scrolling="yes" width="100%" height="100%"src="c:\pages\second.html"><p><br></p></iframe></td></tr>
   </table></body>
</html>
SESSION   - 9
EXERCISE  1 -  What difference does it make if we express th width of a table in percentage or in pixcel value ? And how do we set the width of a particular column or cell in a table.

Ans: ---- If the width of the table is expressed in percentage the width of the table variesaccording to the width of the page displayed  by the browser. It the width is 100%then width of the table will  be the width of the page.The width of the particular column and  cell is set by
<table border=1 width=100%>
<tr><td width=60%></td>
<td width=40%></td>
</tr>
</table>

SESSION   - 9
EXERCISE  2 - Write HTML code to generate the following output :Ans:<html><head>SESSION 9 EXERCISE 2</head>
    <body>   <table width="80%" border="1" cellpadding="0">
        <tr>    <td width="33%">1</td><td width="14%">2</td>
          <td width="21%">3</td><td width="32%">4</td>
        </tr>  <tr>          <td>5</td><td colspan="2" rowspan="2" align="left" valign="top">
          <img src="C:\IMAGES\image1.jpg" width="274" height="138"></td><td>6</td></tr><tr><td>7</td><td>8</td></tr><tr><td>9</td><td>10</td><td>11</td><td>12</td></tr>
       </table>
    </body>
</html>

SESSION   - 9
EXERCISE  3 -Create a Web page that should contain a table having seven rows and four columns, along with the attributes - colspan & rowspan.
Ans: <html><head>HEADING</head>
  <body><table width="100%" border="1" cellpadding="0">
    <tr>
         <td width="33%">1</td><td width="14%">2</td><td width="21%">3
         </td></tr><tr><td height="21">5</td>
         <td colspan="2" rowspan="2" align="left" valign="top">
          Example for Colspanand Row Spans</td></tr><tr><td height="21">7
         </td></tr><tr><td rowspan="3">Example for Colspan and Row Spans</td>
         <td>9</td><td>10</td></tr><tr><td>11</td>
         <td>12</td></tr><tr><td>13</td><td>14</td>
         </tr><tr><td>15</td><td>16</td><td>17</td></tr>
         </table>
  </body>
</html>

SESSION   -10
EXERCISE  1 - What are the different versions of HTML ?
Ans: HTML 4.2, HTML 4.0, HTML 3.2, HTML 3.0, HTML 2
SESSION   -10
EXERCISE  2 -List 5 different HTML Editors ? Ans: a) Macromedia Dreamweaver  b) Microsoft Front page15 
c) Web page Maker d) Microsoft Asp.Net Editor
 
SESSION   -10
EXERCISE  3 - What is the different image formats ?
Ans:  JPG - Joint Photographic Expert Group, TIFF - Tagged Image File Format, GIF- Graphical Image File, WMF - Windows Meta File, BMP - Bitmap, PNG - Portable Network Graphics & many more.
------------------------------------------------------------
SECTION 2 - ADVANCED HTML
------------------------------------------------------------
2.0 ADVANCED TOPICS OF HTML
------------------------------------------------------------
2.1 EXERCISE FOR PRACTICE IN LAB SESSION :
------------------------------------------------------------

SESSION   - 1
EXERCISE  1 -How do you handle the situation when the browser doesn't support frames ? Ans: The <NOFRAMES> tag is used for those browsers that are not able
tointerpret <FRAME> tags. If the browser doesn’t support FRAME
the text between <NOFRAME> and </NOFRAME> will displayed on the
browser’s window
<html><head></head><frameset rows="*,*"" frameborder="NO" border="0"
framespacing="0"><frame src="frn2.htm" name="topFrame">
<frame src="frn1.htm" name="16ainframe"></frameset><body><noframes>
your browser does not handle frames</noframes></body></html>

SESSION   - 1
EXERCISE  2 - What are inline frames ?Ans : An inline frame ("floating frame") is a construct which embeds a document into an HTML document so that embedded data is displayed inside a subwindowof the browser's window. This does not mean full inclusion; the two documents are independent, and both them are treated as complete documents, instead of treating one as part of the other. Support to inline frames is not universal, but with a properly designed "graceful degradation", they can be used in authoring for the World Wide Web. However, there are serious problems with printing documents containing them. This document also discusses the legal side of the matter as well as the details of the iframe element as defined in the HTML specifications, on one hand, and as implemented on IE, on the other.
SESSION - 1
EXERCISE - 3 :  Which tag is used to define frames in HTML ?
Ans: ---    Frameset TAG is used  - to define frames in HTML  :
<frameset rows=”*,*”” frameborder=”NO” border=”0”framespacing=”0”> 
<frame src=”frn2.htm” name=”topFrame” >
 <frame src=”frn1.htm” name=”16ainframe”></frameset>
SESSION -2
EXERCISE - 1 : Write an HTML code to develop a Web Page having two frames that divide the web page into two equal rows ?
Ans : <html><head></head><frameset rows=”*,*”” frameborder=”NO” border=”0” framespacing=”0”><frame src=”frm1.html” name=”topFrame” ><frame src=”frm2.html” name=”16ainframe”>
</frameset><body></body></html> 
SESSION -2
EXERCISE - 2 :Write an HTML code to develop a Web page having two frames that divided the web page into two equal rows and then divide the second row into two equal columns ? Ans: <html><head></head><frameset rows=”*,*” cols=”*” frameborder=”yes” border=”1” framespacing=”0”><frame src=”frm1.html” name=”topFrame” scrolling=”NO” noresize ><frameset rows=”*” cols=”*,*” framespacing=”0” frameborder=”yes” border=”1”><frame src=”frm2.html” name=”leftFrame” scrolling=”NO” noresize><frame src=”frm3.html” name=”17ainframe”></frameset></frameset><body></body</html>

SESSION -2
EXERCISE - 3 : Write an HTML code to develoo a Web page having frames as described in the above question and then fill each frame with a different background colour ? Ans.  
<html><head></head> 
   <frameset rows=”*,*” cols=”*” frameborder=”yes” border=”1” framespacing=”0”> 
   <frame src=”frm1.html” name=”topFrame” scrolling=”NO” noresize > 
   <frameset rows=”*” cols=”*,*” framespacing=”0” frameborder=”yes” border=”1”> 
   <frame src=”frm2.html” name=”leftFrame” scrolling=”NO” noresize> 
   <frame src=”frm3.html” name=”17ainframe”> 
</frameset></frameset> 
<body></body
</html>

SESSION -3
EXERCISE -  1 :What are the tags used to display information for browsers that do not support frames ?Ans: <NOFRAMES></NOFRAMES> tag is used to display information for browsersthat does not support frames.
SESSION -3
EXERCISE -  2 : Write the various attributes of frameset tag and frame tag ? Ans :   <!--<FRAMESET ROWS=50%,50%> used to set frame’s row’s size
<FRAMESET COLS=50%,50%>used to set frame’s column’s size
<FRAMESET ROWS><FRAME SRC="FRM2.HTM">used to insert frame
<FRAMESET> opening tag (all frame tag must be between <head> and</head> tag)
</FRAMESET> closing tag SCROLLING attribute is used to set scrolling of a frame (whether scrolling or not(SCROLLING="NO"))FRAMEBORDER attribute is used to set border of a frameFRAMESPACING attribute is used to set space between FRAMES NAME attribute is used to specify the name of a frame (it is an optional attribute)
SESSION -3
EXERCISE -  3 : Write a code in HTML to design a page with two frames. The frame should remain proportionate even when page is re-sized ? Ans:  
<html><head></head><frameset rows=”*,*” frameborder=”NO” border=”0” 
framespacing=”0”><frame src=”frm2.html” name=”topFrame” >
 <frame src=”frm1.html” name=”mainframe”> 
</frameset><body></body></html>
SESSION -4
EXERCISE -  1 :Write the code to develop the Web page as shown below, using frames : Ans:  
<html><head></head> 
     <frameset rows=”*” cols=”27%,73%”><frame src=”frm1.html”>
   <frameset rows=”50%,50%”><frame src=”frm2.html”> 
     <frameset cols=”50%,50%”><frame src=”frm3.html”>
    <frame src=”frm4.html”></frameset></frameset></frameset> 
<body></body>
</html>
SESSION -4
EXERCISE -  2 : Write the code to make the background colour of each frame in the above question different .Ans:
<html><head>HEADING</head>
     <frameset rows=”*” cols=”27%,73%”> 
    <frame src=”frm1.html”>
     <frameset rows=”50%,50%”> 
    <frame src=”frm2.html”><frameset cols=”50%,50%”>
      <frame src=”frm3.html”><frame src=”frm4.html”></frameset></frameset></frameset> 
   <body></body>
</html>

SESSION -4
EXERCISE -  3 : Create a Web Page divided into two equal frames ?Ans:  
 <html><head>HEADING</head>
   <frameset rows=”*” cols=”50%,50%”> 
   <frame src=”frm1.html”><frame src=”frm2.html”>
   </frameset><noframes></noframes><body></body>
</html>
SESSION -5
EXERCISE -  1 :Crate a Web page having two frames, one containing links and the containing content of the links. When link is clicked, appropriate contents should be displayed in Frame 2. Ans:
<html><head>HEADING</head><body> 
     <table width=”100%” height=”437” border=”1” cellpadding=”0”> 
    <tr><td width=”22%” align=”left” valign=”top”><a href=”content.html” target=”frn1”>Show Content
    </a></td><td width=”78%” align=”left” valign=”top”> 
    <iframe name=”frn1” frameborder=”1”  width=”100%”height=”100%”></iframe> 
    </td></tr></table> 
 </body>
</html>
SESSION - 5
EXERCISE -  2 : Create a Home Page for a TLC in following format : Ans:  
<html><head>HEADING</head>
      <frameset rows=”*,*” cols=”*” frameborder=”yes” border=”1” framespacing=”0”>
       <frame src=”frm1.html” name=”topFrame” scrolling=”NO” noresize > 
      <frameset rows=”*” cols=”*,*” framespacing=”0” frameborder=”yes” border=”1”> 
      <frame src=”frm2.html” name=”leftFrame” scrolling=”NO” noresize> 
      <frame src=”frm3.html” name=”19ainframe”></frameset></frameset> 
<body></body>
</html>
SESSION - 5
EXERCISE -  3 :  Creat a Web page using all the attributes of the frame and other tags ?
Ans:
<html><head>HEAD</head><frameset rows=”*” cols=”27%,73%”> 
     <frame src=”frm1.html”><frameset rows=”50%,50%” border=”5” bordercolor=”#3300FF”> 
          <frame src=”animals7.jpg” width=146 height=162 scrolling=”yes” marginheight=”1”marginwidth=”1”> 
     <frameset cols=”40%,*”><frame src=”frm2.html”><frame src=”frm3.html”> 
     </frameset></frameset></frameset><noframes></noframes> 
  <body></body>
</html>
SESSION - 6
EXERCISE -  1 : Design a page with a text box called 'name' and a button with label 'Enter. When you click on the button another page should open, with the message "Welcome <name>", where name should be equal to the name entered in the first page.
Ans:
<html><head>HEAD</head>
      <script language="JavaScript">function newpages(cont){var msg="Welcome " + cont;window.navigate("newpage.html");window.document.write(msg);}</script><body>
     <form name="form1" method="post" action=""><p>
  <input name="name" type="text" id="name" value="aa"> </p><p>
<input type="submit" name="Submit" value="Enter"onClick="newpages(form1.name.value)">
</p></form>
</body></html>
SESSION - 6
EXERCISE -  2 :  What are the values of method attribute of the form TAG ?
Ans. :  Get, Post are two values of method attributes of form tag 

SESSION - 6
EXERCISE -  3 : Set default value of 'name' text box of question 1 of this session to Victoria.  Add another button called Reset on click of this button name 'text box' should be set to 100 default value.
Ans:
<html><head>HEAD</head><script language=”JavaScript”>function newpages(cont){var msg=”Welcome “ + cont;window.navigate(“newpage.html”);window.document.write(msg);}</script><body> 
<form name=”form1” method=”post” action=”mailto:mail@abc.com”><p> 
<input name=”name” type=”text” id=”name” value=”100”> </p><p>
<input type=”submit” name=”Submit” value=”Enter”onClick=”newpages(form1.name.value)”><input type=”reset” name=”Submit2” value=”Reset”> </p></form></body></html>

SESSION - 7
EXERCISE -  1 : Design a form using all input types.  Ans:
<HTML><HEAD>HEADING</HEAD> 
<BODY><FORM name=”frm1” method=”post” action=””><label>NAME</label>
<INPUT TYPE=”TEXT” NAME=”name”><BR><label>PASSWORD</label>
<INPUT TYPE=”PASSWORD” NAME=”PSWRD1”MAXLENGTH=16><BR> 
<textarea name=”txtarea”></textarea><INPUT TYPE=”BUTTON” NAME=”BUTTON1” VALUE=”CLICK”><BR><INPUT TYPE=”SUBMIT” NAME=”SUBMIT1” VALUE=”SUBMIT”><BR><INPUT TYPE=”HIDDEN” NAME=”HIDDEN1” VALUE=”HDVALUE”><BR><label>ACCEPT</label><INPUT TYPE=”radio” NAME=”radio1”VALUE=”accept”><BR><label>REJECT</label><INPUT TYPE=”radio” NAME=”radio2”VALUE=”reject”><BR><label>JAN</label><INPUT TYPE=”CHECKBOX” NAME=”CKECKBOX1”><BR><label>FEB</label><INPUT TYPE=”CHECKBOX” NAME=”CKECKBOX2”CHECKED><BR><INPUT TYPE=”RESET” NAME=”RESET1” VALUE=”RESET YOUR PAGE”><BR><br><select name=”select”> 
<option>VB</option><option>VFP</option> 
<option>C++</option><option>SIMULA</option>
 <option>JAVA</option><option>C</option>
 <option>LISP</option></select><br><br><br><select name=”select”> 
<option>HTML</option><option>XML</option> 
<option>ASP.NET</option><option selected>C#.NET</option>
 <option>JSP.NET</option><option>J2SE</option> 
<option>ADO.NET</option></select> 
</FORM></BODY></HTML>

SESSION - 7
EXERCISE -  2 :    Create a simple form accepting : Name, Enrolment Number, and Submit Button. Ans:
<html><head>SIMPLE FORM IGNOU</head><body> 
   <form name “frm1”><label>Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
  <input type “text”size=20></input><br> 
  <label>Enrolment Number</label>
  <input type “text” size=20></input><br>
   <input type=”submit” value=”submit”></input></form>
 </body></html>
 
SESSION - 8
EXERCISE -  1 :   Design a Web Page, which is like 'compose' page of e-mail ?
Ans:
<html><head>COMPOSE PAGE</head><body><form name=”form1” method=”post” action=””>
 <p>To &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=”text”name=”textfield”> </p><p>Subect <input name=”textfield2” type=”text” size=”50”> </p><p>Message</p><p> 
<textarea name=”textarea” cols=”50”></textarea></p><p>
<input type=”submit” name=”Submit” value=”Send”></p> 
</form> 
</body>
</html>
SESSION - 8
EXERCISE -  2 :  Which element is used to accept large text inputs from user ? Ans: TEXTAREA(<TEXTAREA></TEXTAREA>) accepts large text inputsfrom user. 

SESSION - 8
EXERCISE -  3 : Write a code to create a Web page having radio buttons labeled as name of colours. clicking on each radio button should change the colour of the Web Page.Ans:
<html><head>HEADING</head><body>
    <script language=”JavaScript”>function colors(col){switch(col){case ‘red’:document.bgColor=”#FF0000”; break;case ‘blue’:document.bgColor=”#0000FF”; break;case ‘green’:document.bgColor=”#00FF00”; break;}}</script><form name=”form1” method=”post” action=””>
<p> 
    <label><input type=”radio” name=”Colors” value=”radio” onClick=”colors(‘red’)”>Red</label><br>
    <label><input type=”radio” name=”Colors” value=”radio” onClick=”colors(‘green’)”>Green</label><br>
    <label><input type=”radio” name=”Colors” value=”radio” onClick=”colors(‘blue’)”>Blue</label><br> 
</p></form> 
</body></html>
SESSION - 9
EXERCISE -  1 :What is the purpose of hidden field ?
Ans: Hidden field are place to store values which should not be displayed in the page. The hidden values will be used in some operation such as search.
SESSION - 9
EXERCISE -  2 : Create a form accepting the values : Name, Address, Marks in 10+2, Graduation & Post Graduation.
Ans:
<html><head></head><body>
     <form name “frm1”><label>Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
        <input type “text” size=20></input><br><label>Address</label><br><textarea name=”txtarea” rows=5 cols=25></textarea><br><label>Marks in 10+2</label>
     <input type “text” size=10 maxlength=5></input><br><br><label>Marks in Graduation</label>
    <input type=”text” size=10maxlength=5></input><br><label>Marks in Post Graduation</label>
    <input type=”text” size=10maxlength=5></input><br><input type=”submit” value=”submit”>
     </input></form> 
</body></html>
SESSION - 9
EXERCISE -  3 : Which element is used to display a drop down list box ?
Ans. : SELECT is used to display the drop down list box
 <SELECT name=”select” size=”1”><option>Edit plus</option><option>Word pad</option><option>Note pad</option></SELECT>

SESSION - 10
EXERCISE -  1 :Design Series of ........................ Page 3 (Hint you may use hiden fields)
Ans:
SESSION -10
EXERCISE -  2 : Create a Web page; divide that page into two frames. In one frame create two links that will display different HTML forms in the other frame.Ans:  
<html><head>HEAD</head>
 <frameset rows="*" cols="25%,75%" framespacing="0"" frameborder="yes" border="6"> 
<frame src="frm5.html" name="topFrame" > 
<frame src="frm6.html" name="mainFrame">
</frameset><noframes><body></body></noframes>
</html>

Page That -- containing link  

<html><head></head><body bgcolor="#CCCCCC"><p><a href="frm7.html" target="mainFrame">Page1</a> </p><p><a href="Img1.jpg" target="mainFrame">Page2</a> </p></body></html>
 --------------------------------------------------------------------------------
--------------------------------------------------------------------------------