tag:blogger.com,1999:blog-5132959822356754596.post2937482404391178182..comments2022-10-25T04:35:40.191-07:00Comments on AYSO Webmaster Info Spot: Floating Images with Inline StylesAnonymoushttp://www.blogger.com/profile/16690566091281851603noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5132959822356754596.post-19497240950122252902012-11-26T12:40:55.398-08:002012-11-26T12:40:55.398-08:00While this may work, the ALIGN attribute has been ...While this may work, the ALIGN attribute has been deprecated and it is a coding best practice to use the inline CSS method. The problem with using deprecated tags is that they could become obsolete, and the browser won't support them anymore. At that point, you have broken code and will have to go in and correct it.<br /><br />I will take your note on the quotes :) Thanks! <br /><br />The W3C defines DEPRECATED as:<br /><br /><em>A deprecated element or attribute is one that has been outdated by newer constructs. Deprecated elements are defined in the reference manual in appropriate locations, but are clearly marked as deprecated. Deprecated elements may become obsolete in future versions of HTML.<br /><br />User agents should continue to support deprecated elements for reasons of backward compatibility.<br /><br />Definitions of elements and attributes clearly indicate which are deprecated.<br /><br />This specification includes examples that illustrate how to avoid using deprecated elements. In most cases these depend on user agent support for style sheets. In general, authors should use style sheets to achieve stylistic and formatting effects rather than HTML presentational attributes. HTML presentational attributes have been deprecated when style sheet alternatives exist (see, for example, [CSS1]).</em><br /><br />Mikehttps://www.blogger.com/profile/04211856684496515028noreply@blogger.comtag:blogger.com,1999:blog-5132959822356754596.post-13557831134538466552012-11-20T18:54:02.885-08:002012-11-20T18:54:02.885-08:00Please note that the double quotes in the example ...Please note that the double quotes in the example above are "curly quotes" instead of ambidextrous quotes. After copying the example above into your editor, you will have to replace them with normal double quotes.<br />So instead of:<br /> <img src=”myimage.jpg” style=”float: right;”><br />you should be using:<br /> <img src="myimage.jpg" style="float: right;"><br /><br />To wrap text around pictures, you can get the same result with: <br /> <img src="myimage.jpg" <b>align="right"</b>><br /><br /><br />Anonymoushttps://www.blogger.com/profile/05017758051452558866noreply@blogger.com