The ability to make text flow around images would be a nice touch!
1 Answer
The align
attribute is deprecated, and is not allowed at all in http://www.w3.org/TR/html4/strict.dtd
, which is the DTD which sites in the Stack Overflow family use.
In that DTD, the allowed attributes for image are as follows:
<!ATTLIST IMG
%attrs; -- %coreattrs, %i18n, %events --
src %URI; #REQUIRED -- URI of image to embed --
alt %Text; #REQUIRED -- short description --
longdesc %URI; #IMPLIED -- link to long description
(complements alt) --
name CDATA #IMPLIED -- name of image for scripting --
height %Length; #IMPLIED -- override height --
width %Length; #IMPLIED -- override width --
usemap %URI; #IMPLIED -- use client-side image map --
ismap (ismap) #IMPLIED -- use server-side image map --
>
We'd better use something else if we want to do this.
-
9Transformation is already taking place, so
<img align="right" src="...">
could become<div style="float: right;"><img ... /></div>
, for example. Commented Feb 23, 2010 at 18:46