Buy a "How to play guitar" book. In the scheme of what you'll spend on guitars and accessories, $20 on a book is a great investment.
I don't want to recommend any particular book, because different people have different ambitions and learning styles. If you want to shred heavy metal solos, you'll buy a different book to if you want to strum folk ballads. Browse in a bookshop or music shop, and pick one that appears to suit you. You could also start with a library book.
Any good book will start by showing you how to hold the instrument properly, then move on to well graded exercises and tunes to play.
If you can afford a few lessons, it's money well spent. Failing that, it's great to have a friend or family member to mentor you.
Once you're able to strum a few chords, also get a songbook -- one with songs you know and love, with lyrics and chords. This might seem like a waste of money, when you can find guitar chords on the Internet. But it's useful to have them on paper, and the tabs and chords on the internet are very often not quite right.
Then you can split your time between technique (from the "how to" book), and repertoire (from the songbook etc.)
As soon as you think you can play to an audience, do. It's a great incentive to keep learning and improving.