HTML Paragraphs


The HTML Paragraphs is used to create paragraph element using <p> tag. It is a block-level element.

Syntax

Following is the syntax −

<p>content</p>

Example

Let us see an example of HTML Paragraphs:

Live Demo

<!DOCTYPE html>
<html>
<style>
   body {
      color: #000;
      height: 100vh;
      background-color: #8BC6EC;
      background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
      text-align: center;
   }
</style>
<body>
<h1>HTML Paragraphs</h1>
<p>I'm a paragraph element with some dummy text.</p>
</body>
</html>

Output

Updated on: 16-Feb-2021

251 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements