Inline Images Inline images give the Web much of its visual appeal.
They can also cause people on the end of a slow link to give up and
go elsewhere; so unless large inline images are somehow vital to your
goal, try to avoid them or offer smaller versions or offer alternate
pages for those who prefer to avoid your images.
Embed a graphic image in the document. Small icons like the following however have almost negligible transfer cost and can greatly enhance the appearance of your pages. The Img tag declares an in-line image; the URL pointing to it is specified by the Src tag:
which produces
Be sure to supply WIDTH and HEIGHT attributes in the IMG tag. This allows the browser to layout the page before all the graphics have downloaded, otherwise it won't know how much space to allocate till the graphics are fully downloaded. Here's a list of the main IMG attributes:
Images: The Align AttributeSpecify a relationship to surrounding text. The argument for align can be one of left, right, top, middle, or bottom.
displays the
displays the
displays the
displays the
displays the Images: The Alt AttributeAllows a text string to be put in place of the image in clients that cannot display images.
will display the text in a text environment. Unfortunately it's not used when image loading is suppressed. Images: The Border AttributeAn inline image can also be a hyperlink. The Border attribute allows the image to be displayed without the normal hyperlink highlighting and appear like a normal inline image.
which produces
which produces
Height and WidthAllows the browser to set aside space for the graphic so text can load quickly. Helps to retain page formatting even when image links are broken. Units are in pixels.
Of course, with every rule there is an exception. In this case, if the alt text won't fit into the space set aside by the height & width attributes, the attributes should be omitted. The alt text will then be fully displayed (image loading off). HTML for Web GraphicsWhen authoring HTML with style, you might use cascading style sheets, or graphics tools to create background images, icons, 3d graphics. Multimedia can help to animate them, e.g. using GIF animation or Java applets. For interactivity use forms processed by JavaScript or CGI software. Use META tags to help search engines find you on the Internet. Our reference index or the WWW-VL can help you locate more. |
| |||||||
|---|---|---|---|---|---|---|---|
|
Advertising.
Hosted by Charm Net.
© 1997 CyberWeb SoftWare.
Legal Stuff.
10/Nov/1997 http://Stars.com/Authoring/HTML/Body/img.html |
|
|
|
|
|---|