Recent Posts

Sunday 21 January 2018

What is paragraph tag in HTML

In the previous post we learn about what are the advantages and disadvantages of HTML.In this post we are learning what is paragraph tag and How to create a paragraph in HTML.


<P>:
  1. This is a paragraph tag that start with <p> and ends with </p>.
  2. This is a paired tag.
  3. When we use <p> tag element it will be structure your document into different paragraph.
  4. A paragraph can be created by enclosing text within paragraph codes <p>.....</p>.
  5. we must specially define a paragraph in the code by using a paragraph tag.
  6. In HTML <p> element represent a paragraph text.
  7. If we add number of empty lines in paragraph then browser will ignore that lines.
  8. If we add lot of spaces in the paragraph then browser will ignore the spaces. 
Attributes of paragraph tag:
ALIGN:
This attribute is used to where the text appear on the screen.The values are LEFT, RIGHT, CENTER. Default is LEFT.
Example: <P ALIGN="CENTER">

WIDTH:
This attribute is used to specify the horizontal width of a paragraph (one line width).
Example: <P WIDTH=255>

STYLE:
This attribute is used to apply formating to paragraph text.
Example: <P STYLE="background:red; color: yellow">

TITLE:
This attribute is used as tool tip text when mouse is point to the paragraph.
Example:<P TITLE ="Text">

Example of paragraph tag:
<html>
<head>
<title>Demo of paragraph</title>
</head>
<body>
<p>This is first paragraph</p>
<p>This is second paragraph</p>
</body>
</html>

The above example will produce following output:
This is first paragraph
This is second paragraph


0 comments:

Post a Comment

Followers

Popular Posts

Categories

social media

Text Widget

Powered by Blogger.

About Me

My name is junaid khan and i am a full time blogger and author of a blog tutorial called tutorialpointsolution.

String function

In the previous post we learn about what is String .we know that string is a collection of two or more characters.In string we can store al...

Search This Blog

Technology

Adbox

Recent Post

Breaking

Recent In Internet

Comments

Facebook

Pages

Comments

Pages

Recent

Pages

Technology