A step-by-step guide
I'll assume you have the manuscript of your book typed into a word processor. If your manuscript is hand written or typed with a tripewriter typewriter - Oops, you really need to word process it and save it in docx format. Use a word processor such as Microsoft Word, Google Docs or Writer from Open/Libre Office. Each will allow you to use styles and save in docx format. Not got a computer? Try using one at your local library.
You'll find it easier to start by producing a paper book even if you plan on producing ebooks. What's the correct spelling of this?
Dictionaries say 'e-book'
Microsoft says 'eBook'
A Google search indicates the most common spelling is 'ebook' so that's what I'll use.
Click each step to get more details.
On the face of it Traditional publishing seems simpler BUT agents and publishers are not easy to find and the timescale involved can be up to two years if you do find an agent and they find a publisher.
Whether you are traditional published or self published you will need to promote your book to avoid it languishing amongst millions of other books available. A traditional publisher should give you some guidance on this. Self-publishers are on their own.