There are many ways to create websites. Let me tell you a couple of them.
1. As you are new to web development and have just learned some programming languages, you can try creating a blog on blogger.com or wordpress.com first. They offer free services. You should have knowledge about HTML, CSS, etc. If you know Javascript, AJAX, etc. that would be great. If you start from here you will have a fair idea of the management of content on the website and you can also do some experimentation on it before making it big by buying a custom domain.
But one of the major problems with these free services is that we can choose the name that we want for the website but they will add their name along with our url. For. e.g. www.something.blogspot.com.
2. If you want to buy a custom domain then you can get rid of all the problems and create the website the way you want it to be. But here you have to have a better knowledge of their interface.
They also provide themes for website and also some tool for designing. You can also download themes/templates from the internet to get started.
You can buy domain online using credit card, debit card or online banking from websites like in.godaddy.com, bigrock.in, domain.com, etc.
Some things to keep in mind while developing website:
If you are serious about continuing with the website then, you should update your website regularly and add quality content to it. You can also monetize your website by signing up for ad services. You can google about that.