Yup, see, on web there is basically two sides, Client Side and Server Side.
A client interacts with a page, and back on the web server program logic decides what to do with the input that came and etc.
So client side languages generally used are, HTML(Content of the page), CSS(For designing the page), Javascript and/or jQuery (To make user validation and other interaction more pleasant) etc.
Now comes server side, here too many languages can be used, general ones are PHP, ASP.NET(with VB / C#), JSP. You can also use Python, Perl etc, using CGI scripts.
Same for databases, you can use any of them, but most recognized ones are MySQL(generally used along with PHP), MSSQL Server(generally used along with ASP.NET), Oracle etc.