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


Related Posts:

  • What is table tag in HTML Table tag in html is the important part in HTML.In this post we will learn what is table tag in html and attributes of table tag in html. What is … Read More
  • What is marquee tag Marquee is a tag in HTML.For using Marquee tag in HTML we need to know what is Marquee tag and how to use Marquee tag in HTML. HTML Language is used… Read More
  • How to create table in HTML In this post we will learn how to create a table in html in the previous post we already discuss about What is table tag in html and in this tutoria… Read More
  • what is WWW In the previous post we learn about what is Web Browser and in this post we will learn What is WWW and What is the use of WWW. WHAT IS WWW: WWW is … Read More
  • What is HTML HTML stands for Hyper Text Markup Language.HTML language is used for creating web pages for the world wide web.In HTML a block of text is surround… Read More

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