XHTML. XHTML is one of the many XML-based languages that have been defined XHTML is, essentially, a “cleaned-up” version of HTML 4, reformulated using.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
Pengantar Teknologi Mobile 13 Antonius Rachmat C, S.Kom, M.Cs XHTML.
History Leading to XHTML
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 2 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
17/10/11. 2  The form element ( ) is used to include a number of form elements together so that they can be referenced by some other code in order to.
Tutorial 9 Working with XHTML
XHTML 16-Apr-17.
XML eXtensible Markup Language. HTML is not extensible One defect of HTML is that it is not extensible In HTML we cannot, for example, define notions.
Lecture 10. Back to the table example We can now return to considering in detail the first XSLT style-sheet we saw –The one which, when applied to the.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
Valid XML documents To be valid, an XML document –must be well-formed according to the general XML syntax rules –and, in addition, it must satisfy the.
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Introduction to XHTML Professor Stephen Kwan. 2 XHTML HTML StyleSheets XML CascadingStyleSheets(CSS) ExtensibleStylesheetLanguage(XSL) StructureFormatContent.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Introduction to XHTML Professor Stephen Kwan. 2 XHTML HTML StyleSheets XML CascadingStyleSheets(CSS) ExtensibleStylesheetLanguage(XSL) StructureFormatContent.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
HTML Elements. HTML documents are defined by HTML elements.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Working with XHTML Creating a Well-Formed Valid Document.
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.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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.
XHTML Instructor: Charles Moen CSCI/CINF XHTML  A stricter version of HTML  Extensible HTML  The XHTML specification is maintained by the World.
XHTML1 Building Document Structure Chapter 2. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML)
XHTML Presentation by Kevin See June 16, XML in HTML Meeting Report  May 11, 1998  html
Introduction. Document Structure Overview  XML declaration (prolog)  Document type declaration  Root element (namespace)  Document header  Document.
3 XHTML.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
Extensible HyperText Markup Language (XHTML) Laboratory of Intelligent Youn-Hee Han.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML Web and Database Management System. HTML’s History HTML was initially defined by Tim-Berners-Lee in 1990 at CERN (European Organization for Nuclear.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
CSC 551: Web Programming Fall 2001 emerging & alternate Web technologies  Dynamic HTML  ActiveX  XML course overview  online review sheet  advice.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Frames in XHTML Please use speaker notes for additional information!
Lesson 4.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
INT222 – Internet Fundamentals
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Introduction to XML Extensible Markup Language.
Extensible Markup Language (XML) Pat Morin COMP 2405.
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Tutorial 9 Working with XHTML
XHTML
XHTML 7-May-19.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Presentation transcript:

XHTML

XHTML is one of the many XML-based languages that have been defined XHTML is, essentially, a “cleaned-up” version of HTML 4, reformulated using XML DTD technology –there are three XHTML DTDs, corresponding to the three versions of HTML 4 (strict, transitional and frameset) XHTML is designed to be compatible with XML-oriented user-agents XHTML is also acceptable to HTML 4-oriented user agents Therefore, Web developers who write their HTML documents to conform to XHTML will give a longer working-life to these documents

XHTML versus HTML An XHTML document must be a well-formed XML document and must be valid according to one of the DTDs which define the three varieties of XHTML:  the Strict DTD, which should be used when rendering is controlled by CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "  the Transitional DTD, to be used for browsers that cannot handle CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" "  the Frameset DTD, to be used when frames are used to divide up the browser window: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "

XHTML versus HTML Since an XHTML document must be a well-formed XML document and must be valid according to one of the DTDs, –an XHTML document must contain one root element (an XML well-formedness requirement) –the root element must be delimited by and tags (a validity requirement, since html is defined as the root element in the XHTML DTDs) –all XHTML tags and attributes must be in lower-case (a validity requirement, since the XHTML DTDs define the tags and attributes as lower-case and XML is case-sensitive)

XHTML versus HTML (contd.) –a non-empty element must have start and closing tags, for example, every tag must have a corresponding tag and every tag must have a corresponding tag (a well-formedness requirement) –the start tag for an empty element must have a final /, for example (a well-formedness requirement) –elements must be properly nested (a well-formedness requirement) –attribute values must be quoted (a well-formedness requirement)

XHTML versus HTML (contd.) –attributes must have values (a well-formedness requirement) Ill-formed example: Well-formed example:

XHTML versus HTML (contd.) Since style-sheets and scripts are not XML, they must be escaped by placing them inside the special CDATA tags which XML provides for escaping non-XML text Example style element <![CDATA[ body {background-color:white;color:red} h1 {background-color:orange;color:blue} ]]> Example script element <![CDATA[ alert(“Check-out the specimen exam paper”); ]]>

XHTML versus HTML (contd.) Use the id attribute instead of the name attribute –although the name attribute is still supported in XHTML 1.0, it is expected to be eliminated in future DTDs One advantyage of adopting XHTML is that you can validate your documents, instead hoping that users who find them on the web will be able to view them. So use one of the following document type declarations <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN" " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "

Rendering XML documents

Unlike HTML tags, no XML tag (other than XHTML tags) has any pre-defined rendering semantics However, at least four rendering possibilities exist: –some browsers, such as MSIE 5.5, are starting to introduce very simple default rendering semantics for arbitrary XML tags –some browsers, including MSIE 5.5, accept CSS specifications for rendering XML tags –the most powerful approaches involve using XSL (eXtensible Stylesheet Language), a very powerful language which enables arbitrary ways of rendering XML documents some browsers are starting to accept XSL stylesheets server-side software, driven by XSL stylesheets, can transform XML documents into HTML documents before serving them to browsers which cannot understand XML+XSL

Default Rendering Semantics As said before, some browsers, such as MSIE 5.5, are starting to introduce very simple default rendering semantics for XML tags MSIE 5.5 renders XML documents as interactively- expandable/contractable tree structures

Default Rendering Semantics (contd.) Consider the XML specification below: Celia Larkin Bertie Ahern This is displayed by MISE 5.5 as shown on the next slide Notice how the start tags of elements with element content, and tags have a - before them –if we click on this -, MSIE will hide the children

Default Rendering Semantics (contd.) Say we click on the - before the tag MSIE will hide all the children of this element, as shown on the next slide Notice, however that the - changes to a + which indicates that, if we click on it, MSIE will display the children again

Default Rendering Semantics (contd.) Say we click on the - before the first tag MSIE will hide the child of this element, as shown on the next slide Notice, however that the - changes to a + which indicates that, if we click on it, MSIE will display the child again