Things may seem a bit dull and boring with all the formatting of text. Of course, the web is not just text, is multi-media and the most common form of media is the image.
The img tag is used to put an image in an HTML document and it looks like this:
<img src="#" width="157" height="70" alt="HTML Dog logo" />
The src attribute tells the browser where to find the image. Like the a tag, this can be absolute, as the above example demonstrates, but is usually relative. For example, if you create your own image and save it as "alienpie.jpg" in a directory called "images" then the code would be <img src="images/alienpie.jpg"...
0 comments:
Post a Comment