11.8. HTML paragraph

发布时间 : 2025-10-25 13:33:09 UTC      

Page Views: 10 views

HTML can split a document into paragraphs.

11.8.1. HTML paragraph

The paragraph is through the

defined by the label.

Example

<p>This is a paragraphp><p>This is another paragraphp>    

Note: the browser automatically adds blank lines before and after the paragraph. ( is a block-level element)

11.8.2. Don’t forget the closing tag.

Even if you forget to use the closing tag, most browsers will display the HTML correctly:

Example

<p>This is a paragraph<p>This is another paragraph 

The above example is fine in most browsers, but don’t rely on it. Forgettingto use the closing tag can produce unexpected results and errors.

Note: the closing tag is not allowed to be omitted in future versions of HTML.

11.8.3. HTML wrapping

If you want to wrap a new line without generating a new paragraph, use the
label:

Example

<p>This paragraph demonstrates the effect of branchingp>    


element is an empty HTML element. Because closing the tag does notmake any sense, it does not end the tag.

11.8.4. HTML output-use reminder

We are not sure exactly how HTML is displayed. The size of the screen and the adjustment of the window can lead to different results.

With HTML, you cannot change the effect of the output by adding extra spacesor line breaks to the HTML code.

When the page is displayed, the browser removes excess spaces and blank lines from the source code. All consecutive spaces or blank lines are counted as a space. It is important to note that all consecutive blank lines(newlines) in the HTML code are also displayed as a space.

(this example demonstrates some problems with HTML formatting.)

Image0

11.8.5. An example of this site

HTML paragraph

How to display HTML paragraphs in a browser.

New line

Use line breaks in HTML documents.

Typesetting a Tang poem in HTML code

When the browser displays HTML, it will omit the extra white space characters (spaces or carriage returns, etc.) in the source code.

11.8.6. More Instance

More paragraphs

The default behavior of the paragraph.

11.8.7. HTML tag reference manual

The label reference manual for the rookie tutorial provides more information about HTML elements and their attributes.

Label

Description

< p >

Define a paragraph

< br >

Insert a single line break (line wrap)

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。