search

Home  >  Q&A  >  body text

Can you tell me how to use newline output?

/n

</br>

Neither of them can be used. It always prompts an error. When I saw Chapter 3, I didn’t even talk about the use of line breaks. From the beginning, you were talking about the cleanness and beauty of the code, but you ignored the important thing of line break output! ! !

阿超阿超2384 days ago1242

reply all(3)I'll reply

  • Summer

    Summer2018-07-13 12:07:33

    echo ‘</br>’; will break the line

    reply
    0
  • 阿超

    <br/></br>Both are acceptable. I am new to this and I don’t know which one to add br to. Thank you.

    阿超 · 2018-07-13 15:37:11
    Summer

    Your tag < escape is $lt; when the browser parses it, it defaults to them being equal.

    Summer · 2018-07-13 16:57:39
    Summer

    You can just adjust the style on the front end. You don’t need to write these in the background. Or you can add
    directly to the HTML to change the line.

    Summer · 2018-07-13 17:08:17
    阿超

    It will be more troublesome to write than HTML

    阿超 · 2018-07-13 16:58:49
  • Cancelreply