Why is the p tag in the iframe in the code below not displayed on the web page?
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Using an iframe</title> </head> <body style="background-color:#CCCCCC"> <h1 style="text-align:center">Inline Frame Example</h1> <div style="text-align:center"> <iframe src ="iframe_src.html" style="width:500px;height:100px;border:1px solid black;background-color:#FFFFFF"> <p>Uh oh...your browser does not support iframes.</p> </iframe> </body></html>
iframe is to connect to other web pages.
Look at the example here: iframe
iframe is to connect to other web pages.
Look at the example here: iframe
Although it sounds hard to say, this is indeed my fault for not looking at the whole issue seriously. Sorry for you here!
Did you read the link I posted carefully?
There are a few sentences in it:
All browsers support the
Uh oh...your browser does not support iframes.
Uh oh...your browser does not support iFrames.
I think you made it clear in your code yourself
Uh oh...your browser does not support iframes.
Oh...your browser IFrames are not supported.
I think you have written it very clearly in the code yourself
You can think of it as ifream A link method that can refresh the current web page, and only refresh a certain part of your current web page, which is the part specified by iframe.
Because your browser supports Ifream, the
tag is replaced. If the browser does not support the
tag, it will be exposed