Jump to content

html and txt what's the difference


bader450

Recommended Posts

Hi every one,I want to ask about that, when I write a text file with notepad and put the extension ".txt" and load it by my browser IE <<== it will display as I write by the notepad no format changes!!.But when I write it in notepad and put the extension is ".html" and load it to my browser it will be differ in formatting than which I write it!!.What is the reason??Thanksss..

Link to comment
Share on other sites

thnak you vchris,, but I'm not put any tags when I write the text by notepad..Is the browser put tags directly corresponding with the extension??thank you..
The browser doesn't add any tags. It interprets them. Your text file already contains background code for the structure (line breaks, paragraphs, tabs...). HTML is pure and you must use tags for any structure or formatting.www.mihalism.com :That's my sig dude! :)
Link to comment
Share on other sites

You have to admint there are two differences1. The name of the second variable2. mihalism didn't forgot the ";" at the end :) Nevertheless, it's a total stealing :) ... I mean, look at me. At least I changed the question&answer moto to problem&solution one :) and not to mention the language used.

Link to comment
Share on other sites

I think Skemcin would love it, but still: it's too long. Try to shorten it down a bit to a line or two.

Link to comment
Share on other sites

:) What do you mean, I think Skemcin would think it is too big, it is only one line long! :)
He was talking about my signature. I changed it recently. Sorry about highjacking your thread.
Link to comment
Share on other sites

I want to ask about that, when I write a text file with notepad and put the extension ".txt" and load it by my browser IE <<== it will display as I write by the notepad no format changes!!.
IE automatically beginning and endding it with <html> and </html> so you can see it unchanged :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...