Answer the question
In order to leave comments, you need to log in
One div falls into another
In the case of two empty closed divs, after rendering, one gets into the other:
Source:
<html>
<head></head>
<body>
<div id="up"/>
<div id="prop"/>
</body>
</html>
<html>
<head></head>
<body>
<div id="up">
<div id="prop"></div>
</div>
</body>
</html>
<html>
<head></head>
<body>
<div id="up"> </div>
<div id="prop"/>
</body>
</html>
<html>
<head></head>
<body>
<div id="up"></div>
<div id="prop"></div>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Because in HTML it is not a single tag and cannot be. Similar behavior for other block tags.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question