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

Online-Tools

Referenzhandbuch

: <progress> Tag

HTML p align Eigenschaft

 HTML <p> Tag

p align-Eigenschaft legt die Ausrichtung des Textes im Absatz fest.

Online-Beispiel

Beispiel
<!DOCTYPE html>
<html>
<head> - <title>HTML:<p> align-Eigenschaft3codebox.com)</title>
</head>
<body>
<p align="right">Ein rechter-ausgerichtetes Absatz.</p>
<p align="left">Ein linker-ausgerichtetes Absatz.</p>
</body>
</html>
Testen sehen ‹/›

Browser Kompatibilität

IEFirefoxOperaChromeSafari

All major browsers support the align attribute.

Definition and Usage

HTML5 The <p> align attribute is not supported. Please use CSS instead.

In HTML 4.01 In it, the align attribute of <p> is deprecated.

The align attribute specifies the alignment of the text in the paragraph.

Compatibility Comments

In HTML 4.01 In it, the align attribute of <p> is deprecated, please use CSS instead.

CSS Syntax: <p style="text-align:right">

CSS Example: Align text in a paragraph

In our CSS tutorial, you can find more about text-align Attribute details.

Syntax

<p align="left|right|center|justify">

Attribute Value

ValueDescription
leftLeft align text.
rightRight align text.
centerCenter align text.
justifyExtend the line, so that each line can have equal width (as in newspapers and magazines).
 HTML <p> Tag