I have long been actively reading and participating in discussions of posts on Habrahabr, and now, having gotten karma, I try to write a second article. And with its design, I cannot get my text in HTML paragraphs
<p> Paragraph text. </ P> - for some reason, habra editor removes them!
I decided to follow the example of the other authors, checked the rest of the articles and was surprised to find that all the paragraphs of them are decorated with tags
<br/> , and mostly two! With this, I was very surprised, because the Habr community publishes many articles on the correct HTML layout, and in the articles themselves do not use the paragraph tag
<p> specifically designed for this purpose to separate articles!
This paragraph not only allows you to make the text more beautiful and readable, but helps search engines and other text analyzers to understand where one semantic block (paragraph) of text ends and where another begins, and the <br/> tag means only a forced line break.
')
As a result, to separate paragraphs, authors are forced to use double line breaks in order to get indentation between paragraphs. Plus, this indent is too large - the whole line, which increases the length of the text and makes it less convenient to read. In the book layout and in other rules for the design of the text, it is assumed that the distance between paragraphs should be visually larger than between the lines within the paragraph, but less than the height of the empty line.
Therefore, to improve the appearance and indexability of texts, as well as to more properly design from the point of view of HTML and the rules of text layout, add all paragraph tags
<p> to the editor:
- Do not cut these tags from the text of the article (many draw up text in third-party editors and as a result, paragraphs are lost when copying to the desktop editor;
- Convert a double line break not into <br/> <br/> but into </ p> <p>, adding the opening <p> tag at the beginning of the paragraph before this.
I would like to hear the opinion of habr developers and other users about this problem and its solution.