Which tag is used to wrap the text to the next line?


Example

Allow long words to be able to break and wrap onto the next line:

div {
  word-wrap: break-word;
}

Try it Yourself »


Definition and Usage

The word-wrap property allows long words to be able to be broken and wrap onto the next line.

Show demo ❯

Default value:normal
Inherited:yes
Animatable:no. Read about animatable
Version:CSS3
JavaScript syntax: object.style.wordWrap="break-word" Try it


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
word-wrap 4.0 5.5 3.5 3.1 10.5


CSS Syntax

word-wrap: normal|break-word|initial|inherit;

Property Values

ValueDescriptionDemo
normal Break words only at allowed break points. This is default Demo ❯
break-word Allows unbreakable words to be broken Demo ❯
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit


CSS tutorial: CSS Text Effects



Try the HTML Course for Free!

Which tag is used to wrap the text to the next line?

Add a Line Break in HTML: Overview

            This tutorial shows you how to add a line break in HTML. By default, browsers ignore many formatting keystrokes that we take for granted. Examples include the “Enter” and “Tab” keys and multiple uses of the spacebar. To accomplish the same tasks in HTML, you use page formatting tags.

            Web browsers wrap text automatically to the next line when the current line reaches the right side of the browser. When you add a line break in HTML, you avoid this text wrapping and start new text the next line. To add a line break to your HTML code, you use the <br> tag.  The <br> tag does not have an end tag. You can also add additional lines between paragraphs by using the <br> tags.  Each <br> tag you enter creates another blank line.

Start Tag: <br>
End Tag: None
Attributes: None
Example: <p>This is where your fist line of text goes

<br>Your second sentence would begin on the next line.

</p>

Each <br> tag begins a new line.
Result: This is where your first line of text goes.

Your second sentence would begin on the next line.

Which tag is used to wrap the text to the next line?

Add a Line Break in HTML – Tutorial: A picture of the line break tag used in HTML code.

Add a Line Break in HTML: Instructions

  1. To add a line break in HTML, open an HTML document to edit the HTML code.
  2. Then place your cursor at the place in the HTML code where you want to enter a line break.
  3. Then type the tag: <br>

Add a Line Break in HTML: Video Lesson

            The following video lesson, titled “Adding a Line Break,” shows how to add a line break to HTML code. This video lesson is from our complete HTML5 and CSS3 training, titled “Mastering HTML5 and CSS3 Made Easy v.1.0.”

Tagged under: add, break, code, coding, course, edit, help, how-to, html, html break, html line break, html new line, html next line, HTML tutorial, html5, insert, instructions, learn, lesson, line, line break, line break in html, new line html, new line in html, next line in html, overview, self study, tag, tags, teach, training, tutorial, video

What tag is used to make text wrap to the next line?

Web browsers wrap text automatically to the next line when the current line reaches the right side of the browser. When you add a line break in HTML, you avoid this text wrapping and start new text the next line. To add a line break to your HTML code, you use the <br> tag.

What is the tag for next line in HTML?

The <br> tag inserts a single line break. The <br> tag is useful for writing addresses or poems. The <br> tag is an empty tag which means that it has no end tag.

Which option is used to wrap the text?

Wrap text around a picture or drawing object Select the picture or object. Select Format and then under Arrange, select Wrap Text. Choose the wrapping option that you want to apply.