What is the HTML code to make your web more accurate?

HTML Formatting Code?

  • I have been trying to make a web page using simple basic html. I have a text file from where i want to copy and paste the code as it is displayed in the text file. When I paste and the code in the text file and view it in the web page in the browser it is displayed in a straight line.....for example... ################## Text file content : I love Yahoo I am a Yahoo Freak Thanks for your help. What i see in the web page: I love YahooI am a Yahoo FreakThanks for your help. ################## Now I know it requires tags like <br> and <p>. But considering the data I need to display it is not feasible to insert these tags for every new line. Is there any alternative to these tags ? Can I simply paste the data and still view it with its original formatting in the web page ? Please help me out with this, your help is sincerely appreciated.

  • Answer:

    If you don't care to code semantically and as well as syntactically, then use the <pre> tags: <pre> I love Yahoo I am a Yahoo Freak </pre> The text between these two tags will remain exactly as you type it on the HTML file. Ron

dayu4u_d... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

<br> and <p> are pretty much your only choice.. other than that you'll have to use <ul> to make a list and that's even more stuff so just<br> at the end of each line should work.. It's a pain I know.. but it's just what ya gotta do.

meandmycuddles

If you want text to appear as it does in the HTML file, you'll need to use the <pre></pre> tag. Example: <pre>Line breaks are line breaks when using preformatted text</pre>

Danny

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.