XHTML 2 - Which way should I insert images and other media?

Hi, 

These code samples show how you could include an image in a XHTML 2 
document:

 <object src="logo.png" type="image/png"><h1>W3C</h1></object> 

 <h1 src="logo.png" type="image/png">W3C</h1> 

And with the help of CSS3, you could also do this: 

 h1 { content: url(logo.png), contents; }
 <h1>W3C</h1> 

All code samples will give the same result. When should I use which method? 

 - Tobias Eklund

Received on Thursday, 23 December 2004 21:36:55 UTC