ad

Showing posts with label html paragrapha tag. Show all posts
Showing posts with label html paragrapha tag. Show all posts

Thursday, September 11, 2025

How to Create Paragraphs in HTML

How to Create Paragraphs in HTML

html paragraph Tag

The <p> tag defines a paragraph. the Browsers automatically add some space (margin) before and the  after each <p> element. The margins can modified with the css. 

The Paragraph element.  <p> HTML element represents a paragraph. Paragraphs  usually represented to the visual media as  blocks of text separated from the adjacent blocks by blank lines andor first-line indentation but HTML paragraphs can be any structural grouping of related to content, such  images or form fields.

Attribute

1) Align    :-  Left, right, centre, justify

Specifies the alignment of the text with in paragraph

How to Create Paragraphs in HTML

    Example :-

<!Doctype html>

<html>

<body>

<P align =left> is a first paragraph.this is a first paragraph Paragraphs tags or <p> tags in HTML help us create paragraphs on a web page. web browsers is  paragraphs display a blocks of text separated from adjacent block by blank lines white spaces or first-line indentation</p>

<p  align=right>Paragraphs tags  <p> tags in HTML help us create the paragraphs.on a web page. web browsersndisplay  paragraphs  as blocks of text separated from adjacent blocks by blank lines, white spaces, or first-line indentation </p>

</body>

</html>

How to Create Paragraphs in HTML

Explain Program

Step 1 ]

<!DOCTYPE html>

  •  document type declaration.
  • browser help this is an HTML5 document.

Step 2 ]  

. <html> ... </html>

  • root element of the HTML document.
  • <html> tag is part of the web page.

Step 3 ]  

<body> ... </body>

<p>

<P>

Creates a paragraph

 

align="left" / align="right"

Aligns text  use CSS

 

<p> tag to show it as text

used to display the <p> tag as text


html paragraph Tag

  Output :-

HTML paragraph Tag

Related Post :-

html button tag

How to create a reset button form using html

C Program to print Alphabet P Pattern