Search⌘ K
AI Features

Adding Paragraphs and Text Breaks in HTML

Explore how to properly add paragraphs and control line breaks in HTML using the p, br, and wbr tags. Understand their effects on text layout and styling, and how to enhance web pages with clear, well-structured content.

As you have already learned, when rendering the HTML markup, the browser ignores line breaks in the page’s source code. It behaves as if line breaks were single space characters. In many cases, you want to control explicitly where to break lines. HTML provides two tags for this purpose.

The <p> markup designates a paragraph. It surrounds the text and other markups that should be rendered as a single paragraph. The <br/> markup causes the browser to start a new line.

The HTML page shown in the Listing below helps you ...