When answering/asking a question on Stack Overflow, what is the best way to display your HTML and CSS code? I first had it like this:
html:
<div class="first-div">Some content</div> <div>More content</div>
css:
.first-div { background: red; }
But my answer was edited to be displayed like this:
.first-div { background: red; }
<div class="first-div">Some content</div> <div>More content</div>
I have also seen more posts that display it as the last example, so is the latter the better way to display it?