What are the potential pitfalls of trying to simulate frames with PHP and DIV tags?

One potential pitfall of trying to simulate frames with PHP and DIV tags is that it may not provide the same functionality and user experience as using actual frames. Additionally, managing the content within the DIV tags can become cumbersome and difficult to maintain. To solve this issue, consider using iframes instead of DIV tags to simulate frames, as iframes allow for separate documents to be displayed within a single webpage.

<div>
  <iframe src="frame1.php" width="50%" height="100%" style="float: left;"></iframe>
  <iframe src="frame2.php" width="50%" height="100%" style="float: left;"></iframe>
</div>