The code for creating iframe and div for the following tests is as follows:< p > This is a paragraph.