Quackit Logo

HTML Picture Codes

You can use the following HTML code to embed a picture into your HTML document.

You can also check out the HTML images section of the HTML Tutorial.

Example Picture Code

<img src="http://www.quackit.com/pix/milford_sound/milford_sound_t.jpg" width="225" height="151" alt="Milford Sound in New Zealand" />

This code results in:

Milford Sound in New Zealand

Picture Code Template

You can use the following template as a basis for your HTML picture codes. Simply fill in the blanks or remove uneeded attributes.

For an explanation of all the attributes, see the HTML img tag specifications.

<img	src=""
	width=""
	height=""
	border=""
	alt=""
	class=""
	id=""
	title=""
	style=""
	dir=""
	lang=""
	ismap=""
	usemap=""
	align=""
	hspace=""
	vspace=""
	onclick=""
	ondbclick=""
	onmousedown=""
	onmouseup=""
	onmouseover=""
	onmousemove=""
	onmouseout=""
	onkeypress=""
	onkeydown=""
	onkeyup="" />

Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!