CMPT 241 - Web Programming Introduction and Basic HTML.

Slides:



Advertisements
Similar presentations
4.01 How Web Pages Work.
Advertisements

Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Project 1 Introduction to HTML.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
Layer 7- Application Layer
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
CIS101 Introduction to Computing
The Internet and the World Wide Web. Una DooneyThe Internet and WWWSlide 2 What is the Internet? A collection of networks (LANS and WANS) around the world.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
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.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
CMSC389P: Introduction to PHP, MySQL and Apache
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.
Chapter 14 Introduction to HTML
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
COMPUTERS AND INFORMATION SYSTEMS HTML. How the Web Works To access a web site  Enter its address (URL) in the address box of your browser 
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.
CSE 154 LECTURE 1: BASIC HTML AND CSS. The Internet Wikipedia: a connection.
The WWW Willem Visser RW334. Internet A global network of networks connecting computers using the internet protocol.
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
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.
Chapter 1: Introduction to Web
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
CS117 Introduction to Computer Science II Lecture 1 Introduction to WWW and HTML Instructor: Li Ma Office: NBC 126 Phone: (713)
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
CIS 250 Advanced Computer Applications Internet/WWW Review.
Introduction to web development and HTML MGMT 230 LAB.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
HTML BTEC National in Computing Section5. Create Information “HTML: defining HTML, discussing HTML uses and demonstrating HTML basics, HTML structure…..
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
CSE 154 LECTURE 1: BASIC HTML AND CSS. The Internet Wikipedia: a connection.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
JavaScript and Ajax (Internet Background) Week 1 Web site:
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)
CS 380 WEB PROGRAMMING Instructor: Xenia Mountrouidou CS380 1.
1 UNIT 13 The World Wide Web. Introduction 2 Agenda The World Wide Web Search Engines Video Streaming 3.
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Website Design and Construction Services and Standards.
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.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
4.01 How Web Pages Work.
Introduction to the Internet
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Chapter 10: Web Basics.
CISC103 Web Development Basics: Web site:
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
CISC103 Web Development Basics: Web site:
Introduction and Basic HTML
Traditional Internet Applications
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Presentation transcript:

CMPT Web Programming Introduction and Basic HTML

What is the internet? A collection of computer networks that use the Internet Protocol (IP) to exchange data layers of communication protocols: IP → TCP/UDP → HTTP/FTP/POP/SMTP/SSH... 2

Brief history (cont.) WWW created in by Tim Berners-Lee Popular web browsers released: ▫Netscape 1994 ▫IE 1995 Amazon.com opens in 1995 Google January 1996 Wikipedia launched in 2001 MySpace opens in 2003 Facebook February

People and organizations Internet Engineering Task Force (IETF): internet protocol standards Internet Corporation for Assigned Names and Numbers (ICANN): decides top-level domain names World Wide Web Consortium (W3C): web standards 4

Internet Protocol (IP) Simple protocol for data exchange between computers each device has a 32-bit IP address written as four 8-bit numbers (0-255) 5 find out your local IP address: in a terminal, type: ipconfig (Windows) or ifconfig (Mac/Linux) other site’ IP?

Transmission Control Protocol (TCP) Adds multiplexing, guaranteed message delivery on top of IP Multiplexing: multiple programs using the same IP address Port: a number given to each program or service ▫port 80: web browser (port 443 for secure browsing) ▫port 25: ▫port 22: ssh Some programs (games, streaming media programs) use simpler UDP protocol instead of TCP 6

Web Servers Web server: software that listens for web page requests ▫Apache (all platforms) ▫Microsoft Internet Information Server (IIS) 7

Uniform Resource Locator (URL)URL an identifier for the location of a document on a web site a basic URL: ~~~~ ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ protocol host path

More advanced URLs anchor: jumps to a given section of a web page oadshttp:// oads ▫fetches index.html then jumps down to part of the page labeled downloads port: for web servers on ports other than the default 80 query string: a set of parameters passed to a web program &start=10http:// &start=10 ▫parameter q is set to "miserable+failure" ▫parameter start is set to 10

Hypertext Transport Protocol (HTTP) Set of commands understood by a web server and sent from a browser Some HTTP commands (your browser sends these internally): ▫GET: download ▫POST: send a web form response 10

HTTP Error Codes When something goes wrong, the web server returns a special "error code" number Common error codes: 11 NumberMeaning 200OK page has moved (permanently or temporarily) 403 you are forbidden to access this page 404page not found 500internal server error

Internet Media (“MIME”) types 12 Sometimes when including resources in a page (style sheet, icon, multimedia object), we specify their type of data

Web Languages Hypertext Markup Language (HTML): used for writing web pages Cascading Style Sheets (CSS): stylistic info for web pages PHP Hypertext Processor (PHP): dynamically create pages on a web server JavaScript: interactive and programmable web pages 13

Hypertext Markup Language (HTML) Describes the content and structure of information on a web page Not the same as the presentation (appearance on screen) Surrounds text content with opening and closing tags Each tag's name is called an element ▫syntax: content ▫example: This is a paragraph 14

Hypertext Markup Language (HTML) Each tag's name is called an element ▫syntax: content ▫example: This is a paragraph Most whitespace is insignificant in HTML (ignored or collapsed to a single space) We will use a newer version called HTML5

Structure of an HTML page HTML is saved with extension.html DOCTYPE tag tells browser to interpret our page's code as HTML Header describes the page Body contains the page’s contents 16 information about the page page contents HTML

Page Title Placed within the head of the page Displayed in web browser’s title bar and when bookmarking the page 17 … HARRY POTTER AND THE DEATHLY HALLOWS - PART 2 … HTML

Paragraph Placed within the body of the page Each p is displayed on its own line with a vertical margin above and below it. 18 … Harry Potter and the Deathly Hallows, the last book in the series, begins directly after the events of the sixth book. Voldemort has completed his ascension to power and gains control of the Ministry of Magic … HTML Harry Potter and the Deathly Hallows, the last book in the series, begins directly after the events of the sixth book. Voldemort has completed his ascension to power and gains control of the Ministry of Magic output

Headings,, … 19 Harry Potter Books Harry Potter and the Philosopher’s Stone HTML Harry Potter Books Harry Potter and the Philosopher’s Stone output Lower level headings should only be used under headings of the next higher level. h1 –h3 display with a size larger than normal text, h4 is the same size as normal, and h5 and h6 display text smaller than normal.

Semantic HTML Choose tags based on what the content is, not how it might look in the browser. Every tag has a meaning. This meaning is related to structure and content, not style! h1 is for top level heading, h2 is for sublevel. These are not for size.

Homework 0 Create your home page ▫not necessary index.html ▫Include your name at least ▫upload it to snoopy.rlc.manhattan.edu ▫It will be served as the “entry point” to your homework and projects me the link by Monday night ▫ to: ▫Subject: Web Programming home page

View your page on the Web: ▫snoopy.rlc.manhattan.edu/~YOUR_ID/snoopy.rlc.manhattan.edu/~YOUR_ID/ ▫snoopy.rlc.manhattan.edu/~YOUR_ID/page.html ▫home.manhattan.edu/~YOUR_ID/home.manhattan.edu/~YOUR_ID/