Presentation is loading. Please wait.

Presentation is loading. Please wait.

XHTML Basics I450 Technology Seminar Copyright 2003, Matt Hottell.

Similar presentations


Presentation on theme: "XHTML Basics I450 Technology Seminar Copyright 2003, Matt Hottell."— Presentation transcript:

1 XHTML Basics I450 Technology Seminar Copyright 2003, Matt Hottell

2 HTML Developed in 1991 by Tim Berners-Lee in Switzerland for CERN

3 HTML Developed in 1991 by Tim Berners-Lee in Switzerland for CERN Originally designed for marking up and displaying scientific text

4 HTML Issues Browser war bloating

5 HTML Issues Browser war bloating Does not separate visual markup from logical markup

6 Logical markup Markup that explains what the tagged data is or what role it plays in the document

7 Logical markup Markup that explains what the tagged data is or what role it plays in the document

8 Visual markup Markup that only determines how the tagged data is to be displayed

9 Visual markup Markup that only determines how the tagged data is to be displayed

10 HTML My Page My favorite foods: Pizza Ice Cream Tortas My pictures:

11 Why XHTML? Separates logical from visual markup Move all visual markup into a separate style sheet Follows XML standards Is backwards-compatible with HTML Compatible with new types of displays Cell phones, kiosks, PDAs, etc.

12 XHTML Basics XHTML can be seen as a subset of logical HTML elements. 3 different XHTML subsets: Frameset, transitional, strict

13 XHTML Basics Must follow XML rules: Must be “well-formed” or syntactically correct according to a document standard For XHTML, this document standard is the World Wide Web Consortium XHTML standard which can be found at http://www.w3.org/TR/xhtml1/ http://www.w3.org/TR/xhtml1/

14 XHTML Basics Must follow XML rules: All elements must be properly nested Bad: HI! Good: HI! Some elements can contain other elements, others cannot.

15 XHTML Basics Must follow XML rules: All tags must be properly terminated Bad: One Two Three Good: One Two Three becomes

16 XHTML Basics Must follow XML rules: All tags must be lower-case

17 XHTML Basics White space: Do not leave trailing spaces Separate attributes by one space Bad: Good:

18 XHTML Basics Attributes Must be enclosed in quotes Name attribute replaced by id No standalone attributes Images require alt attributes.

19 XHTML Basics Must validate against a document model that is declared at the beginning of the XHTML document

20 XHTML Skeleton Untitled Document

21 HTML My Page My favorite foods: Pizza Ice Cream Tortas My pictures:

22 XHTML Conversion Untitled Document My favorite foods: Pizza Ice Cream Tortas My pictures:


Download ppt "XHTML Basics I450 Technology Seminar Copyright 2003, Matt Hottell."

Similar presentations


Ads by Google