Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


IMG

The IMG element is used to embed an image into the current document.

  • src - URL of the image to embed
  • alt - Alternate text that supplies a short description of the image
  • longdesc - URL to a long description of the image.
  • height/width - Specifies the size of the image allowing the text to load without waiting for the image to drop into place.
  • align - Specifies the object's position with respect to surrounding text:
    • bottom: the bottom of the image should be vertically aligned with the current baseline.
    • middle: the center of the image should be vertically aligned with the current baseline.
    • top: the top of the object should be vertically aligned with the top of the current text line.
    • left: deprecated
    • right: deprecated
  • border - Text links are underlined, graphic links have a border. To turn the border off, set the border attribute to 0 (zero).
  • hspace - horizontal whitespace between the image and the text or surrounding objects.
  • vspace - vertical whitespace between the image and the text or surrounding objects.
  • usemap - use client-side image map
  • ismap - use server-side image map

<STYLE TYPE="text/css">
.wdvl { float: right;
	margin-right: 0 }
.stars { float: left;
	margin-left: 0;
	}
</STYLE>

	<IMG 	SRC	= "img-wdvl.gif"
		CLASS	= "wdvl"
		WIDTH	= 175
		HEIGHT	= 100
		ALT	= ""
		BORDER	= "0"
		>

Entering the above to your style sheet will result in all images with the property CLASS = "wdvl" being right justified.


All images with the CLASS = "stars" will be left justified.

Additional Resources:

HTML 4.01 Tags


Up to => Home / Authoring / HTML / 4 / Tags




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers