2440: 211 Interactive Web Programming Introduction to the Internet & the World Wide Web.

Slides:



Advertisements
Similar presentations
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Advertisements

 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
History Leading to XHTML
Project 1 Introduction to HTML.
Appendix A Introduction to Web Development PHP Programming with MySQL
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
Chapter Concepts Review Markup Languages
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Tutorial 1 Developing a Basic Web Page
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Introduction to Web Interface Technology (CSE2030)
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
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.
Tutorial 11 Creating XML Document
Developing a Basic Web Page with HTML
1st Project Introduction to HTML.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
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.
Web Design Basic Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Creating a Basic Web Page
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.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Introduction to Web Development
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
CSCE Chapters 1 and 2 CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department of Computer Science & Engineering.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
Sheet 1XML Technology in E-Commerce 2001Lecture 1 XML Technology in E-Commerce Lecture 1 WWW, HTML, CSS, XML, Meta-modeling.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
JavaScript Tutorial 1 - Introduction to JavaScript WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Introduction to JavaScript (NON.
XHTML1 Introduction to Web Pages Chapter 1. XHTML2 Objectives In this chapter, you will: Learn about the World Wide Web (WWW) Create simple Hypertext.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
JavaScript Tutorial 1 - Introduction to JavaScript1 Tutorial 1 Introduction to JavaScript Section A – Programming, HTML, and JavaScript.
Web Application Programming Presented by: Mehwish Shafiq.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Terminology Intro to Web. North Lake College 2 by Sean Griffin HTML vs. XHTML HTML: Hypertext Markup Language XHTML: eXtensible Hypertext Markup Language.
Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Chapter 1 Introduction to JavaScript JavaScript, Third Edition.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Introduction to the World Wide Web & Internet CIS 101.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
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.
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
Tutorial 9 Working with XHTML
Presentation transcript:

2440: 211 Interactive Web Programming Introduction to the Internet & the World Wide Web

Introduction to Web Design2 World Wide Web  Also called the Web  A resource on the Internet to access data  Origins started at around 1989 at the European particle physics (nuclear) research laboratory (CERN) near Geneva, Switzerland  By Timothy Berners-Lee and other researchers  Hypertext was used to organize interconnected data sources to be accessed through hyperlinks

Introduction to Web Design3 Web Terminologies  Link (hyperlink or hypertext link) – text, graphic, or other Web elements that connects to additional data on the Web  Web Page – a document on the Web  Uniform Resource Locator (URL) - a unique address used to identify documents on the Web  Web Browser – software for displaying Web pages  E.g. Mosaic, Navigator, Internet Explorer, Mozilla, Opera  Web server – makes Web pages available to the Web  HyperText Transfer Protocol (HTTP) – program used to help transfer files over the Web  HyperText Markup Language (HTML) – the language used to define the structure and content of Web pages

Introduction to Web Design4 HTML  HTML (HyperText Markup Language)  Used to be the heart of every Web page  A derivative of SGML (Standard Generalized Markup Language)  SGML is an international standard for representing text in an electronic form for exchanging documents independently

Introduction to Web Design5 XML  XML (eXtensible Markup Language)  A set of guidelines for delimiting text through a system of tags  Follows rigid guidelines

Introduction to Web Design6 XHTML  eXtensible HyperText Markup Language  Slowly replacing HTML  Combines the strict rules and syntax guidelines of XML (eXtensible Markup Language) with HTML

HTML & XHTML  HTML versions 1.0, 2.0, 3.0, 3.2, 4.01 released from 1989 through 1999  XHTML versions 1.0, 1.1 released in 2001, 2002 respectively  XHTML version 2.0 was discontinued  HTML 5.0 and XHTML 5.0 in development  HTML – by Web Hypertext Application Technology Working Group (WHATWG) led by Ian Hickson (from Google, formerly of Opera Software)  XHTML 5.0 – by an HTML Working Group Introduction to Web Design7

8 Versions of HTML & XHTML

Introduction to Web Design9 HTML Page Format  HTML pages follow a basic structure as follows

Introduction to Web Design10 XHTML Page Format  XHTML pages follow a basic structure as follows <!DOCTYPE html public “-//W3C//DTD XHTML 1.0 Stric//ENhttp://

Introduction to Web Design11 XHTML Page Format…  Below are the explanations to the XHTML page structure 1.XML declaration – identifies document as XHTML document 2.Document Type Definition (DTD) – URL points to a file that outlines the available elements, attributes, and usage 3.Name Space – URL points to a files that gives detailed information about the particular XML vocabulary (XHTML)

Introduction to Web Design12 DTDs - Transitional – supports many of the presentational features of HTML, including the deprecated elements and attributes -Best used for older documents with deprecated features - Frameset – used for documents containing frames, and also supports deprecated elements and attributes - Strict – does not allow any presentational features or deprecated HTML elements and attributes -Does not support frames or inline frames -Best used for documents that need to strictly conform to the latest standards

Introduction to Web Design13 Creating Valid XHTML Documents  The DTD used depends on the content of the document and the needs of your users  To support old browsers, use the transitional DTD  To support old browsers in a framed Web site, use the frameset DTD  To support more current browsers and to weed out any use of deprecated features, use the strict DTD

Introduction to Web Design14 Creating a Valid Document  Elements not allowed under the strict DTD:  applet- iframe  basefont- isindex  center- menu  dir- noframes  font- s  frame- strike  frameset- u

Introduction to Web Design15 Attributes Prohibited in the Strict DTD

Introduction to Web Design16 Required XHTML Attributes

Introduction to Web Design17 Inserting the DOCTYPE Declaration The DOCTYPE declaration tells XML parsers what DTD is associated with the document The DOCTYPE declaration tells XML parsers what DTD is associated with the document

Introduction to Web Design18 The XHTML Namespace A namespace is a unique identifier for elements and attributes originating from a particular document type (like XHTML or MathML) A namespace is a unique identifier for elements and attributes originating from a particular document type (like XHTML or MathML) Two types of namespaces: Two types of namespaces: -Default: applied to a root element and any element within it - - New Perspectives on HTML and XHTML, Comprehensive18

Introduction to Web Design19 The XHTML Namespace Local: applies to only select elements Local: applies to only select elements  Each element in the local namespace is marked by a prefix attached to the element name  xmlns: prefix=“namespace”  Identify any element belonging to that namespace by modifying the element name in the tag:  prefix:element

Introduction to Web Design20 Setting the XHTML Namespace To set XHTML as the default namespace for a document, add the xmlns attribute to the html element with the following value: To set XHTML as the default namespace for a document, add the xmlns attribute to the html element with the following value:   New Perspectives on HTML and XHTML, Comprehensive20

Introduction to Web Design21 Using Style Sheets and XHTML Parsed character data (PCDATA) is text parsed by a browser or parser Parsed character data (PCDATA) is text parsed by a browser or parser Unparsed character data (CDATA) is text not processed by the browser or parser Unparsed character data (CDATA) is text not processed by the browser or parser – A CDATA section marks a block of text as CDATA so that parsers ignore any text within it New Perspectives on HTML and XHTML, Comprehensive21

Introduction to Web Design22 HTML vs. XHTML  Some major differences between HTML and XHTML include the following:  All element attributes names are in lowercases  E.g. instead of  E.g. instead of  All attribute values must be contained within single or double quotes  E.g. instead of  E.g. instead of  All nonempty elements must have a closing tag  E.g. XHTML instead of HTML  All empty tags should be written with a space and a / symbol at the end of the tag  E.g. instead of  E.g. instead of

Introduction to Web Design23 HTML vs. XHTML

Introduction to Web Design24 Creating a Well-Formed Document  XHTML documents must also include a single root element that contains all other elements  For XHTML, that root element is the html element  Attribute minimization is when some attributes lack attribute values  XHTML doesn’t allow attribute minimization

Introduction to Web Design25 File-Naming Conventions  XHTML is much more restrictive  The following restrictions relate to file- naming conventions:  Do not use spaces  Avoid capital letters  Avoid illegal characters

Introduction to Web Design26 Attribute minimization in HTML and XHTML

Introduction to Web Design27 CSS  CSS (Cascading Style Sheet)  Used for many different purposes  Used mainly to separate presentation from the structure of a page  Presentation – “looks” of a page  Structure – “meaning” of a page’s content

Introduction to Web Design28 CSS Versions  CSS1 (1996) – introduced styles for:  Fonts  Text  Color  Background  Block-level elements  CSS2 (1998) – added support for:  Positioning  Visual formatting  Media types  Interfaces  CSS3 (still in development)

Introduction to Web Design29 DHTML  DHTML (Dynamic HTML)  A collection of different technologies including:  XHTML  JavaScript  DOM (Document Object Model)  CSS

Introduction to Web Design30 JavaScript  Developed by Netscape in 1996  Has become almost as popular as HTML  Has nothing to do with the Java Programming Language  But Netscape licensed the name from Sun Microsystems in hopes of increasing acceptance of the new scripting protocol

Introduction to Web Design31 Web Application  Web site that delivers dynamic data  Other names include:  Data-driven  Database-driven  Dynamic sites  Involves tools like:  Database  Server-side scripting – such as like Active Server Pages (ASP), Java Server Pages (JSP), ASP.NET, ColdFusion, PHP, etc

Introduction to Web Design32 JavaScript  A client-side scripting language  Language that runs (interpreted) on a local Web browser  An interpreter executes the language with a scripting engine  Enables interactivity on Web pages  Developed by Netscape in 1996  First introduced in the Netscape Navigator browser as LiveScript  Different from the Java programming language  Microsoft developed a version of JavaScript called JScript for its Internet Explorer browser  European Computer Manufacturers Association (ECMA) – developed a standard called ECMAScript to avoid the differences in commands between JavaScript and Jscript  Some Jscript commands cannot be executed on the Navigator browser  Some JavaScript commands cannot be executed on the Internet Explorer browser

Introduction to Web Design33 JavaScript vs. Java  Below is a comparison between JavaScript and Java JavaScriptJava An interpreted language A compiled language Requires a text editor Requires a Java Developers Kit (JDK) for create applets Requires a browser that can interpret code Requires a Java Virtual Machine (JVM) or interpreter to run applets Program files are integrated with HTML/XHTML code Program files are distinct from the HTML/XHTML code Source code is accessible to the user Source code is hidden from the user Simpler, requiring less programming knowledge and experience Powerful, requiring programming knowledge and experience Object-based language Object-oriented language

Introduction to Web Design34 Versions of JavaScript  JavaScript 1.0 (1995)  JavaScript 1.1 (1996)  JavaScript 1.2 (1997)  JavaScript 1.3 (1998)  JavaScript 1.5 (2001)  Both JScript 5.5 and JavaScript 1.5 conform to ECMAScript 3  Web browsers still refer to ECMAScript as JavaScript

Introduction to Web Design35 Web Application  Web site that delivers dynamic data  Uses resources like:  Client-side scripting  Server-side scripting  Databases

Introduction to Web Design36 Client-Side Scripting  Scripting language that runs on a local Web browser  Examples  JavaScript – by Netscape  JScript – by Microsoft Corporation  ECMAScript – standards by ECMA  VBScript – by Microsoft Corporation

Introduction to Web Design37 Server-Side Scripting  Scripting language that executes on a Web server  Examples:  Active Server Pages (ASP) – uses JavaScript or VBScript  ASP.NET – uses C# or Visual Basic  Java Server Pages – uses Java  PHP: HyperText Preprocessor (PHP) – syntax borrowed from C, Java & Perl  ColdFusion  Common Gateway Interface (CGI) – mostly with Perl  Perl – has features from C, BASIC, etc

Introduction to Web Design38 Databases  A collection of information about related entities  Entity (relation or table) – a set of records  Record (tuple or row) – a collection of fields  Field (attribute or column) – a property or characteristic of an entity  Relationship – an association between entities  Defined and manipulated using the Structured Query Language (SQL) on DataBase Management Systems (DBMS)  SQL – the universal language for database definition, and management  DBMS – the software for managing databases