Example

HTML




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML p Tag</title>
</head>
 
<body>
    <h2>HTML p Tag</h2>
 
    <p>Welcome to w3wiki</p>
 
    <p>A computer science portal for geeks</p>
</body>
 
</html>


Output:

HTML Tag

HTML <p> tag defines the paragraph and is used to give structure to text content within a webpage. It is a block-level element & used to add the space or margins after and before the element this is done by browsers by default.

Note: The HTML <p> tag supports the Global Attributes and Event Attributes.

Similar Reads

Syntax

This is paragraph element

...

Example

HTML       HTML p Tag       

HTML p Tag

      

Welcome to GeeksforGeeks

      

A computer science portal for geeks

  ...

Custom CSS to Paragraph

...

Align Paragraph

We can give the style to the paragraph with internal, external or inline CSS styling. Here we have used CSS internal styling for defining the text color to green, font-size and the font-weight....

Browser’s Default CSS

...

Supported Browsers

The HTML

can be aligned with the CSS property text- align....

Contact Us