HTML paragraph

1. Definition
The so-called paragraph, the English word is "paragraph" and the label is <p>, which represents a paragraph in the text.

2. Grammar
<p>Text content</p>

3. Attribute
align, alignment . The values ​​are: left (left), right (right), center (center).
<p align="center">Paragraph text</p>, this piece of code means that the text is left aligned.

4. Note
1. <p> tags normally appear in pairs, although in actual use, only <p> is often seen but not< ;/p>, but Brother Hong still recommends that writing should be standardized.
2. The <p> tag is a segment, and the <br> tag is a line break. The main difference between the two is that the line spacing of the <p> tag is larger than that of the <br> tag.
3. The <p> tag is a block-level element.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网(php.cn)</title>
</head>
<body>
<p>段落1</p>
<p>段落2</p>
<p>段落3</p>
</body>
</html>

HTML line break

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网(php.cn)</title>
</head>
<body>
<p>这个<br>段落<br>演示了分行的效果</p>
</body>
</html>

Note: The <br /> element is an empty HTML element. Since a closing tag doesn't make any sense, it doesn't have a closing tag.

HTML Output - Usage Reminder

We cannot determine the exact effect of the HTML being displayed. The size of the screen, as well as adjustments to the window, may lead to different results.

With HTML, you cannot change the output by adding extra spaces or line breaks to the HTML code.

When displaying the page, the browser will remove extra spaces and blank lines in the source code. All consecutive spaces or empty lines are counted as one space. Note that all consecutive empty lines (newlines) in HTML code are also displayed as a single space.


Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> <p>电影双周刊:《无间道三:终极无间》评论专题</p>  <p>落幕后 刚刚开始</p>    <p>2002年岁末,神话开始。2003年秋冬,走向高潮和终极。《无间道》即自承取乎佛家理念,光明与黑暗、生存与消亡、存在与虚无纠结于混然一体,愕然分崩离析,亦是丰富兼统一的过程。有因就有果,有孽就有缘,境与相的妙处在于言诠的限度,不可道破,又不可沉默,相互依托。心音始终在,拷问自我,拷问时空。这是最好的时代,这是最坏的时代,几乎每个时代的人都在这么说。<br>然而《维摩诘经·观众生品第七》中说:无住则无本。从身体的言行开始,经过辩难言说的层面,初步达到存有自视境界,最后不过是归结为生存的态度。在我看来,刘健明、陈永仁、韩琛、黄志诚、倪永孝、陆启昌、杨锦荣、沈澄等人其实是宿命中的镜像人物,都可以从对方身上看到自我,抗争、迸发、沉雄、挥洒,仿佛的劫数、扭曲的生命,于是乎“无间道”。</p>  <p>顾准说从理想主义到经验主义,王小波说要警惕僭主和英雄,谁是英雄?他们从哪里来?他们来了又怎样?我们这个时代还要不要英雄?我在编辑这期E论坛时,有一些欣慰,从文字中可以看出大家都在思考,毕竟我们不再是盲从的一代。<br>在我看来,娱乐从来就不仅仅是娱乐本身,从一滴水、一朵花、一粒沙可以看到一个世界,从一场电影中我们想到的注定更多,理解定可变奏无穷。我们每个人就构成了这个世界,无论这个世界是好是坏,我们都有份。我们每个人都有自己的生活,都有优点都有缺点,这是我们共同进步的基础。</p> </body> </html>
submitReset Code