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
Is <img> being replaced by <object> in XHTML2?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Is <img> being replaced by <object> in XHTML2?
Answer
# 1
No. <img> is being replaced in XHTML2, but by something else
(although you could use <object> if you wanted).

The design of <img> has many problems in HTML:

It has no fallback possibilities, so that if you use an
image of type PNG for instance, and the browser can't handle
that type, the only alternative is to use the alt text. This
fact has hampered the adoption of PNG images, which in many
ways are better than GIF and JPG, since people have
continued to use the lowest-common denominator format, to
ensure that everyone can see the images. 

The alt text cannot be marked up, so that if it gets used,
you just get the plain text. 

It is possible to include a longdesc link to a description
of the image, to help people who cannot see, but it is
seldom implemented. 

What XHTML2 does is say that all images are equivalent to
some piece of content; it does this by allowing you to put a
src attribute on any element at all. What this says is: if
the image is available, and the browser can process it, use
it, otherwise use the content of the element. For instance:

<p src="map.png">Exit from the station, turn left, 

   go straight on to <strong>High Street</strong>,

   and turn right</p>

The advantage of this is that if the image is not available
for some reason (such as network failure) or the browser
can't render that sort of image, your document is still
usable. If you want to supply more than one sort of image,
you can do:

<p src="map.png"><span src="map.gif">Exit from
station...</span></p>

although it is better to use content negotiation if your
server supports it (and most do):

<p src="map">Exit from station...</p>

which would negotiate with the browser which sort of image
it accepts, and give the browser its preferred sort. If
there is no available image, then the content of the element
would be used. This has an added advantage that you can
later add other image types on your server and you don't
have to change the page for it still to work.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 

 
 
 
Other HTML DHTML Interview Questions
 
  Question Asked @ Answers
 
Why do you say "user agent" everywhere, instead of "browser"?  1
Why is it allowed to send XHTML 1.0 documents as text/html?  1
Does document.write work in XHTML?  1
Why is my binary file not downloaded, but shown on the screen?  1
Why is xml:space set to 'preserve' on all elements of XHTML? I don't want to see extra space in my output.  1
What is the diffrence between HTML & DHTML...?  3
How do I make a new paragraph?  3
What is XHTML?  1
I want to get an audio file to play automatically when someone visits my site!  1
What is HTML(Hypertext Markup Language)?  1
How do I include one file in another? CTS1
Why do I have to use these namespace things in XHTML?  1
Why should I care if my document is in correct HTML? It displays all right on my browser.  1
What is the easiest way to convert my HTML documents to XHTML?  1
How do you create Drop Down Combos in HTML ? Microsoft1
How do I get a back button on my page?  1
How do I indent a lot of text?  1
How do I know which keywords to enter in order to make site catchable?  1
In DHTML what is the difference between FontSize and Font Size ? Microsoft3
Why is XHTML needed? Isn't HTML good enough?  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