write the steps to view HTML document in web browser.
Answers
Answer:
Step 1: Open TextEdit (Mac)
Open Finder > Applications > TextEdit
Also change some preferences to get the application to save files correctly. In Preferences > Format > choose "Plain Text"
Then under "Open and Save", check the box that says "Display HTML files as HTML code instead of formatted text".
Then open a new document to place the code.
Step 2: Write Some HTML
Write or copy the following HTML code into Notepad:
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Step 3: Save the HTML Page
Save the file on your computer. Select File > Save as in the Notepad menu.
Name the file "index.htm" and set the encoding to UTF-8 (which is the preferred encoding for HTML files).
Step 4: View the HTML Page in Your Browser
Open the saved HTML file in your favorite browser (double click on the file, or right-click - and choose "Open with").
The result will look much like this:
Explanation:
HTML: Viewing HTML-files
You can view an HTML-file that is under preparation by opening it in a browser.
You can do this without having to move the file to ~/.www, change permissions, etc.
Moreover, most browsers will allow you do changes as well (on a WYSIWYG basis).
Be careful however to not edit the same file simultaneously in two editors!
The following steps apply to Netscape, but each browser should have similar features.
start your browser
under the "File" menu click on "Open Page"
this will open an "Open Page" dialog box
in this new box, click on "Choose File" (if you cannot fill-in the file's location directly)
once the file is found (in the "File Browser" window), click "OK"
this returns you to the "Open Page" window
click on "Open in Navigator" (if you want to make changes to the file, you can use instead "Open in Composer")
When you view files this way, the links should work even if you did not gave them special permissions.
However new directories are opened as a listing, and you have to click on the file that you meant to see (the file that the browser would open by default is index.html, or Welcome.html).
BTW, WYSIWG =What You See Is What You Get.
Hope this helps you