bader450 Posted November 10, 2006 Share Posted November 10, 2006 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 More sharing options...
vchris Posted November 10, 2006 Share Posted November 10, 2006 The browser interprets different file types differently. HTML files require tags to format the content. Link to comment Share on other sites More sharing options...
bader450 Posted November 10, 2006 Author Share Posted November 10, 2006 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.. Link to comment Share on other sites More sharing options...
www.mihalism.com Posted November 10, 2006 Share Posted November 10, 2006 .htmlIs for webpages.txtIs just plain text Link to comment Share on other sites More sharing options...
vchris Posted November 10, 2006 Share Posted November 10, 2006 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 More sharing options...
aspnetguy Posted November 10, 2006 Share Posted November 10, 2006 i gues it should be more like<?php if($you == "question"){ $me = "stealVChris'sAnswer"; } ?> Link to comment Share on other sites More sharing options...
vchris Posted November 10, 2006 Share Posted November 10, 2006 That's illegal!!! Link to comment Share on other sites More sharing options...
boen_robot Posted November 11, 2006 Share Posted November 11, 2006 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 More sharing options...
vchris Posted November 11, 2006 Share Posted November 11, 2006 I left out the ; just to see if you were paying attention.How's this sig? Link to comment Share on other sites More sharing options...
boen_robot Posted November 11, 2006 Share Posted November 11, 2006 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 More sharing options...
holmedwa04 Posted November 11, 2006 Share Posted November 11, 2006 What do you mean, I think Skemcin would think it is too big, it is only one line long! Link to comment Share on other sites More sharing options...
vchris Posted November 12, 2006 Share Posted November 12, 2006 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 More sharing options...
smiles Posted November 12, 2006 Share Posted November 12, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now