HTML img Tag
The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.
img tag is used for embedding images into an HTML document.
To use this tag, the image you specify in the
src attribute needs to be available on a web server. This could be your own web server or another web server (such as PhotoBucket).
For more information on creating graphics for the web, check out the web graphics tutorial.
To link an image to another web page (or a larger version of the image), you simply nest the
<img> tag inside an
<a> tag. Here's an example of linking an image.
You can also link your image to an image map.
|Try it yourself!||
Also see the HTML 5 version of HTML tags
Enjoy this page?
- Link to this page (copy/paste into your own website or blog):
- Link to Quackit using one of these banner ads.
Thanks for supporting Quackit!