html then sql
For software it depends both on the function of the software and the target environment. Nothing general can be said about it. Your iPhone app will use a different programming language than your Windows utility.
The best tool to make websites depends on the functionality the website needs. There's nothing wrong with using a CMS like joomla or wordpress for certain websites, like there's nothing wrong with using .Net or Java EE or PHP for other types of websites or simple html for still others.
Enter for your chance to win* a game hardware bundle
One lucky winner will walk away with a gaming monitor, keyboard and mouse. Two lucky runners-up will score a gaming headset.