![]() |
The <p> tag makes a blank linesDefinition and UsageThe Browsers automatically add a single blank line before and after each Browser SupportGlobal AttributesThe Event AttributesThe
|
Example:
HTML
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
This is some text in a paragraph.
Example:
HTML
<p style="text-align:right">This is some text in a paragraph.</p>
See the Example and Learn More.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
p {
color: navy;
text-indent: 30px;
text-transform: uppercase;
}
</style>
</head>
<body>
<h1>Style paragraphs with CSS</h1>
<p>World Wrestling Entertainment is an American professional wrestling promotion. It is owned and operated by TKO Group Holdings, a majority-owned subsidiary of Endeavor Group Holdings.</p>
<p>Prior to September 2023, the company's majority owner was its executive chairman, third-generation wrestling promoter Vince McMahon, who retained a 38.6% ownership of the company's outstanding stock and 81.1% of the voting power. The current entity, which was originally named Titan Sports, Inc., was incorporated on February 21, 1980</p>
</body>
</html>
See The Example and Learn More.
Example:
HTML
<p>
This paragraph
contains a lot of lines
in the source code,
but the browser
ignores it.
</p>
Note that the browser simply ignores the line breaks in the source code!
Example:
HTML
<p>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</p>
Most browsers will display the <p>
element with the following default values.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
p {
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}
</style>
</head>
<body>
<p>A p element is displayed like this:</p>
<p>This is a paragraph.</p>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
Read Full: | HTML Tag |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |
Views: | 180 |
Reffered: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_paragraphs1