In my code snippet below:
<html>
<body>
<div style="width: 700px;">
<span>test</span>
<input style="width: 100%;"></input>
</div>
</body>
</html>
I am facing an issue where the span and input elements inside the div do not behave as I expected. Ideally, I want both the span and input to occupy 100% of the width of the div, with the input starting right after the span and extending till the end of the div without wrapping to a new line. How can I achieve this desired layout?