Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
Display multiple lines (<p> tags) as a paragraph

I want to display multiple lines for example:

  1. This is first sentence.
  2. This is second sentence.
  3. This is third sentence.

These three sentences need to displayed as -

This is first sentence. This is second
sentence. This is third sentence

Sample html for this could be

<p id="line-1"></p>
<p id="line-2"></p>
<p id="line-3"></p>

The use case is I need to track and save changes done in each sentence and save them seperately.

Any help appreciated.

about 4 years ago · Santiago Gelvez
3 answers
Answer question

0

You can try this

<body>
    <p>
        <span>This is first sentence. This is second
        sentence. This is third sentence</span>
    </p>
</body>
about 4 years ago · Santiago Gelvez Report

0

Attach style display: 'inline-block' | 'inline'

<p id="line-1" style="display: inline"></p>
<p id="line-2" style="display: inline"></p>
<p id="line-3" style="display: inline"></p>
about 4 years ago · Santiago Gelvez Report

0

You can use </br> to split the statements in different lines.

<body>
    <p id="line-1">1. This is first sentence.</br></p>
    <p id="line-2">2. This is second sentence.</br></p>
    <p id="line-3">3. This is third sentence.</p>
</body>

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!