Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2003, 07:44 AM
Registered User
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c_bananas
Default imbedding pictures into HTML

Hi

I would like to know how to imbed a picture into a HTML page. i need to send this HTML page via email and it would be preferable that these pictures are not downloaded from an external site, and rather that they are "in" the HTML itself.

How do i do this?

Many Thanks
Jason

 
Old August 19th, 2003, 03:06 PM
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Alexpizzoferro
Default

Right, firstly, you cannot embed an image into html.
html is a markup language, it does not get compiled with all images into one file.

To out am image onto a page, you can use the IMG tag as follows:
<img src="name or address of image" alt="alternative text displayed before image loads" />
If you want to e-mail the html page, you have to e-mail the image as well.
Just attach both to the e-mail

Good Luck

Alexander.M.Pizzoferro.
 
Old September 18th, 2003, 01:32 PM
Authorized User
 
Join Date: Jun 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jason,

I hope you're still around to see this. I've only recently been frequenting the forum.

If you are using IE 6, you can, while viewing your HTML page including the image, select File/Save As and use the Web Archive file type. This creates a MIME-formatted file. You can send the resulting .mht file to your recipient(s).

The recipient will have to use IE to view the file. I don't think any other browser supports this.

Hope it helps,
Ken





Similar Threads
Thread Thread Starter Forum Replies Last Post
Display many pictures NBM Java GUI 0 September 3rd, 2006 06:54 AM
Displaying pictures louie001 ASP.NET 1.0 and 1.1 Basics 2 November 24th, 2005 04:11 PM
Pictures mani_he Pro PHP 5 October 28th, 2004 09:03 PM
Pictures in HTML Harp Binning HTML Code Clinic 2 October 7th, 2003 05:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.