Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

133
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda