80 likes | 208 Vues
This tutorial session focuses on testing XHTML documents under both transitional and strict DTDs. You will learn how to validate your documents using XML parsers available on the web. The session also explores the use of character data, including parsed character data (PCDATA) and unparsed character data (CDATA), essential for browser interpretation. We will discuss the importance of fixing common mistakes, as a single error can lead to multiple validation issues. Join us for a deeper understanding of XHTML validation and style sheet usage.
E N D
Tutorial 9 – Session 2 Working with HTML
Objectives Test an XHTML document under the transitional DTD Test an XHTML document under the strict DTD Explore the use of character and parsed character data New Perspectives on HTML and XHTML, Comprehensive
Testing an XHTML Document To test your document, you need to send the file to an XML parser Several are available on the Web Sometimes the same mistake results in several errors noted in the report Fixing one mistake can solve several errors New Perspectives on HTML and XHTML, Comprehensive
Testing an XHTML Document New Perspectives on HTML and XHTML, Comprehensive
Successful Validation Under XHTML Transitional New Perspectives on HTML and XHTML, Comprehensive
Testing an XHTML Document To test under another DTD, you’ll need to change the DOCTYPE declaration New Perspectives on HTML and XHTML, Comprehensive
Using Style Sheets and XHTML Parsed character data (PCDATA) is text parsed by a browser or parser Unparsed character data (CDATA) is text not processed by the browser or parser A CDATA section marks a block of text as CDATA so that parsers ignore any text within it New Perspectives on HTML and XHTML, Comprehensive
Summary Test under transitional DTD Test under strict DTD Character and parsed character data