Html, why won't everything stay on the same line?

lelenina2

New member
Like if you write...
<html>
<head><title>color example</title></head>
<body>
This word is <span style="color:red">red</span> This word is <span style="color:blue">blue.</span>
</body></html>

The red and blue go on different lines, how do you prevent that from happening? Thanks in advance.
Ok, maybe not that little example, but in general, if you have many sentenses like that, most of them will have a linebreak right before the <span> tag
For example...
<html>
<head><title>Word Memory Table</title></head
<body style="font-size:18pt">
<p>These are some words you should memorize. The regular verbs will be in regular colors, and all the irregular verbs will be in <span style="color:red">red. </span>Irregular verbs with stem changes will be in <span style="color:purple">purple, </span>so pay close attention to the colors!</p>
That's not the entire code, but well, the purple is on a new line...I've tried everything, nothings working! I guess it's not that big of a deal, it was just annoying me...
 
Back
Top