JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript.

Slides:



Advertisements
Similar presentations
Introduction to JavaScript
Advertisements

4.01 How Web Pages Work.
The Web Warrior Guide to Web Design Technologies
Project 1 Introduction to HTML.
Appendix A Introduction to Web Development PHP Programming with MySQL
Web Forms: Web Pages with Server Controls. 2 Objectives Understand the background of the Internet, and the notions of packet switching and a stateless.
The Internet and the WWW What’s the difference between the Internet and the World Wide Web (WWW)? Or are they the same thing? The Internet and the WWW.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
1 Introduction to JavaScript Programming, HTML, and JavaScript.
1 Software Testing and Quality Assurance Lecture 32 – SWE 205 Course Objective: Basics of Programming Languages & Software Construction Techniques.
Chapter 1 Introduction to Web Development. 2 Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Tutorial 1: Introduction to JavaScript JavaScript - Introductory.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
Computer Science 103 Chapter 2 HyperText Markup Language (HTML)
1st Project Introduction to HTML.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Introduction to Web Development
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
The Internet Writer’s Handbook 2/e Introduction to World Wide Web Terms Writing for the Web.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
2440: 211 Interactive Web Programming Introduction to the Internet & the World Wide Web.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Introduction to Computers Section 8A. home How the Internet Works Anyone with access to the Internet can exchange text, data files, and programs with.
HTML Structure & syntax
Introduction to World Wide Web Authoring © Directorate of Information Systems and Services University of Aberdeen, 1999 IT Training Workshop.
JavaScript Tutorial 1 - Introduction to JavaScript WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Introduction to JavaScript (NON.
Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Introducing XHTML: Module A: Web Design Basics.
Introduction to the Internet and HTML. Objectives Students develop an understanding of the origins of the internet Students will be able to identify the.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Schedule Introduction to Web & Database Integration Tools and Resources HTML and Styles Forms and Client-Side Scripts DB Engines Forms Processing and Server-Side.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
HTML – The Basics COE 201- Computer Proficiency. The Internet The World Wide Web ▫Also known as the Web ▫Created in 1989  European Laboratory for Particle.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Chapter 1 Introduction to JavaScript JavaScript, Third Edition.
Introduction to the World Wide Web & Internet CIS 101.
Javascript ECMA Script. Scripting Languages Executed by an interpreter A program that reads & runs commands;advanced enough to be a lang Parsed when.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
Chapter 1 Introduction to JavaScript.  Study the history of the World Wide Web  Work with well-formed Web pages  Learn about Web development  Learn.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Introduction to HTML Section A – Programming, HTML
Introducing XHTML: Module A: Web Design Basics
Introducing XHTML: Module A: Web Design Basics
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
Chapter 27 WWW and HTTP.
Web Page Concept and Design :
An Introduction to JavaScript
4.01 How Web Pages Work.
Presentation transcript:

JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript

JavaScript Tutorial 1 - Introduction to JavaScript2 Tutorial 1A Topics Section A – Programming, HTML, and JavaScript –About the World Wide Web –Uses of JavaScript –About Hypertext Markup Language –How to create an HTML document –About the JavaScript programming language –About logic and debugging

JavaScript Tutorial 1 - Introduction to JavaScript3 Programming, HTML, and JavaScript The World Wide Web –Created in 1989 European Laboratory for Particle Physics (Geneva Switzerland) –Purpose Provide an easy way to access cross- referenced documents that exist on the internet

JavaScript Tutorial 1 - Introduction to JavaScript4 Programming, HTML, and JavaScript The World Wide Web –Hypertext links Contain reference to locate and open specific documents –Hypertext Markup Language (HTML) Language used to design web pages (documents) –Web Browser Program that displays HTML documents

JavaScript Tutorial 1 - Introduction to JavaScript5 Programming, HTML, and JavaScript The World Wide Web –Uniform Resource Locator (URL) A type of Uniform Resource Identifier (URI) –Identifies names and addresses on the WWW A unique identifier for a web document –e.g., a telephone number or mailing address

JavaScript Tutorial 1 - Introduction to JavaScript6 Programming, HTML, and JavaScript The World Wide Web –Uniform Resource Locator (URL) Consists of 4 parts: –Protocol  Hyper Text Transfer Protocol (HTTP) –Domain Name  or Internet Protocol (IP) address –Directory –Filename »Specific document filename »index.(s)htm(l) or default.(s)htm(l)

JavaScript Tutorial 1 - Introduction to JavaScript7

8 Programming, HTML, and JavaScript JavaScript’s role on the Web –HTML Purpose  tell the browser how a document should appear Static  can view or print (no interaction)

JavaScript Tutorial 1 - Introduction to JavaScript9 Programming, HTML, and JavaScript JavaScript’s role on the Web –JavaScript Programming Language Developed by Netscape for use in Navigator Web Browsers Purpose  make web pages (documents) more dynamic and interactive –Change contents of document, provide forms and controls, animation, control web browser window, etc.

JavaScript Tutorial 1 - Introduction to JavaScript10

JavaScript Tutorial 1 - Introduction to JavaScript11

JavaScript Tutorial 1 - Introduction to JavaScript12 Programming, HTML, and JavaScript HTML: static display of information Scripts: small programs that allow interactivity. Languages: JavaScript, Jscript, VBScript to javascript

JavaScript Tutorial 1 - Introduction to JavaScript13 Programming, HTML, and JavaScript Hypertext Markup Language –HTML Document Text document that contains: –Tags  formatting instructions –Text to be displayed Document is parsed or rendered by browser

JavaScript Tutorial 1 - Introduction to JavaScript14 Programming, HTML, and JavaScript Hypertext Markup Language –HTML Document Tags –Enclosed in brackets –Generally consist of: »Opening tags »Closing tags –Text contained between the opening and closing tags are formatted according to tag instructions

JavaScript Tutorial 1 - Introduction to JavaScript15 Programming, HTML, and JavaScript Hypertext Markup Language –HTML Document Tags –All HTML documents begin with tag and end with –HTML is not case sensitive

JavaScript Tutorial 1 - Introduction to JavaScript16 Programming, HTML, and JavaScript Hypertext Markup Language –HTML Document Tag Attributes –Used to configure tags –Placed before closing bracket of opening tag » some text

JavaScript Tutorial 1 - Introduction to JavaScript17

JavaScript Tutorial 1 - Introduction to JavaScript18

JavaScript Tutorial 1 - Introduction to JavaScript19

JavaScript Tutorial 1 - Introduction to JavaScript20 Programming, HTML, and JavaScript The JavaScript Programming Language –Scripting Languages Executed by an interpreter contained within the web browser (scripting host) Interpreter uses a scripting engine –Converts code to executable format each time it runs –Converted when browser loads web document

JavaScript Tutorial 1 - Introduction to JavaScript21 Programming, HTML, and JavaScript The JavaScript Programming Language –JavaScript Originally called LiveScript when introduced in Netscape Navigator In Navigator 2.0, name changed to JavaScript Current version 1.5 –JScript MS version of JavaScript –Current version 5.5

JavaScript Tutorial 1 - Introduction to JavaScript22 Programming, HTML, and JavaScript The JavaScript Programming Language –ECMAScript International, standardized version (Edition 3) Both versions (JavaScript and JScript) conform to the standard –Although both have proprietary extensions Focus of this text

JavaScript Tutorial 1 - Introduction to JavaScript23 Programming, HTML, and JavaScript The JavaScript Programming Language –JavaScript Two formats: –Client-side »Program runs on client (browser) –Server-side »Program runs on server »Proprietary to web server platform

JavaScript Tutorial 1 - Introduction to JavaScript24

JavaScript Tutorial 1 - Introduction to JavaScript25 Programming, HTML, and JavaScript Logic and Debugging –Syntax Rules of the language –Logic Order of execution of various parts of the program

JavaScript Tutorial 1 - Introduction to JavaScript26 Programming, HTML, and JavaScript Logic and Debugging –Syntax error Misuse of syntax –e.g., typing fer instead of for –Logic errors Unintended operation of program –e.g., Infinite loop

JavaScript Tutorial 1 - Introduction to JavaScript27 Programming, HTML, and JavaScript Logic and Debugging –Debugging Tracing and resolving errors in a program Coined by Admiral Grace Hopper –Moth short-circuited a relay »“bug” in the system –Removed it  system “debugged” Not an exact science