HTML <p> Tag

Advertisements


Description

The HTML <p> tag defines a paragraph of text.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML p Tag</title>
</head>
<body>
<p>This paragraph is defined using the HTML p tag</p>
</body>
</html>

This will produce following result:

This paragraph is defined using the HTML p tag

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <p> tag also supports following additional attributes:

AttributeValueDescription
alignleft
right
center
justify
Specifies text alignment within a paragraph.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm

Advertisements