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
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:
- How can I add a HTML code to My Yahoo homepage?Best solution by Yahoo! Answers
- How do I put an html code in a scroll box?Best solution by html.am
- What's the HTML code for a scroll box on top of a picture?Best solution by Yahoo! Answers
- What's the HTML code for?Best solution by Yahoo! Answers
- Is there an html code for?Best solution by Google Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.