Paragraphs in HTML

How to create Paragraph ?

  1. <p></p> tag is used to create a paragraph in html.
  2. Paragraph automatically change the line, and each paragraph starts with the new line.
  3. For Example, the following two lines create two paragraphs in HTML.
<p>This creates first paragraph</p>
<p>This creates second paragraph</p>

Attributes of paragraph

  1. As similar to heading paragraph has an attribute align which is used to align paragraph text to left/ right/ center/ align.

Example:

<p align="left">This text will be align to left</p>
<p align="right">This text will be align to right</p>
<p align="center">This text will be align to center</p>
<p align="justify">This text will be align to justify</p>




Output: 

Watch the video


Comments

Popular posts from this blog

Program to calculate telephone bill

Arrays in C Language

String in golang

Sum of two numbers in go lang

Pointers in C Language

Decision Making Statements

Say Hello world in Go lang

Decision Making in Go lang

Program to convert time from seconds to hours, minutes and seconds

Installing go lang