Indiana University Northwest

Web Services

red line

Coding Pages

This page will have tips and best practices for coding web pages.

Linking To A Folder.

Use Slashes After A Folder Name if not pointig to a page. i.e. http://www.iun.edu/~webnw/webediting/

It is good practice to end urls (referencing only a folder) with "/" because requests without the ending "/" are immediatedly redirected back to the server with the "/" appended.

%5F in the URL Directory Name and IIS 6

Here is a IIS 6 behavior you may want to know about. If a directory name includes a "_" and the url does not end with a "/" , then the character code %5F is substituted into the url on redirect. ie: http://webdb.iu.edu/iun/cal%5Ftest/ instead of http://webdb.iu.edu/iun/cal_test/

To correct this, include a "/" at the end of the url.

It is good practice to end urls (referencing only a folder) with "/" because requests without the ending "/" are immediatedly redirected back to the server with the "/" appended.

Listing Information

Your probably aware that you can use html coding to make bullets and to number items, but if you want, you can also use the Alphabet for listing:

  • Apples
  • Oranges
    • Sunkist
  • Bananas
  • Peaches
  1. Apples
  2. Oranges
    1. Sunkist
  3. Bananas
  4. Peaches
  1. Apples
  2. Oranges
    1. Sunkist
  3. Bananas
  4. Peaches

First make an ordered list (using 1,2,3...). Then go to code and change the <ol> tag to read: <ol type="A"> (Capital A) . Under Bananas, again, go to code and change the <ol> tag to read: <ol type="a"> (lower case a) . Have fun!