# Prosemirror-tables - rationale of \<p\> tag within \<td\>

**URL:** https://discuss.prosemirror.net/t/prosemirror-tables-rationale-of-p-tag-within-td/4154
**Category:** Uncategorized
**Created:** [October 28, 2021, 2:26pm UTC](https://discuss.prosemirror.net/t/prosemirror-tables-rationale-of-p-tag-within-td/4154 "2021-10-28T14:26:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pojo](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@pojo](https://discuss.prosemirror.net/u/pojo)
#### Post date: [October 28, 2021, 2:26pm UTC](https://discuss.prosemirror.net/t/prosemirror-tables-rationale-of-p-tag-within-td/4154/1 "2021-10-28T14:26:42Z")

</div>

I’m investigating PM’s prosemirror-tables module and I have a couple of questions:

1. what is the rationale of having a `tbody` element? Can I suppress it?
2. what is the rationale of having a `p` tag as child of a `td` element?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [October 29, 2021, 5:59am UTC](https://discuss.prosemirror.net/t/prosemirror-tables-rationale-of-p-tag-within-td/4154/2 "2021-10-29T05:59:21Z")

</div>

Browsers automatically create `<tbody>` elements for tables.

You can configure what content cells accept with the `cellContent` option.

---

<div class="post-metadata">

### Author: ![pojo](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@pojo](https://discuss.prosemirror.net/u/pojo)
#### Post date: [October 29, 2021, 7:10am UTC](https://discuss.prosemirror.net/t/prosemirror-tables-rationale-of-p-tag-within-td/4154/3 "2021-10-29T07:10:13Z")

</div>

Thanks for your answer, I will look into `cellContent`.

With respect to `tbody` ~ the fact that a browser creates it on render strictly speaking does not necessarily relate to the semantic content of the table IMO. I (now) understand why prosemirror-tables rolls with this invariant though.
