Putting Graphics on a Web Page
| Basic Image Tags |
New Alignment Tags |
Controlling Size, Borders, and Spacing |
References |
Basic Image Tags |
Putting an image before textPutting an image in your Web page is as simple as inserting this line,
To get the text to start under the image, put a paragraph tag, <P>, between the image statement and the text. Note: There is a better way to do this with a new tag which was not available in the original version of HTML. See below for how to use this tag.
Putting an image after text To make the image appear under the last line of the text, put the paragraph tag, <P>, between the text and the image statement.
|
The New Alignment Tags |
More ways to align images Whereas all browsers understand the HTML tags we have talked about so far, the newer ones also understand the HTML 3.0 extensions which add the alignment options of
Inserting an image in the left margin
Aligning with the top of the text
Aligning with the middle of the text <img align="absmiddle" src="gfleurx.gif"> places...
Aligning with the bottom of the text |
Controlling Size, Borders, and Spacing - More HTML 3.0 Extensions |
Width and height
<img width="40" height="37" src="gfleurx.gif">
Borders When you use an icon that looks like a button for an anchor (a link), you may not want the anchor-border that is automatically placed around the image. To explicitly turn this off, put BORDER="0" in your image statement. Note: with Internet Explorer, the border will be invisible unless the image is an anchor.
Controlling spacing |
References |
< b06mn20.htm >
Compiled by Chris Kutler
Graphics courtesy of Laurie McCanna.