I have planned to create multiple subdomains to access all my articles.
Its name will be twitter, facebook, Microsoft, etc.
Is this legal as per the domain URL rules?
Yes the subdomain examples you provided should meet the criteria for subdomains. Be sure to update the dns records so the subdomains resolve to the proper ip address and then allow 24 hrs for that to update.