41
Copyright ©1995 MIPS group 1 of 41 Setting up the front-end of a Web service Setting up the front-end of a Web service Hans C. Arents MIPS group, dept. MTM, K.U.Leuven W. de Croylaan 2, B-3001 Leuven, Belgium Brussels Brussels 16 May 1995 16 May 1995 [email protected] http://www.mtm.kuleuven.ac.be/~hca/ I.T. Works seminar I.T. Works seminar Setting up an Internet information service Setting up an Internet information service

Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 1 of 41

Setting upthe front-end

of a Web service

Setting upthe front-end

of a Web serviceHans C. Arents

MIPS group, dept. MTM, K.U.LeuvenW. de Croylaan 2, B-3001 Leuven, Belgium

BrusselsBrussels16 May 199516 May 1995

[email protected]://www.mtm.kuleuven.ac.be/~hca/

I.T. Works seminarI.T. Works seminarSetting up an Internet information serviceSetting up an Internet information service

Page 2: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 2 of 41

The front-end of a Web serviceThe front-end of a Web servicen The World-Wide Webn Web browsersn HTML crash course

– what is HTML?– structure, formatting– hyperlinks, images, maps – dialects: tables, backgrounds, . . .

n HTML authoring tools and utilitiesn HTML authoring tips and tricksn The future of HTML and the Web

Page 3: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 3 of 41

What is the World-Wide Web?What is the World-Wide Web?n a distributed hypermedia system

– distributed = client-server architecture– hypermedia = hypertext + multimedia

which provides– rich contents: text, graphics, audio, video, ...– simple access: Gopher, FTP, newsgroups, e-mail, ...– single document interface to different information sources

Page 4: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 4 of 41

Distributed: client-server architectureDistributed: client-server architecture

SERVERS

BROWSERS

HTTP server Gopher server FTP server NNTP server gateway

PCMacintosh Workstation

URL + HTML + HTTP + MIME + CGI

Page 5: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 5 of 41

Hypermedia: hypertext + multimediaHypermedia: hypertext + multimedia

Executive summaryExecutive summary

ResultsResults

DataData

Market shareMarket share

AnalysisAnalysis

CommercialCommercial

GoalsGoalsJingleJingle

ClipClip

Page 6: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 6 of 41

The Web alphabet soupThe Web alphabet soupn Client side

– URL Universal Resource Locatoraddressing scheme: specifying Internet locations

– HTML HyperText Markup Languagecontent encoding: capturing hypermedia contents

n Server side– HTTP HyperText Transfer Protocol

transfer protocol: sending data requests & data– MIME Multimedia Internet Mail Extension

format negotiation: exchanging multimedia data– CGI Common Gateway Interface

service extension: enabling back-end engines

Page 7: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 7 of 41

Web browsersWeb browsersn Macintosh browsers

– Netscape the market leader

– Mosaic for Macintosh, MacWeb, ...

n Windows browsers– Netscape the market leader

– Air Mosaic, WebSurfer, WinWeb, ...

n UNIX browsers– Netscape the market leader

– Mosaic an experimental testbed

– HotJava the next generation browser

Page 8: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 8 of 41

What is HTML?What is HTML?n HTML = HyperText Markup Language

– an application of SGML, but easy to learn by novices– describe structure of hypermedia documents– define hypertext links and anchors

n HTML levels

HTML level 1- structure, formatting

- hyperlinks, images

HTML level 2- standardized DTD

- fill-in forms

HTML level 3- tables, figures

- maths, equations

19941994 19951995

Page 9: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 9 of 41

What is HTML?What is HTML?

DOCUMENTlayout markup styles logical markup objects

document title

level 1 heading

paragraph

numbered listlist element

address

font: Helveticasize: 18 ptjustification: left

font: Helveticasize: 12 ptweight: bold

font: Palatinosize: 10 pt

font: Palatinosize: 8 pt

Page 10: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 10 of 41

Document structureDocument structuren An HTML document has

– a HEAD: document title, document information, ...– a BODY: document text

<HTML><HEAD><TITLE>An example document</TITLE></HEAD><BODY>...</BODY></HTML>

Page 11: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 11 of 41

Document structureDocument structuren The body of an HTML document can have

– headings: 6 level hierarchy, no enforced order– paragraphs: spaces & carriage returns not significant

...<H1>An example level 1 heading</H1><P>An example paragraph. Note how spaces and carriage returns do not affect the final layout on screen.</P><H2>An example level 2 heading</H2><P>Another example paragraph. Note how spaces and carriage returns do not affect the final layout on screen.</P>...

Page 12: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 12 of 41

Document structureDocument structure

Page 13: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 13 of 41

Document structureDocument structuren The body of an HTML document can have

– unordered lists: lists with bullets– ordered lists: lists with numbers

...<UL><LI>First bulleted item.</LI><LI>Second bulleted item.</LI></UL><OL><LI>First numbered item.</LI><LI>Second numbered item.</LI></OL>...

Page 14: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 14 of 41

Document structureDocument structure

Page 15: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 15 of 41

Document structureDocument structure

Page 16: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 16 of 41

Document structureDocument structuren The body of an HTML document can have

– definition lists: lists with definitions– menu lists, directory lists (discontinued)

...<DL><DT>First definition</DT><DD>First definition text. Note how the text left indents when displayed.</DD><DT>Second definition</DT><DD>Second definition text. Note how the text left indents when displayed.</DD></DL>...

Page 17: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 17 of 41

Document structureDocument structure

Page 18: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 18 of 41

Document structureDocument structuren The body of an HTML document can have

– BLOCKQUOTE, ADDRESS– CITE, CODE, SAMP, KBD, VAR, ... (discontinued)

...<P>An example paragraph. Note how spaces and carriage returns do not affect the final layout on screen.</P><BLOCKQUOTE>An example blockquote. Note how the text left and right indents when displayed.</BLOCKQUOTE><ADDRESS>An example address.</ADDRESS>...

Page 19: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 19 of 41

Document structureDocument structure

Page 20: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 20 of 41

Text formattingText formattingn The text of an HTML document can have

– hard formatting: formatting specified by the user– soft formatting: formatting controlled by the browser

...<P>A paragraph with hard formatting. Text can be <B>bold</B>, <I>italic</I>, <TT>typewriter</TT> and <BLINK>blinking</BLINK>.</P><P>A paragraph with soft formatting. Text can be <EM>emphasized</EM> or <STRONG>strongly emphasized</STRONG>.</P>...

Page 21: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 21 of 41

Text formattingText formatting

Page 22: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 22 of 41

Text formattingText formattingn The text of an HTML document can

– be preformatted, centered– have a horizontal rule, (no) line break, word break– contain special characters (platform-independent)

...<PRE>A paragraph where spaces &amp;carriage returns are respectedby the browser.</PRE><CENTER><P>A centered paragraph with a line break here<BR> and followed by a horizontal rule.</P></CENTER><HR><P>Page &copy;1995 by Netscape&reg;.</P>...

Page 23: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 23 of 41

Text formattingText formatting

Page 24: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 24 of 41

HyperlinksHyperlinksn The body of an HTML document can have

– internal hyperlinks: other location, same document– external hyperlinks: other location, other document

...<P>A paragraph with <A HREF="#here">an internal link</A> to somewhere else.</P>...<P><A NAME="here">The paragraph</A> where the internal link ends.</P>...<P>A paragraph with <A HREF="there.html">an external link</A> to somewhere else.</P>...

Page 25: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 25 of 41

HyperlinksHyperlinks

Page 26: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 26 of 41

HyperlinksHyperlinks

Page 27: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 27 of 41

HyperlinksHyperlinks

Page 28: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 28 of 41

URL: Universal Resource LocatorURL: Universal Resource Locatorn Scheme : Locationn Scheme : // Host [:Port] / Pathn Examples:

– http http://dept.uni.edu:80/directory/file.html– file file://localhost/directory/file.html

– mailto mailto:[email protected]

– ftp ftp://ftp.dept.uni.edu/directory/file.ps.Z– gopher gopher://dept.uni.edu/11/– wais wais://dept.uni.edu/– news news:alt.hypertext

Page 29: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 29 of 41

Types of URLsTypes of URLsn Absolute URLs

–<A HREF="http://www.ibm.com/">Homepage of IBM</A>

–<A HREF="http://www.mtv.com/prince.gif"> Picture of Prince</A>

n Relative URLs–<A HREF="chap1.html">Chapter 1</A>–<A HREF="#sec2">Section 2</A> in this chapter

–<A HREF="chap3.html#sec4">Section 4</A>in chapter 3

Page 30: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 30 of 41

ImagesImagesn The body of an HTML document can have

– in-line images: images inside the text– external images: images outside the document

...<P><IMG SRC="floppy.gif" ALIGN="top">A paragraph with an in-line image aligned to the top of the line.</P><P><A HREF="police.jpg"><IMG SRC="police.gif" ALT="[police]"></A>A paragraph with an in-line image aligned to the bottom of the line, and referring to an external image.</P>...

Page 31: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 31 of 41

ImagesImages

Page 32: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 32 of 41

ImagesImages

Page 33: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 33 of 41

ImagesImages

Page 34: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 34 of 41

MapsMapsn An image can be a clickable image map

– in-line image with embedded hyperlinks– selecting a hotspot activates the relevant hyperlink

hyperlinkhyperlink

Page 35: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 35 of 41

Tables and backgroundsTables and backgroundsn The body of an HTML document can have

– tables (experimental)– colored background & foreground (experimental)

...<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0077FF" VLINK="#22AA22"ALINK="#FFFF00"><TABLE BORDER><TR><TD>A</TD><TD>B</TD><TD>C</TD></TR><TR><TD>D</TD><TD>E</TD><TD>F</TD></TR></TABLE></BODY>...

Page 36: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 36 of 41

TablesTables

Page 37: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 37 of 41

HTML authoring toolsHTML authoring toolsn HTML editors

– help in creating an HTML documentÜ stand-alone / templateÜ checking / uncheckingÜWYSIWYG / raw HTML

n HTML convertors– convert an existing text format into HTML and back

n HTML validators– check conformance of HTML documents w.r.t. DTD

n HTML authoring environments?– complete, industrial strength tools in the near future

Page 38: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 38 of 41

HTML authoring utilitiesHTML authoring utilitiesn Image utilities

– create original artwork– manipulate scanned images– JPEG, TIFF, FIF, ... viewers

n Sound utilities– sample and digitize sounds– delayed or realtime playback

n Video utilities– compress moving images– QuickTime, MPEG viewers

Page 39: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 39 of 41

MIME: Format negotiationMIME: Format negotiation

HTML

sound

3D

3D viewer

browser

player

browser + helper applications

Page 40: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 40 of 41

HTML authoring tips and tricksHTML authoring tips and tricksn never use logical styles for layout purposesn check your HTML with various browsersn provide context for the document

– links to related documents– date / sign / locate the document

n provide consistency for the user– use predictable navigation links– use a template / conform to a house style

n concentrate on content > structure > appearance– but ... if you find a nice looking page, do get the source!

Page 41: Setting up the front-end of a Web service - Telenetusers.telenet.be/hans.arents/presentations/Setting up the...HTML authoring tips and tricks nnever use logical styles for layout purposes

Copyright ©1995 MIPS group 41 of 41

The future of HTML and the WebThe future of HTML and the Webn HTML is a moving target

– HTML 2.0 ratified, HTML 3.0 forever changing– each new browser adds its own extensions

Ü HTML è pure SGML with stylesheets?Ü HTML è confusing mix of logical / layout tags?

– VRML = Virtual Reality Markup Language

n The Internet = the Web– the Web = single largest Internet service– HTML = the “esperanto” of the Internet

n If you want to be really noticed on the Netyou’d better learn to speak its language fluently ...