Most of the websites are designed in photo editing software such as Photoshop  then are 'sliced'. Slicing is the process of cutting up the image into smaller logical images. Normally these tools don't automatically generate the html, they would just slice the image into smaller images that can be put together again with html by the web developer.