<!DOCTYPE HTML>
<html>
<head>
<style>
body > div { border:1px solid black; margin:1em; }
</style>
</head>
<body>
<div id="d3"><br>Hello <span>Kitty</span></div>
<div id="d4"><span>Hello</span> Kitty<br></div>
</body>
</html>