Thursday, January 19, 2012

First Coding Endeavor

Today we learned several things about web programming. We learned that we need to store our *.html files in the localhost folder to display them properly in a browser. This folder is:

c:\xampplite\htdocs

To display the pages in a browser, we open a browser and type:

http://localhost/nameofpage.html

The 'htdocs' part of the file path is assumed. You don't have to type it.
We learned how to use the following tags in a simple html document.


Our first lesson in coding.
  1. Create file in Notepad++.
  2. Add code.
  3. Save as "filename.html" (be sure to change file type to "all files." if you are using Microsoft Notepad instead of notepad++)
    Location should be c:\xampplite\htdocs
  4. Preview file in Firefox, Chrome or IE to view as a web page.
Example code with html tags:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.