Good article. I’d like to add one more factor to consider when deciding between img tags and CSS background-images: CSS background-images are often omitted when the web page is printed. This is consistent with the example given: an error icon conveys information and ought to be printed, and is therefore not just a decorative background.
Good article. I’d like to add one more factor to consider when deciding between img tags and CSS background-images: CSS background-images are often omitted when the web page is printed. This is consistent with the example given: an error icon conveys information and ought to be printed, and is therefore not just a decorative background.