Online Image to HTML Converter

Most web pages are made up of HTML files linked to separate image files. Here’s a way to embed an image directly into an HTML file.

A table is created which is filled with large numbers of 1×1 cells. Each cell has a background colour of the corresponding pixel in the image. That’s all it is; just a massive grid of coloured table cells. View the source to see the details.

It might not be useful but the lesson here is to think outside the box. Images and HTML are more interchangeable than they look. With a little imagination one can make small, dynamic and visually appealing content without resorting to Flash or Shockwave.

Read more | Digg story

Comments are closed.