output:
hello How are you
code:
hello
How are you
Ho
To make an element have a line break afterwards, assign it:
display:block;
Non-floated elements after a block level element will appear on the next line. Many elements, such as
and
But while this is good to know, this really depends more on the context of your content. In your example, you would not want to use CSS to force a line break. The
is appropriate because semantically the p tag is the the most appropriate for the text you are displaying. More markup just to hang CSS off it is unnecessary. Technically it's not exactly a paragraph, but there is no