---
title: "Paragraph extension"
description: "Use the Paragraph extension in Tiptap to add support for paragraphs with the HTML tag. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/extensions/nodes/paragraph"
---

# Paragraph extension

Use the Paragraph extension in Tiptap to add support for paragraphs with the HTML tag. Learn more in our docs!

Yes, the schema is very strict. Without this extension you won’t even be able to use paragraphs in the editor.

> **Breaking Change:**
>
> Tiptap v1 tried to hide that node from you, but it has always been there. You have to explicitly
> import it from now on (or use [StarterKit](https://tiptap.dev/docs/editor/extensions/functionality/starterkit.md)).

> **Interactive demo:** [Paragraph](https://embed.tiptap.dev/preview/Nodes/Paragraph)

## Install

```bash
npm install @tiptap/extension-paragraph
```

## Settings

### HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.

```js
Paragraph.configure({
  HTMLAttributes: {
    class: 'my-custom-class',
  },
})
```

## Commands

### setParagraph()

Transforms all selected nodes to paragraphs.

```js
editor.commands.setParagraph()
```

## Keyboard shortcuts

| Command        | Windows/Linux     | macOS         |
| -------------- | ----------------- | ------------- |
| setParagraph() | Control + Alt + 0 | Cmd + Alt + 0 |

## Source code

[packages/extension-paragraph/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-paragraph/)
