Wed. Nov 13th, 2019


The personal pages

Online Image to HTML Converter

1 min read

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

Copyright © All rights reserved. | Newsphere by AF themes.
Get every new post delivered to your inbox
Join millions of other followers
Powered By