Can I have doctype in iframe different from hosting page or iframe necessarily inherits doctype from hosting page?
<!DOCTYPE 1>
<html>
<body>
<iframe>
<!DOCTYPE 2>
</iframe>
</body>
</html>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can have a different doctype in the page that loads in the iframe.
The page containing the iframe and the page loading in the iframe are completely separate. The page in the iframe doesn’t inherit anything at all from the page containing the iframe.