When writing a paragraph tag (

), especially in a WYSIWYG HTML editor, pressing the Enter key creates a new paragraph and not a new line. To create a new line in an HTML paragraph tag, follow the steps below depending on how you are writing the HTML.

Creating a new line in HTML code

If you are writing the HTML, you can create a new line using the
(break) tag, as shown in the example below.

Example code

Example of
text that is using
the <br> tag to break
a paragraph.

Example code output

Example of text that is using the
tag to break a paragraph.

Creating a new line in WYSIWYG editor

A new line can be created in WYSIWYG editors. Examples include the online editor used in a CMS program, like WordPress, or an HTML editor, like Dreamweaver, with a keyboard shortcut. Most programs and online forms support the Shift+Enter keyboard shortcut. To use this shortcut, move to the text cursor to where you want the new line to begin. Then, press and hold Shift, and press Enter.

If this keyboard shortcut does not work, it is likely only possible to enter a new line by manually inserting a line break ("
" tag) in the document’s HTML code.

  • See our

    and
    tag pages for further information and related links on these tags.

  • HTML and web design help and support.