185k views
4 votes
4. Write the HTML code to create two paragraphs of text separated by a horizontal line.

1 Answer

2 votes

To create two paragraphs of text separated by a horizontal line using HTML, you can use the following code:

<p>This is the first paragraph of text.</p>

<hr>

<p>This is the second paragraph of text.</p>

The '<p>' elements represent the paragraphs of text, and the '<hr>' element represents the horizontal line that separates the two paragraphs. When this code is rendered in a web browser, it will display the two paragraphs of text with a horizontal line between them.

User Sckott
by
4.6k points