English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <p> Tag

HTML <p>-Tag definiert einen Absatz im HTML-Dokument. Dieses Tag wird auch als <p>-Element bezeichnet.

Online-Beispiel

Nachfolgender Code markiert einen Absatz:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Verwendung des HTML-p-Elements (Grund教程网 oldtoolbag.com)</title>
</head>
<body>
<h1>Überschrift 1</h1>
<p>Dies ist der erste Absatz, der unter der Überschrift erscheinen würde 1.</p>
<p>Dies ist der zweite Absatz.</p>
</body>
</html>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Most browsers currently support the <p> tag.

Tag definition and usage instructions

<p> Tag defines a paragraph.

<p> is the most commonly used block-level element.

Paragraphs defined with <p> tags have extra spacing before and after the <p> tags.

The <p> element automatically creates some whitespace before and after it. Browsers automatically add this space, and you can also specify it in the style sheet.

in HTML 4.01 and HTML5is

HTML 4.01The align attribute of the middle tag has been deprecated, the difference in HTML5This attribute is not supported.

Attribute

AttributeValueDescription
alignleft
right
center
justify
HTML5Not supported. HTML 4.01Deprecated. Not recommended. Use styles instead. Specifies the alignment of the text within the paragraph.

Global Attributes

<p> Tag supports global attributes, see the complete attribute table HTML Global Attributes.

event attributes

<p> Tag supports all HTML Event Attributes.

Related Articles

HTML Tutorial:HTML Paragraph