Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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

From: <teklund@gargile.net>
Date: Wed, 22 Dec 2004 00:54:22 +0000
Message-ID: <20041218205535.72330.qmail@nuoli.com>
To: www-html@w3.org




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 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.