# How to create an independent HTML block?

**URL:** https://forum.kirupa.com/t/how-to-create-an-independent-html-block/315505
**Category:** Uncategorized
**Created:** [October 27, 2010, 9:38pm UTC](https://forum.kirupa.com/t/how-to-create-an-independent-html-block/315505 "2010-10-27T21:38:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darroosh](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@darroosh](https://forum.kirupa.com/u/darroosh)
#### Post date: [October 27, 2010, 9:38pm UTC](https://forum.kirupa.com/t/how-to-create-an-independent-html-block/315505/1 "2010-10-27T21:38:52Z")

</div>

Hi all,

I want to know if there is some way to create an independent HTML block .

For more explanation :  
My problem is that I have a webpage in which I allow some users can add content (may contain HTML & CSS )  
I allow them to add their content inside a certain \<div\> block , but sometimes their content may not be clean code , and may contain some DIVS with no end , Or even some DIV end with no starting DIV  
This sometimes distort my page completely

Is there any way to make their content displayed independently from my parent div , so that my div is first displayed well , and then the content inside it is displayed ?

I’m sorry for long message .  
Thanks for any trial to help

Dr Mostafa
