How Do I Use CSS to Replace the Deprecated HTML Border Attribute on Images?
If you’re anything like me, adding border=”0″ to images that are links to other documents is probably something you do almost automatically. Using the border attribute of the tag is the way in which we all learned to ensure that an ugly blue border didn’t appear around our navigation buttons and so on. However, border has been deprecated in the current versions of HTML and XHTML. Solution Just as you can create a border, so you can remove one. Setting an image’s border property to none will remove those ugly borders.