|
Click the print icon to print this handout |
Creating Your Own Web Pages from Scratch: A Beginner's GuideDespite the availability of Web publishing software such as FrontPage and PageMill, it's useful to know how HTML coding works because such knowledge gives you greater control of your page. That's why this handout teaches you to use HTML (hypertext markup language; the language used to format Web pages) to create Web pages from scratch. Of course, there's a lot you could know about Web page design, but fortunately there's only a little bit that you must know in order to create basic, functional pages. This handout gives you enough information to create a Web page that's viewable through Web browsers such as Netscape or Internet Explorer. It does this by
Before getting started, though, keep several things in mind about this handout. First, this handout only gives you enough to get started. You can create functional pages with the code presented here. If, however, you want to learn more, take a look at some of the resources listed in "Additional Resources." Second, all references to coding are presented in Courier font so you can easily identify what you need to type. Here's the one thing you need to know about HTML codeA Web page has essentially two types of information:
Viewers generally do not see the code, unless they click on the View menu at the top of the screen in Netscape and choose Document Source. (The process may differ with other Web browsers.) This will show the code used to create a page. HTML code appears in brackets < > to distinguish it from the information you want to display for viewers. Most codes appear in pairs, one part showing where the coding starts <code> and one showing where it ends </code>. For example, if I were to write
the book title would appear in italics when viewed through Netscape:
That's really the main thing to remember: Codes appear in brackets and generally surround the text you want to format. The key, then, is to remember some basic codes (and learn where to find other codes) so you can format your own page. Start designing your own pageThe best way to learn HTML is to start creating a page and to learn the necessary code as you go along. Don't bother trying to learn a lot of code ahead of time. Just jump right in. You can use a basic word processing program such as Notepad to enter code and text. Follow these instructions, and you'll be on your way to Web authorship: 1. Open the Notepad program available on Windows 3.1 or Windows 95. You'll most likely find the application in the Accessories window. 2. For the first line of the page, type <html> and hit the Enter key to move the cursor to a new line 3. Type <title> and then type in the title you want for your page. Then type </title> and hit the Enter key. 4. Type <h1> and then type in the first heading you want for your page. Then type </h1> and hit the Enter key. 5. Type <p> to insert a blank line; his the Enter key; and type <hr> to insert a solid horizontal line. Your file should now look something like this:
6. Save the file to your a: drive. Give the file an appropriate name and add .htm as the final extension. So, a homepage might be named home.htm. 7. Open Netscape. Open the File menu, and choose Open File. Then select the a: drive and click on your file (e.g., home.htm). If all has worked correctly, you should see your first heading plus the line that you inserted. After that you can return to your Notepad program and begin to add other elements to your page. Take a look at the Basic Commands section for guidance on other types of coding for your page.
Basic Commands The table below lists the commands that you need in order to create a basic, functional Web page. Any time you see a blank space between two quotation marks (" "), that means you need to insert the name of a file. For example, if you want to place an image on a page, you'd use <img src=" ">, and you'd need include the name of the image. If the name of the image were laser.jpg, then your code should read <img src="laser.jpg">.
Additional Resources There are a number of terrific resources available online for Web authors. As with learning only as much code as you need, you only need to find a few sources that offer you enough help to design the type of pages you'd like. Here are three sources that have proven especially useful for me: The Web Developer's Virtual Library http://www.stars.com/
Yale C/AIM Style Guide http://info.med.yale.edu/caim/manual/index.html
|
Questions? Comments? Email me at blythes@ipfw.edu
last updated: 10.6.99