How to Wrap text in Html

If we want to wrap the text in Html, then we have to follow the steps which are given below. Using these steps, any user can easily wrap any text, which is to be shown on the web page.

Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to wrap the text.

Step 2: Now, we have to use word-wrap property. So, we have to place the cursor between the head tag just after the title tag. And, then we have to define a class and

sector in the

Step 3: Now, we have to define that class before the text, which we want to wrap.

Step 4: And, at last, we have to save the file and run the file in the browser.

Test it Now

The output of above Html code is shown in the following screenshot:

How to Wrap text in Html




Contact US

Email:[email protected]

How to Wrap text in Html
10/30