ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Web Related  >>  HTML DHTML
 
 


 

 
 HTML DHTML interview questions  HTML DHTML Interview Questions
 XML XSLT RSS interview questions  XML XSLT RSS Interview Questions
 Flash Action Scripting interview questions  Flash Action Scripting Interview Questions
 SOAP interview questions  SOAP Interview Questions
 WML interview questions  WML Interview Questions
 Web Related AllOther interview questions  Web Related AllOther Interview Questions
Question
Why is xml:space set to 'preserve' on all elements of XHTML?
I don't want to see extra space in my output.
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Why is xml:space set to 'preserve' on all elements of XHTML? I don't want to see extra space in my output.
Answer
# 1
The attribute xml:space is about input: that is to say, it
controls if the spaces will be present in the DOM (i.e. in
the internal version of the document inside the browser); it
says nothing about what will appear on your screen. Output
whitespace is controlled by the CSS property 'whitespace'.
Set it to 'pre' and the spaces in the DOM will be preserved
on output; set it to 'normal' and the whitespace will be
collapsed (CSS3 will have more properties to enable greater
control).

This is the reason that all elements are set to
xml:space="preserve" in XHTML2, otherwise the CSS
'whitespace' property would have no effect, and you would
have no control over visible whitespace. The default
stylesheet will set 'whitespace' to 'normal' for all
elements except <pre>, but you will be free to change them.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 

 
 
 
Other HTML DHTML Interview Questions
 
  Question Asked @ Answers
 
How do I get my visitor's e-mail addresses?  1
How do I display the current date or time in my document?  1
How do I hide my source?  2
Why is my binary file not downloaded, but shown on the screen?  1
How do I know which keywords to enter in order to make site catchable?  1
Should I use lower case or upper case for tags?  1
Why isn't XHTML2 backwards compatible?  1
Is <img> being replaced by <object> in XHTML2?  1
What are the types of HTML?  1
Why is it allowed to send XHTML 1.0 documents as text/html?  1
How do I get scrolling text in the status bar?  1
For what screen size should I write?  1
I want to get an audio file to play automatically when someone visits my site!  1
Difference between HTML and DHTML? Accenture5
Why should I care if my document is in correct HTML? It displays all right on my browser.  1
Why doesn't XHTML2 use XLink?  1
How do you create Drop Down Combos in HTML ? Microsoft1
How do I use an image instead of the standard submit button?  1
Can I put markup in ALT text?  1
Why was the target attribute removed from XHTML 1.1?  1
 
For more HTML DHTML Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com