Get webdwarf for free, make pages with it and then analyse the html it produced, you will figure it in 10 minutes if you ever programmed.