UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

Similar documents
Introduction to WEB PROGRAMMING

IMY 110 Theme 11 HTML Frames

Training Sister Hicks

1. Setup a root folder for the website 2. Create a wireframe 3. Add content 4. Create hyperlinks between pages and to external websites

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

frameset rows cols <frameset> rows cols

Browser Support Internet Explorer

To assign a name to a frame, add the name attribute to the frame tag. The syntax for this attribute is: <frame src= url name= name />

HTML/CSS Lesson Plans

Beginning HTML. The Nuts and Bolts of building Web pages.

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

JSN PageBuilder 3 Configuration Manual Introduction

INTRODUCTION TO WEB USING HTML What is HTML?

CSC 101: PreLab Reading for Lab #4 More HTML (some of this reading on Tables and Images are based on previous writings of Prof William Turkett)

Joomla! Frontend Editing

Programmazione Web a.a. 2017/2018 HTML5

1. Open any browser (e.g. Internet Explorer, Firefox, Chrome or Safari) and go to

Lecture 14. Introduction to JavaScript. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Portal Recipient Guide. The Signature Approval Process

HTML5 MOCK TEST HTML5 MOCK TEST I

Objective % Select and utilize tools to design and develop websites.

Objectives. Tutorial 8 Designing ga Web Site with Frames. Introducing Frames. Objectives. Disadvantages to Using Frames. Planning Your Frames

Designing the Home Page and Creating Additional Pages

Tutorial 8: Designing a Web Site with Frames

Want to add cool effects like rollovers and pop-up windows?

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

ADOBE Dreamweaver CS3 Basics

Introduction to Web Development

ThingLink User Guide. Andy Chen Eric Ouyang Giovanni Tenorio Ashton Yon

AOS Lab 4 HTML, CSS and Your Webpage

Dreamweaver CS 5.5. University Information Technology Services. Training, Outreach, Learning Technologies, and Video Production

Adding Frames. In This Chapter

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Browser Bugs & Validation

The first sample. What is JavaScript?

What s New in Enterprise Jeff Simpson Sr. Systems Engineer

Introduction to Computer Science (I1100) Internet. Chapter 7

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition

Web Content. Overview. Web Content Mini WYSIWYG Editor

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information.

Internet programming Lab. Lecturer Mariam A. Salih

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

NACStat FAQ s Background Table of Contents

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

11. HTML5 and Future Web Application

PRINTING IN ESCRIBE...2

A Guide to Liv-ex Software Development Kit (SDK)

FIT 100 LAB Activity 3: Constructing HTML Documents

INFS 2150 / 7150 Introduction to Web Development & HTML Programming

Dreamweaver Basics Workshop

Web browsers. 1. Google Chrome - 62% 2. Mozilla Firefox - 15% 3. Internet Explorer - 10% 4. Safari - 5 % 5. Microsoft Edge - 4% 6.

CS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to:

Content Management System (CMS) CMS-2

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

From the Insert Tab (1), highlight Picture (2) drop down and finally choose From Computer to insert a new image

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

introduction to XHTML

Manual Html A Href Javascript Window Open In New

iframe programming with jquery jquery Summit 2011

Flash Ads. Tracking Clicks with Flash Clicks using the ClickTAG

CISC 1600 Lecture 2.4 Introduction to JavaScript

Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013

PRODUCTION GUIDE. Adform Skin (836x x x x x754)

Head First HTLM 5 Programming, Chapter 1: Welcome to Webville. Pages 1-34


8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) What is JavaScript?

Welcome: Thank you: Kai Christian Adam Luca Alessandro David Conor Ruairi Ronan Eoghan Lucas Scott Peter Alex Toby Ethan. Mary Mitchell O Connor, TD

Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

C1 CMS User Guide Orckestra, Europe Nygårdsvej 16 DK-2100 Copenhagen Phone

The Text Editor appears in many locations throughout Blackboard Learn and is used to format text. For example, you can use it to:

Content Management System User Training

Dreamweaver: Web Forms

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Using SQL Reporting Services with isupport

5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

FRONT END DEVELOPER CAREER BLUEPRINT

VTEM SLIDES INSTRUCTION MANUAL COPYRIGHT DISCLAIMER. Instruction Manual FOR INFO, UPDATES, REQUESTS & CONTACT

SOCE Wordpress User Guide

Creating HTML files using Notepad

SAS STUDIO. JUNE 2014 PRESENTER: MARY HARDING Education SAS Canada. Copyr i g ht 2014, SAS Ins titut e Inc. All rights res er ve d.

Revision for Grade 9 in Unit #1&2

Galleries, Sliders & Videos Joomla

Enlargeit! Version 1.1 Operation Manual

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant,

By the end of this section of the practical, the students should be able to:

Programming In Java Prof. Debasis Samanta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Portal Recipient Guide For Virtual Cabinet

GRITS AJAX & GWT. Trey Roby. GRITS 5/14/09 Roby - 1

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

AOS 452 Lab 4: HTML, CSS and Your Webpage

Client Side JavaScript and AJAX

Transitioning Teacher Websites

Lesson 5 Introduction to Cascading Style Sheets

Implementing a chat button on TECHNICAL PAPER

Components in Joomla. Instructor for this Workshop. Web Development. School of Arts and Sciences

Transcription:

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? A 1: A text editor is a program that helps you write plain text (without any formatting) and save it to a file. A good example is the Notepad editor on Windows. Q.2: What do you understand by a web browser? A 2: A browser is an application program with a graphical user interface for displaying HTML files, used to navigate the World Wide Web which provides a way to look at and interact with all the information on the World Wide Web. Q.3: What are the major types of browser available today? A 3: The two most popular browsers are Microsoft Internet Explorer and Firefox. Other major browsers include Google Chrome, Apple Safari and Opera. Q.4: What is the advantage of using Javascript over HTML? A 4: Advantages: a) JavaScript gives HTML designers a programming tool with a very simple syntax. So that the designers can put small snippets of code into their HTML pages. b) JavaScript can put dynamic text into an HTML page. c) can react to events. For eg. a JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element. d) JavaScript can read and change the contents of an HTML element. e) JavaScript can be used to validate data of the form before it is submitted to a server. It saves the server from extra processing. Q.5: What are the steps needed to create and run a simple program using JavaScript? A 5: <html> <head> <title>my Javascript Page</title> </head> <body> <script type= text/javascript > alert( Welcome to my world!!! ); </script> </body> </html> Output: Welcome to my world!!! Example explained How to save and run your first program in JavaScript 1. Open any editor such as notepad and write the program

2. S ave the program with.html extension in a proper folder or subfolder on a drive like C:\JavaScript\myprograms. 3. O pen the web browser like internet explorer or Mozilla Firefox 4. Open the file you have created and saved in step 2, and execute the program. For eg. execute C:\JavaScript\firstprogram.html Where C is the drive, JavaScript is the folder name and firstprogram.html is the name of program which is saved in the JavaScript folder To indicate that the given code is written in JavaScript, you need to place the code within <script> </script> HTML tags. Q. 6: Which attribute of the <script> tag helps you include an external JavaScript file? A 6 : The src attribute specifies the URL of an external script file. Syntax: <script src="url"> Q. 7: What are the three ways in which JavaScript can be included? A 7 : JavaScript can be included into a web page using various approaches including inline code, internal scripts and external JavaScript files. Q. 8: JavaScript is interpreted - what does this imply? A 8: JavaScript is an interpreted computer programming language. a) It was originally implemented as a part of web browser so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the contents of the document. b) JavaScript is not useful as a standalone language, but is designed for easy embedding in other products and applications, such as web browsers. c) JavaScript contains a core set of objects such as Array, Date, Math, and a core set of language elements like operators, control structures, and statements. Q. 9: Explain the role of case sensitivity in JavaScript. A 9: JavaScript is case sensitive i.e., upper case letter and lower case letter has different meaning. For example, the word alert has a lower case a. So, if we type the word with an uppercase A then JavaScript will show an error and the alert box will not be displayed. Q. 10: How to use multiple line comments in Javascript. A 10: Multiline comments begin with /* and ends with */ e.g., /* This is a multi line comment and may continue across multiple lines */

Q. 11. Fill in the blanks (a) A file which ends with.js is an javascript file. (b) JS programs are included within <script> & </script> tag of a HTML document. (c) Generally HTML is preferred for creating content of a web page while CSS is preferred for design of a webpage and JavaScript is preferred for define the interactive elements of a web pae. (d) JavaScript Syntax is a set of rules that define a structured JavaScript. (e) Comments are used to improve the readability of program and will be ignored by the interpreter in JavaScript program.

UNIT 3 SECTION 5 Answer the following questions: Q. 1: What are different types of window Objects? A. 1: The different types of window Objects are: Location object, History object and document object. Q. 2: Explain any three features of Window of window.open. A 2. Three features of Window of window.open are as follows: i. Fullscreen: Specifies if window should be opened in full screen mode. ii. Height: Specifies the height of the window. iii. Location: Specifies if the location bar of the window should be included. Q. 3: What is an event? A. 3: Events are actions that can be detected by JavaScript, and the event object gives information about the event that has occurred. Sometimes we want to execute a JavaScript when an event occurs, such as when a user clicks a button. Q. 4: Write any three location object properties. A. 4: Three location object properties are as follows: i. href: Sets or returns the entire URL. ii. pathname: Sets or returns the path name of a URL iii. protocol: Sets or returns the protocol of a URL Q. 5: Define location object methods. A. 5: Following are the three location object methods: i. assign() Loads a new document ii. reload() Reloads the current document iii. replace() Replaces the current document with a new one Q. 6: Write any two location object methods. A. 6: Following are the two location object methods: i. assign() Loads a new document ii. reload() Reloads the current document Q. 7: Define any history object method. A. 7: go(): Loads a specific URL from the history list Q. 8: Write any property of history object. A. 8: length: Returns the number of URLs in the history list. Q. 9: Explain back() and forward() method of history object. A. 9: back(): Loads the previous URL in the history list forward(): Loads the next URL in the history list Q. 10: What is onerror event? A. 10: onerror: Fires when a JavaScript error occurs. By returning true inside this event, JavaScript errors on the page (if any) are suppressed, with no error messages popping up. Q. 11: What is onfocus event? A. 11: onfocus: Fires when the focus is set on the current window.

Q. 12: What is onload event? A. 12: onload Fires when the page has finished loading, including images. This is a popular event to use to run some JavaScript once everything on the page has loaded/ is available: window.onload=function(){ runsomefunction()} Q. 13: Differentiate between innerwidth and innerheight properties of the Window. A. 13: innerwidth returns the width, in pixels, of the window s viewable content area, which does not include any toolbar, scrollbars etc. whereas innerheight returns the height, in pixels, of the window s viewable content area, which does not include any toolbar, scrollbars etc. Q. 14: What is length property of the Window object. A. 14: length Returns the number of frames contained in the window, which includes IFRAMEs. Q. 15: Write parent property of the Window object. A. 15: parent: Reference to the parent frameset window of the current window, assuming that current window is a frame. Otherwise, it simply refers to current window.