html-php page Output Why is the line break missing?

Source: Internet
Author: User
Tags what php

  
   

And


  
   

Why are the two ways of writing the same effect on the output of the page? It is obvious that there is a line break before the second one.

Reply content:


  
   

And


  
   

Why are the two ways of writing the same effect on the output of the page? It is obvious that there is a line break before the second one.

This indicates that PHP will be ignored when parsing a php file ?> with a newline character after The Terminator ().

If you want to create a new line, you need to press the carriage return more.

The final page has the same effect, and the text in the HTML needs to be
labeled to wrap.

Suggest LZ to look at the basics of HTML

It doesn't matter what PHP is, HTML
Label return

Line break to add a newline symbol
, you don't have to pay attention to these details.

When parsing HTML, ignore spaces and enter

This is a problem with HTML you don't have HTML line breaks. It's not like you're going to be able to wrap the page with a line.

Spaces, line breaks, will only parse into a space character;
PHP will only change the source of the Web page;
Style Wrapping uniform usage

  • 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.