After you have an image ready to go, you can include t on you r web page, in line images are placed in HTML documents using the <img> tag. This tag, like the <hr> and <br> tags, has no closing tag in HTML. For XHTML, you must add an extra space and forward slash to the end of the tag to indicate that it has no closing tag.
NOTE
To use the <img> tag is src, which is the URL of the image you want to include. Paths to images are derived in the same way as the paths in the href attribute of links. So, to point to a GIF file named image. Gif in the same directory as the HTML document, you canuse the following XHTML tag:
<img src = “image – gif” />
For an image file one directory up from the current directory, use this XHTML tag:
<img src =”image .gift”/>
And so on, using the same rules as for page names in the href part of the <a> tag. You can also point to images on remote servers from the src attribute of an <img> tag, just as you can from the href attribute of a link. If you wanted to include the image example. Gif from www.example.com on your web page, you could use the following tag:
<Img src =http://www.example.com/example.gif/>
CAITOPM
Just because you can use images stored on other servers for you own we pages doesn’t mean that you should. There are a lot of legal, ethical, and technical issues involved with using images on other sites. I’ll discuss them later in this lesson.
No comments:
Post a Comment