Lesson 1: Viewing Source Code
Overview
The following lesson demonstrates how to view a Source Code, cut and past source codes into your page, and modifying the source code.
- Open a Web site in a browser
- Display the Web page you want to view the HTML code for
- Click View
- Click source If you are using Netscape Navigator, click Page Source
A separate window is opened that displays the HTML code used to create the Web page. When you finish viewing the HTML code click the X in the upper right corner to close the window.
- Repeat the steps and view several sites to try and understand the code.
|
 |
Cutting and Pasting Source Codes
You can cut and paste code to your local computer or into your Web pages. A word of caution however, codes that is taken off the Web should be modified. Keep in mind that Web pages on the Internet are copyrighted by their respective owners.
- Open a Web site in a browser
- Display the Web page you want to view the HTML code for
- Click View
- Click source If you are using Netscape Navigator, click Page Source
A separate window is opened that displays the HTML code used to create the Web page. When you finish viewing the HTML code click the X in the upper right corner to close the window.
- Highlight the code you want to copy and click the Ctrl C buttons. This will copy the code highlighted.
Go to the source code of your Web page and place the cursor where you want to paste the code you have just copied. Click the Ctrl V buttons to paste the code into your site.
View the code in a browser this will let you see if the code works. Make modifications to the code to personalize it to your site.