Articles

-What is a Text Editor?
-Large Files
-Encoding
-Syntax Highlighting
-Vertical Selection
-Snippets
-Macros
-Compare Documents
-Find and Replace
-Wrapping
-Code Folding
-Web Preview

-More Resources

Share |

Can I Preview My Work in a Web Browser?

When you're building a web page, there's no need to upload it to a web server before you can see what it will actually look like in your browser. Just copy the file path of your document (right click on the file in Windows Explorer and look at the properties to get something like this: C:\Example\Documents\example.html) into the address bar of your favorite internet browser and hit Enter. The page displayed will your HTML file as it would look in that browser.

If you want to test the links in your file, make sure that the links lead to the file paths of the other pages you would like to link to, or to pages that are already live. Links to pages that you plan to create will not work.

If you're using a visual text editing software (also called WYSIWYG—What You See Is What You Get—editors), like Adobe Dreamweaver, Microsoft Visual Studio, or Expression Web, the visual preview you see in the program and the page you see in your browser may be different. The preview in the browser is more important, as it represents how the code you write will actually be interpreted and displayed by browsers once it is uploaded to a server.

There are several different browsers available, and you can never know where your visitors will be coming from. For this reason, testing your work in different browsers is highly recommended. The different browsers sometimes interpret HTML, etc., in different ways, which can result in pages that don't look the way you wanted them to. The most popular browsers are Internet Explorer, Mozilla Firefox, Google Chrome, Safari, and Opera.

If you're using a text editor other than Notepad, chances are that a web preview function is built in to the software, eliminating a step for you.


More Information:

-WYSIWYG Review


© 2010 Text-Editor.org