<!DOCTYPE html>
<body style="color: green">
<div style="display: inline;">
Line 1
<div>Line 2</div>
Line 3
<div>Line 4</div>
Line 5
</div>
</body>