how do you write a dialogue?
I have attached a link which you might find useful. The way you write your dialogue depends on how many characters you have. Also, what format are you using? For example, creating dialogue for a play is more manageable than for a story.
(Open up a book you love and see how the author creates dialogue, too.)
I hope this was helpful.