I can’t create a paragraph! HTML

Asked

Viewed 66 times

0

I create a <p> and write the paragraph inside it, but when I open the page there are no line breaks, the sentence continues only in one line.

<!DOCTYPE html>

<html>

    <head>

    <meta charset="utf-8"/>
        <title>Guilherme P.</title>
    </head>
    <body>
        <img src="imagem.png">
        <h1 align="center">Essa é a minha primeira página< /h1>
        <p>asadsadsaddaasadsadsaddaasadsadsaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaddaasadsadsaddaasadsadsaddaasadsadsaddasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaaasadsadsaddaasadsadsaddaasadsadsaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaddaasadsadsaddaasadsadsaddaasadsadsaddasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaasadsadsaddaa< /p>
    </body>

</html>
  • Post the entire HTML please

  • Without code it gets complicated. The normal behavior of <p> is line breaking, something in your CSS is changing this.

  • @Stefano is there the code, which could be affecting it?

  • 1

    There’s only one word (gigantic) in your paragraph. There’s nowhere to break.

  • @Stefano was exactly that, thank you very much!!!

  • Okay, separate words from paragraph need to contain spaces.

Show 1 more comment

1 answer

1


<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8"/>

<title>Guilherme P.</title>

</head>

<body>

<img src="imagem.png">

<h1 align="center">Essa é a minha primeira página</h1>

<p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text</p>

<p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text</p>

<p>text text text text text text text text text text text text text text text text text text text text text text text text text text text text</p>

</body>
</html>

  • That way the lines are very separate from each other

  • @Guilhermesteps instead of putting the same paragraph in different tags, could use one and use tags <br> to make the line breaks

  • ex: <p>&#xA; Mussum Ipsum, cacilds vidis litro abertis.<br>&#xA; Quem manda na minha terra sou euzis!&#xA;</p>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.