HTML and the Web Information Systems 337 Prof. Harry Plantinga.

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with XHTML
Advertisements

Dr. Alexandra I. Cristea XHTML.
Basic HTML Trystan Upstill Comp3400 Lecture 06/03/2001.
COS 125 Internet Fundamentals and Web Page Design Day 3.
Chapter 2 HTML Basics Key Concepts
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
Advanced Techniques for Web Developers The Power of CSS Sandra Clark Senior Software Developer The Constella Group
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
XHTML 16-Apr-17.
DNS – HTTP – DHTML - CSS ICW Lecture 5 Hasan Qunoo.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Unit 2, cont. September 14 HTML,Validating your pages, Publishing your site.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
1 HTML’s Transition to XHTML. 2 XHTML is the next evolution of HTML Extensible HTML eXtensible based on XML (extensible markup language) XML like 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
Create a Website Session I Key Components Hands-on HTML.
Structure Content Presentation Semantics.
Structure Content Presentation Semantics.
Creating a Basic Web Page
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
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.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
CS 299 – Web Programming and Design Introduction to HTML.
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
1 HTML intro The development of HTMLThe development of HTML The transition from HTML to XHTMLThe transition from HTML to XHTML XHTML syntax, tags, and.
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Xingquan (Hill) Zhu
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
Going Live with a Basic Web Page Bill Hart-Davidson AIM: billhd30 pfworkshop.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
Lesson 4.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Chapter 1: Intro to HTML Section 1: HTML Structure Presentation Section 2: Layout of an HTML File Section 3: Working with Lists & Tables Section 4: HTML.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Information Systems 337 Prof. Harry Plantinga
HTML CS 4640 Programming Languages for Web Applications
Unit 4 Representing Web Data: XML
Creating a Well-Formed Valid Document
Basic HTML Document Structure
Chapter 7 Representing Web Data: XML
HTML CS 4640 Programming Languages for Web Applications
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

HTML and the Web Information Systems 337 Prof. Harry Plantinga

Lab 1 Debrief Questions about the lab? Questions about the lab? Why Why What if your web page doesn’t appear? What if your web page doesn’t appear? How do you install an apache module? How do you install an apache module? Any gaps on your linux handout? Any gaps on your linux handout? How to tell if your Web server is running? How to tell if your Web server is running? How to print info about the network? How to print info about the network?

What is the World Wide Web? HTML HTML HTML URL URL URL HTTP HTTP HTTP CSS, RSS, XML, XSLT, XPath, RDF, WSDL, SOAP, … CSS, RSS, XML, XSLT, XPath, RDF, WSDL, SOAP, …

Web Servers and HTTP What is a Web server? What is a Web server? What does a Web server do? What does a Web server do? What does the Web server do with a URL like: What does the Web server do with a URL like: Why do file permissions matter? Why do file permissions matter?

HTML We assume some familiarity with HTML We assume some familiarity with HTML Don’t already know HTML? Do the tutorials Don’t already know HTML? Do the tutorials HTML Cheat Sheet may come in handy (and we'll use it for quizzes) HTML Cheat Sheet may come in handy (and we'll use it for quizzes) HTML handout—fill in during class HTML handout—fill in during class And now for a quiz… And now for a quiz…

Group Question 1 In the following line of HTML, identify the elements, tags, attributes, and entities. Hello World© Hello World©

Group Question 2 What does the following line at the top of an HTML file mean? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " What does the following line at the top of an HTML file mean?

Group Question 3 Give that these three lines will render exactly the same in a Web browser, which is the best way of marking up a book title? Why? Plato’s Republic Plato’s Republic

Group Question 4 What does “nesting” mean? How would you correct the error in the following markup? I’ve never read Plato’s Republic, have you? I’ve never read Plato’s Republic, have you?

Group Question 5 The tutorial recommends using alt, height, and width attributes in image elements. Why? Why might you not want to use them?

Group Question 6 What color would the div have as a background? <p>Menu...</p></div>

Group Question 7 What difference would there be in the way these two lines display in browser? Have you read Cryptnomicon ? Have you read Cryptnomicon ? Have you read Have you read<cite>Cryptnomicon</cite>?</p>

Group Question 8 What effect would the title attribute have in the following line? Hello World Hello World

Group Question 9 What effect would following line have?

Group Question 10 What is the purpose of the element?

Is this legal? <body> Hello World Hello World Here is some Bold, bold + italic, and italic Here is some Bold, bold + italic, and italic This is a new paragraph with bold text. This is a new paragraph with bold text.<br> This paragraph is centered. This paragraph is centered. Here's another paragraph. </center></body></html> See test1.html, test2.html; tidy test1.htmltest2.htmlhttp://validator.w3.org/test1.htmltest2.htmlhttp://validator.w3.org/

Is this legal? <html><head> Test 3 Test 3 </head><body> Hello World Hello World Here is some Bold, bold + italic,, and italic Here is some Bold, bold + italic,, and italic This is a new paragraph with bold text. This is a new paragraph with bold text. <center> This paragraph is centered. This paragraph is centered. Here's another paragraph. Here's another paragraph.</center></body></html>

Editing HTML Options for editing HTML Options for editing HTML vi/emacs/nano/notepad and your wits! vi/emacs/nano/notepad and your wits! DreamWeaver DreamWeaver Simplified online HTML editors Simplified online HTML editors Other markup, e.g. wikipedia, LaTex, etc. with a converter Other markup, e.g. wikipedia, LaTex, etc. with a converter

HTML and Standards Varieties of HTML Varieties of HTML HTML 4 transitional or strict HTML 4 transitional or strict XHTML XHTML HTML [5] HTML [5] Standards adherence Standards adherence Why is it important? Why is it important? How have companies abused standards? How have companies abused standards? Embrace, extend, extinguish… Embrace, extend, extinguish… Embrace, extend, extinguish… Embrace, extend, extinguish… Browsers: quirks mode vs. standards mode Browsers: quirks mode vs. standards mode

Using HTML How do I specify the version of HTML I'm using? How do I specify the version of HTML I'm using? HTML 4.0 Transitional HTML 4.0 Transitional HTML 4.0 Strict HTML 4.0 Strict XHTML 1.0 XHTML 1.0 HTML 5 ("Standards mode")— HTML 5 ("Standards mode")— Quirks mode—no DOCTYPE Quirks mode—no DOCTYPE

Transitional vs. Strict What's the difference between HTML4 Transitional and Strict? What's the difference between HTML4 Transitional and Strict? In short, formatting is done with CSS in Strict In short, formatting is done with CSS in Strict Not legal in HTML 4 Strict: Not legal in HTML 4 Strict: Formatting elements: Formatting elements: Formatting attributes: align, language, bgcolor, border, height, width, hspace, vspace, noshade, nowrap, etc. Formatting attributes: align, language, bgcolor, border, height, width, hspace, vspace, noshade, nowrap, etc.,, and may only contain block-level elements,, and may only contain block-level elements

What about XHTML? Syntax differences from HTML: Syntax differences from HTML: no omitted tags, proper nesting no omitted tags, proper nesting empty tags must be closed, e.g. empty tags must be closed, e.g. lower-case tag and attribute names lower-case tag and attribute names attributes need quotes, values attributes need quotes, values the only defined entities are & < > the only defined entities are & < > Doctype, xmlns attribute Doctype, xmlns attribute and more… and more… Can use XML Tools: XML editors, validation, DOM, XSLT, XPATH Can use XML Tools: XML editors, validation, DOM, XSLT, XPATH Dying? Dying?

HTML 5  New semantic elements: header, footer, nav, section, article, meter, time, aside, etc. , ,  -- 2D and 3D    Other Changes:  Tools for making web apps (database, threads)  Drag and drop  Cross-document messaging  Browser history management  2D and 3D transitions and graphics ,, etc dropped  Support for Web apps Good HTML5 tutorial:

Semantic Markup Semantics: “meaning” Semantics: “meaning” Examples of semantic markup: Examples of semantic markup: Examples of non-semantic markup: Examples of non-semantic markup: and vs. and and vs. and Separating semantics from presentation Separating semantics from presentation

What’s Wrong?

Character Encodings Do you know your character encodings? Do you know your character encodings? Do you know your character encodings? Do you know your character encodings?

Character Encodings How to set the encoding on the server? How to set the encoding on the server? conf.d: AddDefaultCharset UTF-8 How to set the encoding in your Web page? How to set the encoding in your Web page? How to change the encoding in your web browser? How to change the encoding in your web browser? How to enter Unicode? How to enter Unicode? Editor function, e.g. Word's Insert symbol Editor function, e.g. Word's Insert symbol Foreign keyboard, keyboard map Foreign keyboard, keyboard map Escape sequences (” ” ”) Escape sequences (” ” ”)

URLs What do the parts of this URL mean? es=margin&print=1

Parts of a URL Scheme://domain/path#fragment?parameters Scheme : network protocol (e.g. http, https, ftp, file, mailto) Scheme : network protocol (e.g. http, https, ftp, file, mailto) Domain : server that provides resource Domain : server that provides resource Path : directory path to access resource (relative to server root) Path : directory path to access resource (relative to server root) Fragment : location within resource (typically an ID) Fragment : location within resource (typically an ID) Parameters : input for computed resource, e.g. ?node=37&print=true Parameters : input for computed resource, e.g. ?node=37&print=true

Relative URLs Behavioral differences? Behavioral differences?

Video and Audio? see video see video element in HTML 5 – use a library like videojs.com element in HTML 5 – use a library like videojs.com videojs.com Flash? Flash? F_zBnhtHs&hl=en&fs=1&rel=0http:// F_zBnhtHs&hl=en&fs=1&rel=0</object>

How would I… How would I write HTML to make How would I write HTML to make A book with chapters, sections A book with chapters, sections A two-column layout A two-column layout A grid of images A grid of images A menu system A menu system A calendar with boxes for numbers A calendar with boxes for numbers