Forum Moderators: open
For example:
<p><img align="right" src="widgets.jpg">Here is some text that will be rendered to the left of the right-aligned image. If the text is long enough it'll wrap under the image.</p>
But I'm not a CSS purist...I'm more of a pragmatist...so I might have just commited a mortal sin to say that stylistic attributes in the markup are OK... ;)
Jordan
putting an align="right" attribute in an img tag
If you haven't already formed this habit, my advice is not to start. The align= attribute in HTML is deprecated, and it's not valid in HTML 4.01 strict.
So use CSS float:right; rules and be glad. CSS gives you more flexibility, especially around margins/padding for the images. The old vspace and hspace attributes (also deprecated) could only apply equal spacing on two sides of an image at the same time.