• +91 9723535972
  • info@interviewmaterial.com

XHTML Interview Questions and Answers

Related Subjects

XHTML Interview Questions and Answers

Question - 11 : - Any other important new developments?

Answer - 11 : - Yes: XSLT provides a transformation language which can be used to transform XML documents into other formats. XSLT can be used to transform documents from one XML DTD to another, or even to transform an XML document to an alternative format such as RTF or PDF.

Question - 12 : - Why is this XSLT important?

Answer - 12 : - You've heard all the hype about mobile phones and WAP haven't you? How do you think the WAP world, which expects documents to be in WML format, to be populated? Rather than manually creating WML markup, XSLT will enable XHTML documents to be automatically converted to WML.

Question - 13 : - What's XHTML Validation?

Answer - 13 : - An XHTML document is validated against a Document Type Definition. Validate XHTML With A DTD An XHTML document is validated against a Document Type Definition (DTD). Before an XHTML file can be properly validated, a correct DTD must be added as the first line of the file. The Strict DTD includes elements and attributes that have not been deprecated or do not appear in framesets: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" The Transitional DTD includes everything in the strict DTD plus deprecated elements and attributes: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" The Frameset DTD includes everything in the transitional DTD plus frames as well: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" This is a simple XHTML document: simple document

a simple paragraph

Ampersands in hrefs must convert "&" to "&" in the URI Sample List becomes Sample List # The attribute "name" becomes "id" when used for a locator inside a document For example, to reference a section within a document with a URI, we usually do something like " Question - 15 : - How to writing XHTML demands a clean HTML syntax?

Answer - 15 : - Some More XHTML Syntax Rules: * Attribute names must be in lower case * Attribute values must be quoted * Attribute minimization is forbidden * The id attribute replaces the name attribute * The XHTML DTD defines mandatory elements 1. Attribute Names Must Be In Lower Case: This is wrong:

This is correct:
2. Attribute Values Must Be Quoted: This is wrong:
This is correct:
3. Attribute Minimization Is Forbidden: This is wrong:

10000+ interview questions in different categories

Freshers and experienced

Our partners