www.webdeveloper.com
Results 1 to 5 of 5

Thread: How to create an independent HTML block ?

  1. #1
    Join Date
    May 2006
    Location
    Egypt
    Posts
    26

    How to create an independent HTML block ?

    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 hepl

    Dr Mostafa

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Use an IFRAME. You'll need those snippetts in separate files but keep in mind that valid HTML doesn't require and HTML, HEAD or BODY tags. You will need to pre-pend a TITLE but that should do it.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    May 2006
    Location
    Egypt
    Posts
    26
    Thank u v. Much
    I will do.

  4. #4
    Join Date
    Oct 2010
    Posts
    12
    use iframe code.

  5. #5
    Join Date
    May 2006
    Location
    Egypt
    Posts
    26
    yes , It seems to be the best solution ..
    Many Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles