14

The ability to make text flow around images would be a nice touch!

1
  • any updates on how this can be achieved? Commented May 15, 2012 at 23:42

1 Answer 1

8

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.

1
  • 9
    Transformation is already taking place, so <img align="right" src="..."> could become <div style="float: right;"><img ... /></div>, for example.
    – Greg Bacon
    Commented Feb 23, 2010 at 18:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .