Css question, why does iframe support body?

as shown in the figure:

the code is as follows:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        html,body{
            width:100%;
            height:100%;
        }
        *{margin:0;padding:0;}
    </style>
</head>
<body>
<iframe frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="100%" allowtransparency="true"></iframe>
</body>
</html>
Css
Mar.16,2021

setting iframe to display:block or iframe to vertical-align:bottom; can solve this problem. I don't know exactly why, ha

Menu