Piecing your Pages Together

June 10th, 2007

Now that you’ve created your Web pages, verifying the location of the document is essential for the successful functionality of your site. In other words, if you created a Web page and saved it in another folder other than the one you created a hyperlink to, you should change it. (See the hyperlink discussion earlier in this chapter if you need help with this process.)

Speaking of hyperlinks, make sure you created them so that a visitor can easily browse through your site.

And finally, make sure your pages are organized and located within the properly named folders.

You are now ready to conduct architectural and compatibility testing procedures, which are reviewed in the following chapter. (By the way, congratulations! you’ve just completed the most frustrating part creating your Web site!)

Making use of “META” Tags

June 10th, 2007

Don’t let the term scare you away. META tags are primarily used for document identification. They sometimes offer specialized page functionality but their use in this instance is fairly rare. The most common term is the “keyword” event handler. A series of keywords (separated by a comma) entered in the appropriate area can greatly improve your site’s popularity among search engines. The “description” event handler is called up on a search engine’s results page.

META tags are also used to identify the page’s authoring program, the author, creation date, etc. You can always get creative and add META tag names of your preference whenever you feel necessary.

If for some reason you want to redirect a user to another page automatically, use the command line <META HTTP-EQUIV=”Refresh” CONTENT=”x; URL=pageurl”>, where “x” is the time delay before automatically redirecting the user to another Web page and “pageurl” is your Web page’s URL. Try using this feature infrequently because the user preferably wants to control their own navigation. An example of using this META command would be for redirecting deleted pages and auto-linking the user to another page that says something along the lines of:

“Sorry, this Web page no longer exists. Please update your bookmarks to reflect the new URL. You will automatically be transferred to the new Web page in 5 seconds or you can click here to go there manually.”

(Cute, huh?) Just remember to insert a hyperlink to your new page for the “click here” text. You might also find use with this command line for creating a splash screen before entering your Web site.

META tags are always placed within the <HEAD> tags. Refer to the example model given below of a typical META tag assembly.

<META NAME=”description” CONTENT=”The Internet’s premier auction site where you can buy and sell stuff online!”>

<META NAME=”keywords” CONTENT=”auctions, online auctions, internet auctions, cool stuff, reduced prices”>

To submit your Web site’s URL to popular search engines, please refer to the “Popular Search Engines” section at the back of this book. You’ll find a helpful listing of these search engines followed by their appropriate Net address that enables you to submit your site’s URL.

Side Note: To update the search engine’s “keyword” and “description” event handlers, you will need to resubmit your URL to make the new information active. Also, try refraining from entering keywords that have nothing to do with the content on your Web page. Entering such information transforms your Web page into what’s termed as a “scam page” because it attracts users that visit your page expecting to see information they inputted on a search engine. Instead of coming to a viable resource, they were mislead by keywords that had nothing to do with your Web page’s content. Some search engines actually filter out scam pages from their database. So, please think twice before using misleading keywords.

Spell Checking

June 10th, 2007

It’s very frustrating (and sometimes quite embarrassing) to publish a piece of work that is full of spelling errors. Even a partial spelling error can throw what would be a good publication into a “low-class” piece of work. And people will look at you with a blank stare and ask somewhat sarcastically, “Why didn’t you do a spell check?” Well, maybe not to that extent, but conducting spell checks are important. So why not take a minute of your time and use the Spell Check feature to check your textual content?

The rule of thumb is to always spell check your text. Even some of the greatest English college professors at Harvard, Yale (you name it) make occasional mistakes. (Heck, everyone makes mistakes). So make sure you check your page’s text before publishing it on the World Wide Web (or your Intranet).

The downside of performing a spell check is that you need to copy-paste your text into another application such as Microsoft Word that has the ability to check spelling. FrontPage Express does not currently have the ability to conduct spell checks. (Yet another marketing strategy aimed at promoting the full-featured FrontPage software package.)

Formatting Text

June 10th, 2007

This is one of the less frustrating tasks! It’s also the easiest but you have to make some considerations when you’re formatting text.

Although you might have the “Elephant” font set, for example, the guy over in Novo-Kazalinsk, Kazakhstan, lets say might not have it. And the result? The computer tries finding a like font to replace the font mismatch. But sometimes, the computer really messes up and throws Chinese (or some other normally indecipherable font) on screen.

If you want to list optional fonts to use in the case your first choice font isn’t installed on your visitor’s computer, look at your HTML (“View”, “HTML…”) and find the relevant <FONT> tag. Then, in the “face” attribute, starting with your most desired font display, list the fonts you want displayed in sequential order, separated by a comma. This should prevent having an indecipherable font display on screen in the event a user doesn’t have your first choice font installed on his or her computer.

If a specific font type is necessary, consider creating a graphic. If your text is saved in graphical format, it will show up (provided the user’s browser has the ability to display images on-screen). If you want to be positive that you get your message across if an image doesn’t display, go to the HTML view. In the appropriate <IMG> tag, type the attribute src=”yourmessage” where “your message” is the message you wish to communicate to the user.

But otherwise, your formatting capabilities are virtually endless.

Simply go to “Format”, “Font” to change individual font properties such as text alignment, font, font size, etc. A dialog box similar to the one shown should display.

Formatting text on web pages

Although the paragraph justification feature is not currently offered within FrontPage Express, you can always use the HTML View feature to justify text. In a paragraph tag <P> insert the line ALIGN=”justify” and an example would be <P ALIGN=”justify”>. To end paragraph justification, remember all tags should preferably be closed whenever possible, in this case with </P>.

Implementing Movie Clips and Video

June 10th, 2007

The advantage of adding a movie clip or video sequence to your site is that it has potential to make your site more attractive and have greater value. The downside of implementing video clips to your Web pages is their download time factor. Most video clips seemingly take forever to download.

QuickTime media is popularly used to implement video to Web pages. AVI files are another popular media option. If you think download time isn’t that great (try keeping it under 3-4 minutes at the most), then go ahead and see how using video on your site goes. It might be a great investment towards the overall value of your site.

To add video, simply go to “Insert”, “Video…” and a dialog box should appear. If the video file is found locally, simply type in the filename and extension in the “From File” field. If the video is located on-line (please be sure you have the legal permission to link to it), simply type in the file’s location in the “From Location” field.

Implementing Sound Files

June 10th, 2007

The two most commonly used audio file formats used on the Web are WAV and MIDI. There are other common formats, such as the RealNetworks .ram, .rmm, .ra, and .rm file formats. With the RealPlayer plug-in, users can listen to streaming music that at times can be broadcasted live.

MIDI files are entirely instrumental. They are composed using MIDI keyboards and are sometimes termed “computer music.” They are generally quick-loading files.

WAV files typically take a longer time to download and its important to keep file size down to the minimum, especially when combining the files with roll-over effects on clickable buttons, etc.

The file formats developed by RealNetworks generally initiate fairly quickly but require special configuration on the resident server for them to operate. For this reason, many Web developers find it cost-efficient to simply link to other files on the Web (provided they receive legal permission). But the disadvantage always exists where the file could be changed or taken offline, causing an error on your Web site. It may be worthwhile to take the investment of purchasing the files or the service that sets the capability for RealAudio files to run on your site.

Probably the easiest method to set-up a sound file on your site is to insert the appropriate code to your HTML.

To do this, you simply copy the code provided below and modify it to your specifications. Do you want the sound file to automatically load when a user visits the page? Maybe you want to give him or her some options as to what they would like to listen to (or listen to anything at all). If you want the sound file to automatically load, leave the code as it is. If you would like to give the user an option, replace the “true” attribute with “false” in the “NOJAVA” and “AUTOSTART” attributes.

<EMBED src=”thesoundfilename” WIDTH=”0″ HEIGHT=”0″ NOJAVA=”true” AUTOSTART=”true”>

Example (for a locally-stored file): <EMBED src=”techno.mid” WIDTH=”0″ HEIGHT=”0″ NOJAVA=”true” AUTOSTART=”true”>

The above format starts automatically and a user has no immediate options. The following modification displays a virtual music jukebox with options that starts manually.

<EMBED src=”thesoundfilename” AUTOSTART=”false”>

Example (for a locally-stored file): <EMBED src=”techno.mid” AUTOSTART=”false”>

Side Note: Notice how the height and width dimensions are deleted. This allows different audio plug-in dimensions to display accurately and not have a compressed (or enlarged) appearance. The attribute “NOJAVA” is also removed in the case a user has a favorite audio plug-in they use (such as Beatnik, for example).

Implementing Graphics

June 10th, 2007

To implement a graphic using FPE, click on the icon depicting a mountain range with a yellow sky. If you do a mouse-over, you should get the message “Insert Image.” You can also complete the same operation by going to your menu bar and selecting “Insert” and clicking on “Insert Image.”

A dialog box, similar to the one shown below will appear. You’ll get some options here from which you can decide how to set-up your image.

Adding images to web pages

Before linking to an image on your hard drive, make sure it’s in the current folder or in the folder where you store your graphics. This prevents having a link to your hard drive, which would normally be inaccessible by other users when clicked upon.

For the following placement instructions, we’ll assume you store your images in a folder titled “graphics.”

To link to a graphic in a folder in the current directory, place a single dot before the forward slash (ex. “./graphics/yourimage.jpg”). Although placing the single dot is not entirely necessary for the proper functionality of the image appearance in most cases, it’s a little more proper than simply placing the forward slash. Placing this dot also prevents any possible confusion which may arise from any members of your programming team, if they exist.

To link to a graphic in a folder in the directory immediately off from your current directory (which is usually done for graphics that are universally used within the site such as navigation graphics, etc.) you would place two dots before the forward slash (ex. “../graphics/yourimage.jpg”)

If you target directory is beyond the given examples, you’ll have to add more dots and slashes. A probable instance of this happening would be if you have a directory off from another directory created from your root directory. (ex. “../../graphics)

If the given examples didn’t help you solve your linking problem, try experimenting with different combinations of dots and slashes. If you continue to experience difficulty, check to see if your target link still exists. It’s possible your file might have been moved into another folder or saved in the wrong directory.

Side Note: There is a different method for implementing image maps. It is a little encouraging to know that most image map editors generate the appropriate HTML code you need to place onto your Web pages. One program, MapMaker32 (available at http://members.tripod.com/~mharing/mapmaker.html) lets you easily create client-side image maps.

Also, if you want a tiled background image, link to by clicking “File” on the menu bar, “Page Properties…”, going to the “Background” Tab, checking the “Background Image” field and either typing in the location of the image or click on the “Browse…” button to find it yourself. Make sure the file location doesn’t refer to your hard drive or the file will be inaccessible for viewing.

Creating Hyperlinks

June 10th, 2007

You might want to add a form to a Web page to review customer feedback, have the ability to conduct e-commerce on the Web, or just allow the user to send you common messages. Implementing forms can be somewhat of a hassle when adding them into complex page layouts. You may want to insert a table inside the form area to organize the form fields better rather than cramming all the fields together. (Refer to the previous discussion of how to implement tables).

The form field construction set can be found to the end of your task bar. There should be 6 grouped icons. Again, the capabilities of these icons will produce a short description if you do a mouse-over. In order from left to right, they should be labeled “One-Line Text Box”, “Scrolling Text Box”, “Check Box”, Radio Button”, “Drop-Down Menu”, “Push Button”.

Try clicking on all 6 buttons to see the function they create. Now that you have a sense of what the button functions create, delete everything and start creating your personalized form. You might find it helpful to first draw your form out on paper to decrease the chances of irritation, if you have limited experience creating forms.

When you have your plot constructed, go ahead and create the table layout with all the text pre-typed in the appropriate cell(s). Now go to the HTML view (“View”, “HTML…”) and go to the table you just created. It should be quite obvious which table it is because it should have all the data you inputted. Just before the <TABLE> tag, insert the tag <FORM>. Now look for the point where your table ends and insert the tag </FORM> after the </TABLE> tag.

We are assuming that you don’t know how to implement CGI or PERL scripts at this point so we’ll have the form’s “action” attribute link to your e-mail address. Do this by inserting the ACTION=”mailto:youremailaddress” attribute inside your <FORM> tag. Also be sure to insert the METHOD=”POST” attribute in the same tag or your form won’t send. It might also be worth suggesting to name your forms in the case you receive multiple forms (use the NAME=”yourformname” attribute. Example: <FORM NAME=”Feedback” METHOD=”POST” ACTION=”mailto:info@pcmachines.com”>

At the end of your form, you’ll want to place a “Submit” button to allow the user to transfer applicable form data to your e-mail address. Simply do this by inserting the following code at the end of your form: <INPUT TYPE=”submit” NAME=”Submit” VALUE=”Submit”>.

Also worth mentioning is the fact that you’ll want to name your form fields so that form data may easily be identified at the time you review a specific user’s input. In every form field, insert the name=”anyspecification” attribute. Example: <INPUT TYPE=”checkbox” NAME=”yes”> would identify the user’s choice for a field as “yes”. Place the “VALUE” attribute if you want a field already pre-typed. This is helpful for fields such as “country” where it is typically more likely to find that user is from the United States so you would place VALUE=”United States” for that tag. And if someone’s from Canada (or any other country) they can just simply erase what’s in the form field and type in their own country.

Unfortunately, special characters will be encrypted with this process but is normal. For this reason, many advanced programmers choose to program complex CGI or PERL scripts that allow the form data to send directly and unencrypted to a specified e-mail address where it can be easily interpreted when viewed. This book assumes you’re not an advanced CGI or PERL programmer so we’re just letting you in on the basic approach for having form data sent to your e-mail address.

Hyperlinks can either be in the form of a graphical hyperlink or regular hypertext (linked text). They can link to virtually anything in computer format you can think of. Most often, however, you will find they are commonly used to link Web pages, Web sites, photographs, and downloadable programs on the World Wide Web. Hyperlinks leading to downloadable programs typically begin with the “ftp” protocol rather (especially on corporate Web sties) than the “http” version since downloading via FTP (File Transfer Protocol) is typically faster versus the conventional “http” method. In other cases, you’ll see the “http” protocol but see the filename extension ending with “.zip” which means the file is saved as a the ZIP archive file format. Many Net users use a version of WinZip, which both compresses and decompresses (extracts) the data within the archive. This file format is normally used for one of two purposes: 1) It saves time downloading because the file(s) is(are) compressed and 2) It immediately begins the file download process on many common browsers rather than calling up a security precaution window. In other words, the browsers recognize the file format as a downloadable archive and immediately begins the file download process. You can download the latest version of WinZip at http://www.winzip.com.

To create a hyperlink with FrontPage Express, simply click on the icon depicting a small globe with a chain link. This icon can be found to the right of the “Insert Image” icon. Again, if you’re not sure if you have the right icon, do a mouse-over. You should read “Create or Edit Hyperlink” when you do a mouse-over for this icon. When you click on the button, you should see something similar to the following depiction:

Creating Hyperlinks

Enter the URL (World Wide Web address) of your link in the appropriate area. By default, FPE inserts the link as the text you inputted for the link. So if you want another title for the link, go to the HTML view (located in “View”, “HTML…”) and scroll down until you see the repetitive link. For example, if you typed “http://www.pcmachines.com” into the URL area of the “Create or Edit Hyperlink” dialog box, you would see something similar to <A href=”http://www.pcmachines.com”>http://www.pcmachines.com</A>. Simply replace the repetitive URL with your own text. Some people like to insert the format “Click here to go to x” (where “x” is the destination).

If you want to create a new Web page link and create a new document, click on the “New Page” tab and insert the page title and URL in the appropriate fields.

Side Note: If you don’t like the appearance of underlined hyperlinks, you’re in luck. Go back to the HTML view and type the following inside the <HEAD> tags:

<STYLE>a {text decoration: none}</STYLE>

This is actually a small style sheet, formatting every hyperlink on your Web page. As you can see, the script calls for the removal of the “text decoration.”

You may also find the following helpful:

To make a message appear in the status box when a user moves their cursor over a hyperlink, type the following in the body area:

<A href=”pagename.htm” onMouseOver=”window.status=’Title’; return true;”>type description here</A>

To set-up an e-mail address, simply type

<A href=”mailto:someone@somewhere.com”>type the link here</A>

If you want to insert a pre-set subject line when the user’s browser e-mail dialog box appears, insert the attribute “?Subject=Your Subject” inside the <A> tag.

Example: <A href=”webmaster@pcmachines.com?Subject=Hello There”>Send me an e-mail message!</A>

Creating Forms

June 10th, 2007

To decipher a specific special character, simply refer to our table below. These are commonly used punctuations.

%21 ! %60 ` %3F ?
%22 “ %2B + %5B [
%23 # %2C , %5C \
%24 $ %2F / %5D ]
%25 % %3A : %5E ^
%26 & %3B ; %7B {
%27 ‘ %3C < %7C |
%28 ( %3D = %7D }
%29 ) %3E > %7E ~

Punctuations that don’t have a coded equivalent include the following:

  • @ the “at” symbol
  • * the asterisk
  • - the dash mark
  • _ the underscore
  • . the period

Occasionally, you might get a raw “ASCII based e-mail message containing a file called “postdata.att” of an unspecified type (application/octet-stream). The e-mail subject line will typically state “Form posted from Microsoft Internet Explorer” so you know the file came from someone using the Internet Explorer browser, if that means anything to you. Since this file type is not associated with any common application (and that it’s resident e-mail specifically states that the encoding is “7bit”), you’ll have to open it using either Microsoft Notepad or Microsoft WordPad (which can both be initialized by going to “Start”, “Programs” and “Accessories”). Simply use the program’s “Open” command from the “File” menu and select the option “All Files (*.*)” in the “Files of type” field for Notepad or the option “All Documents (*.*)” for WordPad and browse until you find the file in the directory you saved the “postdata.att” file in. From this point, its just a matter of copy and pasting the file’s contents (if worthy enough) to your manual guestbook or other file if you chose to save it.

Side Note: If you have access to a cgi-bin (the folder that typically stores files of type “.pl” and “.cgi”) please feel free and give a shot setting up some scripts. The scripts at Matt’s Script Archive (http://www.worldwidemart.com/scripts) are fairly easy to set-up for beginners. Simply follow the instructions to configure them and set permissions and you have an opportunity for creating a potentially advanced (and interactive) site. And, if you make use of the “formmail.pl” script, you can forget about taking all the time deciphering your e-mail form input. With this method, you can also be guaranteed to have the form data sent to you rather than have it sent via the e-mail method where its possible that your user might not have their e-mail program set-up. (And if they don’t have their e-mail program set-up, they can’t send the form input to you since the default method is based on e-mail delivery.) The “formmail.pl” script also gives you the option to set-up a thank you page that appears when the user clicks the “Submit” button. (Hey, it’s a lot better than clicking the Submit button and having the appearance of nothing processing.) Generally speaking, with the user of CGI scripts, you won’t have to worry about what’s supported with what browser and so on. If you had used JavaScript interactivity, for instance, you would have had to do research to see if your specific effect would work for the majority of Internet surfers. Contact your system administrator to see if you have access to a cgi-bin. Many Web hosting providers allow their customers to install their own scripts. You might also want to check out The CGI Resource Index at http://cgi.resourceindex.com/Programs_and_Scripts/Perl/ for more CGI/PERL scripts to work with. This site has an extensive library of many popular scripts on the World Wide Web. An in-depth discussion of implementing CGI and PERL scripts to your Web directory may be found in the “Installing CGI/PERL Scripts” section.

Color Schemes

June 10th, 2007

A good designer always considers which colors look best with a particular project. They do this in part by taking information from the color wheel and relating it to their design.

Certain colors look best with others and the color wheel can help you find them. The color blue, for example, would complement orange. You might also want to consider designing with what are commonly termed “warm and cold colors” to create the correct feeling for your site. Try to devise a uniform color scheme for your site to give it a more professional appearance.

For a well-balanced color scheme, use a combination of the colors equidistant from each other on the color wheel.

Of course, there are a number of additional odds and ends to creating a successful and visually appealing color scheme. Anderson College has a helpful page with more tips in creating a color scheme. Take a look at http://users.anderson.edu/~jfultz/text.html. You might also find the site http://www.arnb.com/webdesign/chap7/cwheel/cwheel.htm useful for further color information.

Developing a workable color scheme is essential to creating a successful physiological environment on your Web site that creates certain moods and encourages your visitor to purchase a product or click on a certain button, etc. Its actually been proven to work!