answersLogoWhite

0


Best Answer

If the browser gets the file from a web server, the web server sends a small header in addition to the file, and the header specifies the "content type" of the file.
A web page is HTML, and has the content type "text/html", while a file with just text would have content type "text/plain".

Some browsers will also look at the file content and try to guess whether it's a web page, so it can display it as a web page even if the server sent the wrong content type.

If the browser reads the file from the file system, it normally looks at the file name extension, like ".htm" or ".html" means it's a web page. This is the same mechanism the operating system uses to know for example which files are Word documents and which files are movies.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How does a web browser know a file is a webpage?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A file served by a webpage?

Web file


5 differences between webpage and web browser?

you cant really naswer this question with 5 difrences because they are 2 diffrent things. A web browser is the software application that access the web page. webpage is what you see the web browser is what displays the web page


Is Unix a web browser?

Unix is a text file, not a web browser. :)


What are the special formatted documents that you can view in your web browser?

Webpage


What is a HTML webpage?

A HTML Webpage is a page created on HTML. It runs on browser and co-ordinates with web.


What is the size of the icon for a webpage in a web browser?

In the head of your page, you will have the link to your favicon. This file can be named anything.ico. The size will either be 16x16, 32x32, or 64x64 pixels.


How do you download mp3 onto computer from webpage?

right click the link to the mp3 file. and "click save link as" or something similar depending on your web browser.


What are the special formatted documents called that you can view in your web browser?

Webpage


What are the special formatted documents called that you can view in web browser?

Webpage


What is the difference between web browser and webpage?

A web browser is a program on you computer like Internet Explorer, Google Chrome or Mozilla Firefox A web page is what you use the browser to view like Google, Youtube, facebook or answers.com


What button in Dreamweaver will let you see the webpage as it will appear in a Web browser?

under the FILE tab you will see a link to Preview Page, and then what way you would like to see it.


What does it mean to save as webpage?

When you save a document as a web page, the document is save as an HTML document. Hypertext Markup Language (HTML) is the language that web pages are written in. This language tells the browser how text should be displayed, font styles and colors, where graphics should be placed, etc. Once the file is saved as a webpage, it can then be uploaded to a web server and read by a browser.