11xhtml-2up - 11 XHTML 16 Sept 2010 CSCC09F Programming on...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
11 XHTML 16 Sept, 2010 CSCC09 Programming on the Web 1 11XHTML CSCC09 1 XHTML eXtensible HyperText Markup Language an XML application, global structure, head element, CSCC09F Programming on the Web 11XHTML CSCC09 2 <html> b XHTML is an XML application (aka vocabulary). b XML is case-sensitive. c all elements and attributes in the xhtml namespace are lower-case ! c differs in this respect from HTML 4.0 b Definitive references: c html 4.01 specification 24 Dec. 1999 b http://www.w3.org/TR/html4/ c xml 1.0 (4 th edition) specification, 16 Aug, 2006 b http://www.w3.org/TR/xml/ c xhtml 1.0 (2 nd edition) specification, 1 Aug 2002 b http://www.w3.org/TR/xhtml1/
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11 XHTML 16 Sept, 2010 CSCC09 Programming on the Web 2 11XHTML CSCC09 3 Sections b Global Structure (head): title, meta, link, base, etc. b Text: alignment, phrase elements, sections etc. b Links: anchors and fragment ident’s b Lists: unordered, ordered, labelled b Tables: alignment and data b Frames: multi-view presentation of documents b Forms c User-input Forms: Text Fields, Buttons, Menus, etc. b Style Sheets: linking, covered later as CSS b Scripts: linking, covered later as JS and DOM b Objects: including images, Applets, media, etc. 11XHTML CSCC09 4 Global Structure <head> b Must contain a <title> element c used as window titles, in favourite lists, search engine results, … c choose a good, context-rich title – it gets displayed a lot b POOR: <title>Introduction</title> b BETTER: <title>Introduction to Medieval Bee-Keeping</title> b May contain c <meta> c <link> c <base>
Background image of page 2
11 XHTML 16 Sept, 2010 CSCC09 Programming on the Web 3 11XHTML CSCC09 5 Global Structure <meta> b Uses include: c general info, e.g. author, description (used by search engines) <meta name="author" content="Alan Rosselet" /> <meta name="description" content="hi-level overview of XHTML" /> c document-level content control, e.g. scripting language, caching, refreshing (and client “pull”), expiration. <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv=“cache-control" content="no-cache" /> <meta http-equiv="refresh" content="10; url=http://www.google.ca" /> <meta http-equiv="expires" content="Fri, 17 Sep 2010 22:14:30 GMT" /> 11XHTML CSCC09 6 Global Structure <meta> b Uses include: c instructing search engines on how to treat your site (e.g. keywords, revisit-after – for material that changes frequently, distribution-locality, robots & googlebot – for index control) <meta name="keywords" lang="en" content="vacation, sunshine“ /> <meta name="keywords" lang="fr" content="vacances, soleil“ /> <meta name=“revisit-after” content=“30 Days” /> <meta name=“distribution” content=“IU” /> <meta name=“robots” content=“index, nofollow” /> b Efforts underway to standardize document meta-data c e.g., Dublin Core Metadata Initiative
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11 XHTML 16 Sept, 2010 CSCC09 Programming on the Web 4 11XHTML CSCC09 7 Global - <link>
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/09/2010 for the course CS CSCC09 taught by Professor Alan during the Spring '10 term at University of Toronto.

Page1 / 17

11xhtml-2up - 11 XHTML 16 Sept 2010 CSCC09F Programming on...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online