English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML <p>-Tag definiert einen Absatz im HTML-Dokument. Dieses Tag wird auch als <p>-Element bezeichnet.
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 ‹/›
IEFirefoxOperaChromeSafari
Most browsers currently support the <p> tag.
<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.
HTML 4.01The align attribute of the middle tag has been deprecated, the difference in HTML5This attribute is not supported.
Attribute | Value | Description |
---|---|---|
align | left right center justify | HTML5Not supported. HTML 4.01Deprecated. Not recommended. Use styles instead. Specifies the alignment of the text within the paragraph. |
<p> Tag supports global attributes, see the complete attribute table HTML Global Attributes.
<p> Tag supports all HTML Event Attributes.
HTML Tutorial:HTML Paragraph