# Lists are not allowed in a P tag. The tag has been changed to a DIV

**URL:** <https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099>\
**Category:** Ask us anything\
**Created:** [August 30, 2023, 7:27am UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099 "2023-08-30T07:27:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joerg](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joerg/32/4462_2.png) [@Joerg](https://community.weweb.io/u/Joerg)\
**Post date:** [August 30, 2023, 7:27am UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/1 "2023-08-30T07:27:30Z")

</div>

Hi there,

I am using the ‘expand layout’ in a container displaying a list of item and get this message. Below please find the screen shot.

What needs to be changed? Please advise.

Thank you and best regards

 ![Screenshot 2023-08-30 at 09.16.59](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/66b9a5741f15ebed04216cbd27d14a4ab7a9312e.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 4, 2023, 2:55pm UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/2 "2023-09-04T14:55:23Z")

</div>

Hi @Joerg 👋

Can you share with us a screenshot of the navigator on the left of the page:

 ![CleanShot 2023-09-04 at 16.54.14@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/64e3a1813c6be5e4d4665a6969d4a48d3c424a89.png)

---

<div class="post-metadata">

**Author:** ![Joerg](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joerg/32/4462_2.png) [@Joerg](https://community.weweb.io/u/Joerg)\
**Post date:** [September 4, 2023, 6:28pm UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/3 "2023-09-04T18:28:59Z")

</div>

Hi Joyce,

thanks for looking into this. Below please find the screen shot. I assume the culprit is on the second page in the ‘content’ container.

Thank you and best regards,

Jörg

 ![Screenshot 2023-09-04 at 20.23.59](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/bd823e95fdffd5c7a24a1bd46a09d469001d35cc.png)  
 ![Screenshot 2023-09-04 at 20.25.15](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8ee3d5262232cab870ae8b5d27eb0c1b706eafb7.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 5, 2023, 8:31am UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/4 "2023-09-05T08:31:40Z")

</div>

Hi @Joerg 👋

I’m sorry I’m a little bit confused. In your first screenshot, you showed a list of cards that all show “Lists are not allowed in a P tag” and “The tag of this text has been changed to DIV”.

I’d like to understand what is bound to the items in the screenshot in your first post and what is bound to the parent container of those items.

Can you show me the full page of where this is happening and make sure you select the container with the issue on the page so I can see clearly what container it is in the navigator?

For example, in the screenshot I shared, you can see:

- I bound a list of items to a `container` that contains an `Expand layout` element
- that `Expand layout` element contains 3 `Flexbox` elements and I bound 2 `Text` elements

Feel free to record a short video if that’s easier because it’s sometimes hard to provide the full context with a couple of screenshots.

---

<div class="post-metadata">

**Author:** ![Joerg](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joerg/32/4462_2.png) [@Joerg](https://community.weweb.io/u/Joerg)\
**Post date:** [September 6, 2023, 4:25pm UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/5 "2023-09-06T16:25:46Z")

</div>

Hi Joyce,

attached please find another attempt to provide the sufficient information to you.

This is the basic layout of the screen. In the grey box you select the chapter you want to see. In the example “Aufbau & Struktur im Detail” (sorry, in german;).

 ![Screenshot 2023-09-06 at 18.08.55](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d9799ae0e42538c8764022d03dca63ceee25872f.jpeg)

When you click on the chapter the contents is displayed on the right side of the screen. This is when the error messages appear.

 ![Screenshot 2023-09-06 at 18.04.15](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/772a73d565054a554b36f76ab869d4bf6642a344.jpeg)

That’s why I assume it has something to do with the ‘content’ container and it’s sub-containers.

There is the title and an introductory paragraph. Underneath is a list of subchapters. These subchapters are fetched from Xano with the call kl4\_by\_kl3. You see the object in the screen shots.

 ![Screenshot 2023-09-06 at 18.07.15](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/bb9dfee422174f3d4835fb4bbd474d1d28970f43.jpeg)

 ![Screenshot 2023-09-06 at 18.07.51](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1e2e035775ffccbc250d5e539e1fdb1bf42986f5.jpeg)

Hope this is the information you are looking for, and it makes sense to you.

Thanks for looking into this and best regards,

Jörg

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 8, 2023, 3:26pm UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/6 "2023-09-08T15:26:08Z")

</div>

Mmmm ok, it definitely looks like a bug! Thanks for taking the time to put all of this together

The error message is saying that the `p` tag which the text element of “Aufbau & Struktur im Detail” is doesn’t accept lists but you bound to a text so I don’t think it should display that error message.

Could you [create a bug ticket here](https://support.weweb.io/) and add a link to this conversation in the description so that the team has all the context?

I could create a bug ticket myself but then you wouldn’t be able to follow its progress 🙂

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [September 15, 2023, 8:59am UTC](https://community.weweb.io/t/lists-are-not-allowed-in-a-p-tag-the-tag-has-been-changed-to-a-div/4099/7 "2023-09-15T08:59:41Z")

</div>

Hi, its not a bug. The text element is not made to be bound to an html. Our text element generate a p tag, your html contain a list. Having a list inside a paragraph is not valid in HTML so we fix it.

You can use the Rich Text element instead, its made to display html text. 🙂
