Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question about text after iframe

Tags:

html

I have this test html page, I tried it in both chrome and firefox.

<html>
<body>

before iframe

<iframe width="300" height="300" src="http://www.yahoo.com"/>

after iframe

</body>
</html>

But what i see is I see the text 'before iframe', but I don't see the text 'after iframe'.

Can you please tell how can I fix it?

Thank you.

like image 790
michael Avatar asked Jul 17 '10 00:07

michael


1 Answers

An iframe is not a self closing element, specify the end tag.

<iframe src="" width="" height=""></iframe>
like image 98
meder omuraliev Avatar answered Dec 14 '22 11:12

meder omuraliev