1 Introduction to JavaScript 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
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
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.
FrontPage 2003 Web Fundamentals Web Site Design. World Wide Web System based on Hypertext Transfer Protocol (HTTP) Provides access to information Information.
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.
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.
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.
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.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
HTML Comprehensive Concepts and Techniques Intro Project Introduction to HTML.
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.
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.
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.
HTML Structure & syntax
CS117 Introduction to Computer Science II Lecture 1 Introduction to WWW and HTML Instructor: Li Ma Office: NBC 126 Phone: (713)
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
Web Programming : Building Internet Applications Chris Bates CSE :
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 Page Design Introduction. The ________________ is a large collection of pages stored on computers, or ______________ around the world. Hypertext ________.
JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
1 Chapter 01: Introduction by Tharith Sriv. This course covers the following topics:  Hypertext Markup Language (HTML)  Cascading Style Sheets  JavaScript.
Web Based Systems for Engineering and Management Professors Iris D. Tommelein and Arpad Horvath Fall 2000.
The Web Wizard’s Guide to HTML Chapter One World Wide Web Basics.
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.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Chapter 1 Introduction to JavaScript JavaScript, Third Edition.
Introduction to HTML Simple facts yet crucial to beginning of study in fundamentals of web page design!
Introduction to the World Wide Web & Internet CIS 101.
Tutorial 1 Getting Started with Adobe Dreamweaver CS5.
Web Page Programming Terms. Chapter 1 Objectives Describe Internet and Understand Key terms Describe World Wide Web and its Key terms Identify types and.
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.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Project 1 Introduction to HTML.
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.
Introduction to HTML Simple facts yet crucial to beginning of study in fundamentals of web page design!
An Introduction to JavaScript
An Introduction to HTML Pages
4.01 How Web Pages Work.
Web Programming : Building Internet Applications Chris Bates CSE :
Presentation transcript:

1 Introduction to JavaScript Programming, HTML, and JavaScript

2 Topics Programming, HTML, and JavaScript Programming, HTML, and JavaScript About the World Wide WebAbout the World Wide Web Uses of JavaScriptUses of JavaScript About Hypertext Markup LanguageAbout Hypertext Markup Language How to creating an HTML documentHow to creating an HTML document About the JavaScript programming languageAbout the JavaScript programming language About logic and debuggingAbout logic and debugging

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

4 Programming, HTML, and JavaScript The World Wide Web The World Wide Web Hypertext linksHypertext links Contain reference to locate and open specific documents Contain reference to locate and open specific documents Hypertext Markup Language (HTML)Hypertext Markup Language (HTML) Language used to design web pages (documents) Language used to design web pages (documents) Web BrowserWeb Browser Program that displays HTML documents Program that displays HTML documents

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

6 Programming, HTML, and JavaScript The World Wide Web The World Wide Web Uniform Resource Locator (URL)Uniform Resource Locator (URL) Consists of 4 parts: Consists of 4 parts: Protocol  Hyper Text Transfer Protocol (HTTP)Protocol  Hyper Text Transfer Protocol (HTTP) Domain Name  or Internet Protocol (IP) addressDomain Name  or Internet Protocol (IP) address DirectoryDirectory FilenameFilename Specific document filename Specific document filename index.(s)htm(l) or default.(s)htm(l) index.(s)htm(l) or default.(s)htm(l)

7

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

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

10

11

12

13 Programming, HTML, and JavaScript Hypertext Markup Language Hypertext Markup Language HTML DocumentHTML Document Text document that contains: Text document that contains: Tags  formatting instructionsTags  formatting instructions Text to be displayedText to be displayed Document is parsed or rendered by browser Document is parsed or rendered by browser

14 Programming, HTML, and JavaScript Hypertext Markup Language Hypertext Markup Language HTML DocumentHTML Document Tags Tags Enclosed in brackets Enclosed in brackets Generally consist of:Generally consist of: Opening tags Opening tags Closing tags Closing tags Text contained between the opening and closing tags are formatted according to tag instructionsText contained between the opening and closing tags are formatted according to tag instructions

15 Programming, HTML, and JavaScript Hypertext Markup Language Hypertext Markup Language HTML DocumentHTML Document Tags Tags All HTML documents begin with tag and end with All HTML documents begin with tag and end with HTML is not case sensitiveHTML is not case sensitive

16 Programming, HTML, and JavaScript Hypertext Markup Language Hypertext Markup Language HTML DocumentHTML Document Tag Attributes Tag Attributes Used to configure tagsUsed to configure tags Placed before closing bracket of opening tagPlaced before closing bracket of opening tag some text some text

17

18

19

20 Programming, HTML, and JavaScript Hypertext Markup Language Hypertext Markup Language HTML DocumentHTML Document Web browser only acknowledges text and valid tags Web browser only acknowledges text and valid tags Web browser ignores non-printing characters Web browser ignores non-printing characters Spaces, tabs, carriage returnsSpaces, tabs, carriage returns Must use valid tags or special character codes to accomplish this: Must use valid tags or special character codes to accomplish this: Non-breaking space  Non-breaking space 

21

22

23 Programming, HTML, and JavaScript Creating an HTML Document Creating an HTML Document Text editor (text)Text editor (text) Notepad, WordPad Notepad, WordPad Word Processor (that can create text files)Word Processor (that can create text files) Word Word HTML Editor (WYSIWYG)HTML Editor (WYSIWYG) FrontPage, PageMill FrontPage, PageMill HTML Converters (WYSIWYG)HTML Converters (WYSIWYG) Word, PowerPoint Word, PowerPoint

24

25 Programming, HTML, and JavaScript The JavaScript Programming Language The JavaScript Programming Language Scripting LanguagesScripting Languages Executed by an interpreter contained within the web browser (scripting host) Executed by an interpreter contained within the web browser (scripting host) Interpreter uses a scripting engine Interpreter uses a scripting engine Converts code to executable format each time it runsConverts code to executable format each time it runs Converted when browser loads web documentConverted when browser loads web document

26 Programming, HTML, and JavaScript The JavaScript Programming Language The JavaScript Programming Language JavaScriptJavaScript Originally called LiveScript when introduced in Netscape Navigator Originally called LiveScript when introduced in Netscape Navigator In Navigator 2.0, name changed to JavaScript In Navigator 2.0, name changed to JavaScript Current version 1.5 Current version 1.5 JScriptJScript MS version of JavaScript MS version of JavaScript Current version 5.5Current version 5.5

27 Programming, HTML, and JavaScript The JavaScript Programming Language The JavaScript Programming Language ECMAScriptECMAScript International, standardized version (Edition 3) International, standardized version (Edition 3) Both versions (JavaScript and JScript) conform to the standard Both versions (JavaScript and JScript) conform to the standard Although both have proprietary extensionsAlthough both have proprietary extensions Focus of this text Focus of this text

28 Programming, HTML, and JavaScript The JavaScript Programming Language The JavaScript Programming Language JavaScriptJavaScript Two formats: Two formats: Client-sideClient-side Program runs on client (browser) Program runs on client (browser) Server-sideServer-side Program runs on server Program runs on server Proprietary to web server platform Proprietary to web server platform

29

30 Programming, HTML, and JavaScript Logic and Debugging Logic and Debugging SyntaxSyntax Rules of the language Rules of the language LogicLogic Order of execution of various parts of the program Order of execution of various parts of the program

31 Programming, HTML, and JavaScript Logic and Debugging Logic and Debugging Syntax errorSyntax error Misuse of syntax Misuse of syntax e.g., typing fer instead of fore.g., typing fer instead of for Logic errorsLogic errors Unintended operation of program Unintended operation of program e.g., Infinite loope.g., Infinite loop

32 Programming, HTML, and JavaScript Logic and Debugging Logic and Debugging DebuggingDebugging Tracing and resolving errors in a program Tracing and resolving errors in a program Coined by Admiral Grace Hopper Coined by Admiral Grace Hopper Moth short-circuited a relayMoth short-circuited a relay “bug” in the system “bug” in the system Removed it  system “debugged”Removed it  system “debugged” Not an exact science Not an exact science