How to Create Paragraphs in HTML Using p Tag
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 :-
How to Create Paragraphs in HTML
Explain Program
Step 1 ]
<!DOCTYPE html>
- document type declaration.
- browser help this is an HTML5 document.
<!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.
. <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
<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 :-
Output :-


Post a Comment