Why do you use <br> instead of <p> to split the answer section? -

Source: Internet
Author: User
Derived from: www. zhihu. comquestion28634169answer%63077 I remember that when Medium published an article, it will automatically remove the text layout of the author's own line feed and convert it into a unified & lt; p & gt ;, then, the Medium CSS controls the segment spacing to achieve a unified effect. So I know that this is a lazy derived from: http://www.zhihu.com/question/28634169/answer/41563077
I remember that when Medium published an article, it will automatically remove the la s of the writer's own line feed and convert them into one

And then the Medium CSS controls the segment spacing to achieve a unified effect. So do you know this is a lazy? = reply content: A simple sentence:

Zhihu engineers responsible for this part of the function lack the pursuit of extreme excellence. It is mainly convenient.



It is one-to-one correspondence with the line breaks entered by the user, so it can always meet the user's expectation of line breaks. While

The style contains the Spacing Before and After segments, and the rows are high, which does not necessarily meet the user's expectations. Because user line breaks do not mean he wants to enter a new paragraph.
For example, if multiple rows are empty, the layout you want is as high as that of multiple rows.

It will become empty multi-line segment spacing.

So even though the frontend is annoying
Typographical, but I still think
Aspect Ratio

More convenient and secure. After all, users' intentions are hard to guess.
Of course, none of these problems can be solved, or they are troublesome. Perhaps this is what @ He Shijun's predecessors said lacks the ultimate pursuit. It is completely the frontend programming habit. Why bother with the experiment? In the editor, I press enter, that is, press enter, and I will open another section (controlled by p), press shift + enter, that is, press enter to use the br label. However, when I publish the product, all of them are changed to "br. So is it processed by the backend?
The answer to zhihu does not need to be in the green format or in the style.
However

Saves a lot of bytes. Why not

? I have read the p instead of p in both the 163 and QQ mailboxes. I don't know why it is convenient, because the rich text editor will press enter by default and there will be one more

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.