Alinhamento de múltiplas linhas de parágrafo HTML

Alinhamento de múltiplas linhas de parágrafo HTML

Quando abro este documento HTML no Chrome. A linha que diz "Linha 2". Como faço para alinhar ao centro também sem iniciar uma nova tag de parágrafo.

<html>
<head>
<title>HTML page</title>
</head>
<body>
<h1 align=center> Heading </h1>
<hr width=50%>
<p align=center>Paragraph Line 1<br/> <hr width=25%> Line 2 </p>
<p align=center>New paragraph.</p>
</body>
</html>

Responder1

Você pode usar a <DIV>tag para definir uma seção agrupando os parágrafos como tal:

 <html>
    <head>
      <title>HTML page</title>
    </head>
    <body>
     <h1 align=center> Heading </h1>
     <hr width=50%>
     <DIV align="center">
        <p>Paragraph Line 1 <hr width=25%> Line 2</p>
        <p>New paragraph.</p>
      </DIV>
    </body>
 </html>

informação relacionada