Skip to main content

Thread: Problem With Enter Key and HTML


it's been while since last played around html editing. made practice webpage, , noticed when do, example...

html code:
<body>  sample text.  sample text.  </body>
the text shows (in both google chrome , firefox)...

this sample text. sample text.
instead of...

this sample text.
sample text.
the workaround put <br /> tags everywhere want carriage return or press enter. i've played around html in windows, i'm wondering if problem linux thing. i've tried both gedit , nano html editors , both display same problem. what's up? enter key in linux registered space instead of carriage return in html?

quote posted antarctica view post
it's been while since last played around html editing. made practice webpage, , noticed when do, example...

html code:
<body> sample text. sample text. </body>
the text shows (in both google chrome , firefox)...

sample text. sample text.

instead of...

sample text.
sample text.

workaround put <br /> tags everywhere want carriage return or press enter. i've played around html in windows, i'm wondering if problem linux thing. i've tried both gedit , nano html editors , both display same problem. what's up? enter key in linux registered space instead of carriage return in html?
nothing editor, that's html, put in many line-braks still show same in browser. couple of other options are:
html code:
<body> <p>this sample text.</p> sample text. </body>
or
html code:
<body> <pre>this sample text. sample text.</pre> </body>
<p></p> defines paragraph , <pre></pre> define pre-formatted text i.e. preserves both spaces , line breaks.

h


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Problem With Enter Key and HTML


Ubuntu

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support