Delve into "<br/>" and &q_php Tutorials

Source: Internet
Author: User
Tags html interpreter word wrap
\ r \ n is the output HTML code wrapping, the customer sees the effect does not wrap.

The opposite
Effect:
I am content \ r \ n I am content
I am the content
I am the content
==================================================
\ r means: Carriage return (acsii:13 or 0x0d), which is what we often call a hard return.
\ n means: line break (Acsii:10 or 0x0a), is what we often say the soft return.

These two are not visible on the page. Right-click on the source file to see the code line wrapping
==================================================
If it is output to the browser, use the

If it is output to its own file, use "\ n", under Windows is "\ r \ n"
==================================================
\ n, like you make a Web page in Dreamweaver, click Enter in the source code, is to give the source code line-wrapping.
is to output one (HTML markup language) that is interpreted as the input word wrap in HTML. \ nthe function is to feed the source code, after the input, look at the HTML source code, it will be to have a newline, and the HTML interpreter (browser) that it is useless, use the same display.
==================================================
\ n is the source code line-Wrapping!

is Web page performance wrapping!!
==================================================
Attached: in-depth PHP nl2br () format output detailed

http://www.bkjia.com/PHPjc/327306.html www.bkjia.com true http://www.bkjia.com/PHPjc/327306.html techarticle \ r \ n is the output HTML code wrapping, the customer sees the effect does not wrap. br/The opposite effect: I am content \ r \ n I am content I am content br/I am content ========================== ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.