Quackit

This is the print version of http://www.quackit.com/html/codes/html_picture_codes.cfm


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

This code results in:

Milford Sound in New Zealand

Image Links

You can hyperlink images so that when clicked on, another page is displayed. You can also create image maps - clickable "hotspots" on your image.

For more info, see the following:

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="" />