Paragraph tag in HTML

 Paragraph tags are majorly usable elements in html.

  • It takes the full width of browsers .
  •  Paragraph tag <p> is used to display paragraph. It is a block level element.
Paragraph tags mostly used for creating id's and classes.

Example:

Paragraph tag
Paragraph tag

Here <p> tag takes full width and next <p> tag starts in new line.


Code:

<!DOCTYPE html>
<html>
<head>
     <title>paragraph</title>
</head>
<body>
     <p>
         Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
     </p>
     <p>
         It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
         publishing software like Aldus PageMaker including versions of Lorem Ipsum.
     </p>
</body>
</html>


Output:

Paragraph tag
Paragraph Tag


Post a Comment

Post a Comment (0)

Previous Post Next Post