For a beginner like yourself, you may want to try to a project that is a lot easier.
To get a taste for BASIC web development, download and install a PHP - SQL server such as WAMP, MAMP, or LAMP . [*1]
From this point - there are tons of helpful Web Dev language tutorials and instructions HERE . ( Do not worry about libraries, frameworks, or engines right now - you need to learn the basics !!! )
Your first task, once you think you have learned the basics, is to create a forum on your PHP - SQL server without any additional libraries or addons . ( This will take a while, and should teach you a lot of the fundamentals ).
Your next task is to create a website that interacts with your forum without any additional libraries or addons. ( This will also take a while to do correctly )
From that point, figure out how you want to do your game. It's imposable to tell you which language and frameworks would be suitable. This is something you will have to experiment with on your own.
Some of the more common languages that could be used for games like what you described : Java, JavaScript [*2], C#, C++, Ruby [*3], Python [*2], and many more.
*1 - over 80% of all websites in the world use PHP .
*2 - using third party libraries.
*3 - Ruby On Rails framework .