IT350 Web & Internet Programming. Fall 2012

Similar documents
Chapter 4 - Introduction to XHTML: Part 1

CISC 1400 Discrete Structures

Chapter 4 - Introduction to XHTML: Part 1

Internet and New Media (INM)

Introduction to XHTML Pearson Education, Inc. All rights reserved.

Chapter 4. Introduction to XHTML: Part 1

Notes General. IS 651: Distributed Systems 1

HTML HTML. What is HTML? What is Markup? HTML Markup (Tags) Hypertext Markup Language

HTML. IT Engineering I Instructor: Ali B. Hashemi

Course Syllabus COURSE NAME

Announcements. Paper due this Wednesday

HTML Overview. With an emphasis on XHTML

Module 2-1-1: Markup Languages & HTML

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

HTML. Hypertext Markup Language. Code used to create web pages

Html basics Course Outline

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

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

CMPT 165 Unit 2 Markup Part 2

introduction to XHTML

INFS 2150 (Section A) Fall 2018

INTRODUCTION TO WEB USING HTML What is HTML?

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

(from Chapter 5 & 25.6 of the text)

11. HTML5 and Future Web Application

Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

COMPSCI 120 Fall 2017 Review Questions for Midterm #2 Professor William T. Verts

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

What You Will Learn Today

Web Systems & Technologies: An Introduction

Midterm 1 Review Sheet CSS 305 Sp 06

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Java Applets, etc. Instructor: Dmitri A. Gusev. Fall Lecture 25, December 5, CS 502: Computers and Communications Technology

How the Internet Works

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

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

Web Development and HTML. Shan-Hung Wu CS, NTHU

Web Systems & Technologies: An Introduction

CIS 228 (Fall 2011) Exam 1, 9/27/11

Internet Client-Server Systems 4020 A

Bridges To Computing

Introduction to Web Development

GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2 GSLIS Tech Lab Workshop: Mastering TOR Part 2

From administrivia to what really matters

Creating A Web Page. Computer Concepts I and II. Sue Norris

FIT 100 LAB Activity 3: Constructing HTML Documents

HTML Overview formerly a Quick Review

HyperText Markup Language (HTML)

Web Publishing Basics I

Programmazione Web a.a. 2017/2018 HTML5

LING 408/508: Computational Techniques for Linguists. Lecture 14

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

Announcements. 1. Class webpage: Have you been reading the announcements? Lecture slides and coding examples will be posted

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

1.264 Lecture 12. HTML Introduction to FrontPage

The Structural Layer (Hypertext Markup Language) Webpage Design

Web Site Development with HTML/JavaScrip

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

Creating Web Pages with Links, Images, and Embedded Style Sheets

Outline. Database Management Systems (DBMS) Database Management and Organization. IT420: Database Management and Organization

Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of

AOS 452 Lab 4: HTML, CSS and Your Webpage

c122jan2714.notebook January 27, 2014

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

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

Fundamentals: Client/Server

Authoring World Wide Web Pages with Dreamweaver

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

CSCI 6312 Advanced Internet Programming

Chapter 4 A Hypertext Markup Language Primer

Quiz / Demonstration Learning How To Learn (HTML) : H2, H3, H4, H5, H6 Learning How To Learn (HTML) : Numbered and bulleted lists Learning How To

Ministry of Higher Education and Scientific Research

Web Design Course Syllabus and Course Outline

HTML. HTML Evolution

Introduction to Multimedia. MMP100 Spring 2017 thiserichagan.com/mmp100

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

HTML and CSS COURSE SYLLABUS

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

CAS 111D: XHTML Tutorial

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Protocols. Module UFCE Topic: Protocols and More HTML

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

CSCI 1100L: Topics in Computing Spring 2018 Web Page Project 50 points

Creating and Editing a Web Page Using Inline Styles

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

UR what? ! URI: Uniform Resource Identifier. " Uniquely identifies a data entity " Obeys a specific syntax " schemename:specificstuff

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

HyperText Markup Language (HTML) is the language of the web. When

Week 1 - Overview of HTML and Introduction to JavaScript

Research and Development. Matthew Stone THE VILLAGE. Department of Computer Science Center for Cognitive Science Rutgers University

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Modify cmp.htm, contactme.htm and create scheduleme.htm

Transcription:

IT350 Web & Internet Programming Fall 2012 Asst. Prof. Adina Crăiniceanu http://www.usna.edu/users/cs/adina/teaching/it350/fall2012/ 2 Outline Class Survey / Role Call What is: - the web/internet? - web programming? - this class? Course Admin Syllabus Policy Tips XHTML 1

3 Web vs. Internet Internet collections of computers/devices that can communicate telnet, ftp, SMTP(mail) Web software/protocols that has been installed on (most of) these computers http / https Client/Server Computing Computation can occur in location 2

5 Things we ll learn and do XHTML basics, tables, forms Cascading Style Sheets JavaScript Dynamic HTML CGI / Perl 6 Things we ll hear about Human Computer Interaction Accessibility Web ethics 3

7 Things we won t have time for ASP,.NET Java Servlets JavaServer Pages (JSP) jquery PHP Flash, Photoshop 8 Admin Assignments Assignments will be on the course calendar First homework email due tomorrow by 0800 Read course policy Read Lab Guidance (on the web) pick a topic Email topic to instructor (subject: IT350 Lab topic ) First reading due next Tuesday (quiz) Skim chapters 1, 2, Read chapter.10-.15 Deadlines Reading (+ quiz) often Tuesdays, but see calendar Lab usually due Monday 2359 (electronically). Hard copy before lab on Tuesday Late assignments see policy Late quizzes (online) not accepted!

Workload: Admin - Policy Readings Quizzes Labs: start in class, usually finish outside class Project Exams Collaboration Honor Class/lab behavior 10 Success in IT350 Do the reading (don t forget online quizzes!) Brief lecture to highlight key points Lecture stay engaged Ask & answer questions Take notes provided slides are not enough! Exams closed-book but open-note! Make the most of in-class lab time Read lab in advance Think before you start typing Don t stay stuck! Don t fall behind Finish lab early and leave time for reading See me for help and/or talk to friends Course material builds on itself and gets more complex 5

Chapter - Introduction to XHTML: Part 1.1 Introduction /.2 Editing XHTML Extensible HyperText Markup Language (XHTML) A markup language based on HTML Separates document presentation from information Standard defined by W3C XHTML documents Source-code form Text editor (e.g. Notepad, Wordpad, emacs, etc.).html or.htm file-name extension Web server stores XHTML documents Web browser requests XHTML documents 6

Basic Syntax <a href= links.html > Useful links </a> <br /> Example 1 <?xml version = "1.0" encoding = "utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 5 <!-- Fig..1: main.html --> 6 <!-- First XHTML example. --> 7 <html xmlns = "http://www.w3.org/1999/xhtml"> 8 <head> 9 <title>welcome</title> 10 </head> 11 12 <body> 13 <p>welcome to XHTML!</p> 1 </body> 15 </html> main.html (1 of 1) 7

. W3C XHTML Validation Service Validation service ( validator.w3.org ) Checking a document s syntax Provide URL or upload file Local validation service http://intranet.cs.usna.edu/w3c-validator/ Block tags Block vs. inline tags in XHTML Start their content on a new line Inline tags Their content continues on the same line Restrictions Inline tags (and text) must be nested inside block tags, not directly under <body> or <form> Block tags cannot be nested inside inline tags ILLEGAL: <b> <h1> Foo </h1> </b> 8

.5 Headers h1 to h6 1 <?xml version = "1.0" encoding = "utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 5 <!-- Fig..2: heading.html --> 6 <!-- Heading elements h1 through h6. --> 7 <html xmlns = "http://www.w3.org/1999/xhtml"> 8 <head> 9 <title>headings</title> 10 </head> 11 12 <body> 13 <h1>level 1 Heading</h1> 1 <h2>level 2 heading</h2> 15 <h3>level 3 heading</h3> 16 <h>level heading</h> 17 <h5>level 5 heading</h5> 18 <h6>level 6 heading</h6> 19 </body> 20 </html> Hyperlink.6 Linking References other sources such as XHTML documents and images Both text and images can act as hyperlinks Created using the a (anchor) element Attribute href Specifies the location of a linked resource Link to e-mail addresses using mailto: URL 9

1 <?xml version = "1.0" encoding = "utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 5 <!-- Fig..3: links.html --> 6 <!-- Linking to other web pages. --> 7 <html xmlns = "http://www.w3.org/1999/xhtml"> 8 <head> 9 <title>links</title> 10 </head> 11 12 <body> 13 <h1>here are my favorite sites</h1> 1 <p><strong>click a name to go to that page.</strong></p> 15 16 <!-- Create four text hyperlinks --> 17 <p><a href = "http://www.deitel.com">deitel</a></p> 18 <p><a href = "http://www.prenhall.com">prentice Hall</a></p> 19 <p><a href = "http://www.yahoo.com">yahoo!</a></p> 20 <p><a href = "http://www.usatoday.com">usa Today</a></p> 21 </body> 22 </html> Relative vs. Absolute Links Absolute links <a href= http://www.cs.usna.edu/textbooks.htm >Textbooks</a> <a href= http://www.nytimes.com > NYT </a> Relative links <a href= textbooks.htm >Textbooks</a> <a href=../textbooks.htm >Textbooks</a> <a href=../common/dogs.html >More on dogs</a> 10

.7 Images 1 <?xml version = "1.0" encoding = "utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 5 <!-- Fig..5: picture.html --> 6 <!-- Images in XHTML files. --> 7 <html xmlns = "http://www.w3.org/1999/xhtml"> 8 <head> 9 <title>images</title> 10 </head> 11 12 <body> 13 <p> 1 <img src = "cpphtp6.jpg" width = "92" height = "120" 15 alt = "C++ How to Program book cover" /> 16 <img src = "jhtp.jpg" width = "92" height = "120" 17 alt = "Java How to Program book cover" /> 18 </p> 19 </body> 20 </html> picture.html (1 of 1).9 Lists Unordered list element ul Creates a list in which each item begins with a bullet symbol (called a disc) li (list item) Entry in an unordered list Ordered list element ol Creates a list in which each item begins with a number Lists may be nested to represent hierarchical data relationships 11

1 <?xml version = "1.0" encoding = "utf-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> 5 <!-- Fig..8: links2.html --> 6 <!-- Unordered list containing hyperlinks. --> 7 <html xmlns = "http://www.w3.org/1999/xhtml"> 8 <head> 9 <title>links</title> 10 </head> 11 12 <body> 13 <h1>here are my favorite sites</h1> 1 <p><strong>click on a name to go to that page.</strong></p> 15 16 <!-- create an unordered list --> 17 <ul> 18 <!-- add four list items --> 19 <li><a href = "http://www.deitel.com">deitel</a></li> 20 <li><a href = "http://www.w3.org">w3c</a></li> 21 <li><a href = "http://www.yahoo.com">yahoo!</a></li> 22 <li><a href = "http://www.cnn.com">cnn</a></li> 23 </ul> 2 </body> 25 </html> links2.html (1 of 1) Web Resources Google www.w3.org/tr/xhtml11 www.xhtml.org www.w3schools.com/xhtml/default.asp validator.w3.org wdvl.com/authoring/languages/xml/xhtml 12

Lab Accounts Student Web Server Accounts Mapping web-server account: File Explorer: Tools Map Network Drive (pick drive W) \\intranet.cs.usna.edu\mxxxxxx Check the Reconnect at login box. Click on Finish Username: USNA\mXXXXXX Set up the web server: Ssh into intranet.cs.usna.edu Create public_html directory (mkdir public_html) Change permissions for directory to allow web access (chmod a+rx public_html) URL for each student website on the department web server: http://intranet.cs.usna.edu/~mxxxxxx 13