Develop and demonstrate, using Javascript, a xHTML document that contains three short paragraphs of text, stacked on top of each…