It's estimated that more than 80 percent of the people who browse the Internet are using graphical browsers. When I first started browsing the Internet, the Web didn't offer too much in the way of graphics. Being a person who enjoys the visual side of electronic media and communications, I quickly lost interest and didn't get back on the Web for quite a while.
Graphics are running rampant on the Web now, and people are taking notice. We're able to design past that standard WWW-gray background color now. We can use tiled background images, specify custom colors, use images for links, and even place animations in the pages. The Web is becoming the way I like it! Obviously, there are lots of us out here who enjoy a graphical environment. Give us flash, give us style, but do it in a manner that doesn't tie up our modems too long or distract us, okay?
Some people have the knack for using images effectively, and others don't. This chapter gives you some tips on color combinations and when and when not to use images in your pages. You'll soon be building pages like a pro.
It's always a good idea to maintain some consistency on your site. If you use different color combinations on your pages, users might think that they have landed in a different site on the Web. Even if you don't use images on your pages, you can use custom background colors or images and custom text and link colors to give your pages a unique and consistent appearance.
The easiest way to accomplish this is to create a style sheet. Any page can be used as a style sheet for another page, but the easiest way is to use a page that is easily identifiable as a style sheet. On this style sheet, you specify the color combinations you want to use in all the pages in your web or in a section of your web.
Keep in mind that people expect certain colors to represent certain
things. The standards are blue for links, purple for visited links,
and red for active links. It's a good idea to stay within these
color guidelines, but there's nothing wrong with changing hues
a little bit to complement your background and text colors. For
example, if your background is a light tan color, you can use
dark brown for your text color. Then you can create a nice teal
blue for a link color, a deep purple for a visited link color,
and a tomato red for an active link color. Those colors are a
bit more earthy-looking and would blend in well with the light
tan background.
TIP |
While we're on the subject of color, here's another tip: Consider how stark contrasts in color can affect people's eyes. You might like how that red text looks on that lime green background, but other people might not like it. If color differences are too drastic, the colors vibrate and cause eyes to tire quickly. For this reason, try not to keep your colors pure. Rather than create a blue that's pure blue (an RGB value of 0,0,255), for example, use a value more like 0,0,240. Rather than use pure white (255,255,255), use a white that has a little bit of gray or other color undertone in it. The goal is to make your pages easy on the eyes. |
You'll find it helpful to keep a record of the color combinations and backgrounds you use. As you develop your graphics (especially graphics that blend with your background and text colors), you'll need to remember the color formulas you've used. It's helpful to put the formulas right on the style sheet.
Here's a great way to create a style sheet:
When you create a style sheet, or any other page for that matter, you can change the properties of the page to use the page's own custom colors, or you can base the page's style on another page. You learned about assigning some of these properties when you created a web with the Corporate Presence Web in Chapter 4 "If You Mean Business." Now it's time to assign page properties yourself.
To assign colors and other properties to your page, follow six steps:
NOTE |
The Background Image option takes precedence over the Custom Background Color. The solid background color displays while the background image is loading. If you want to use only a solid background color, be sure that Background Image is unchecked. |
Use Custom Link Color, Use Custom Text Color, Use Custom
Active Link Color, and Use Custom Visited Link Color.
Choose any of these checkboxes if you want to specify custom colors
for any of these elements on your page. Click the Choose button
to select a custom color from the Color dialog box.
Name | What It Does | |
BGPROPERTIES | Specifies a watermark (a background that doesn't scroll). Internet Explorer 3.0 feature. | |
LEFTMARGIN | Specifies a left margin, which overrides the default. When set to 0, the left margin is exactly on the left edge of the page. Internet Explorer 3.0 feature. | |
TOPMARGIN | Specifies a top margin, which overrides the default. When set to 0, the top margin is exactly on the top edge of the page. Internet Explorer 3.0 feature. |
Meta tags are used to describe information about a Web page. For example, Web robots and searches use Meta information to display information about pages on the Web. The following Web page provides information and good links to pages that describe how to use Meta variables with your Web pages:
http://www.stars.com/Search/Meta.html
Table 11.2 shows an example of how Meta variables are entered
in FrontPage.
Name | What It Does | |
HTTP-EQUIV | Tells the browser to refresh the document. | |
CONTENT | Tells the browser to reload in a specified number of seconds. | |
CONTENT | Tells the browser to load the URL after the specified time has elapsed. If no URL is specified, it reloads the current document. |
You've seen the term extended attribute in other parts of this book, but I've put the explanation in this chapter because it's the most likely place you'll use extended attributes.
If you've never touched HTML code, you might need some background information first: In simplistic terms, there are several varieties of HTML tags that perform a specific function. For example, the IMG tag indicates an image. Each tag has a subset of attribute names that apply to different types of functions the tag can perform. Each of these attribute names can (but not always) have a value. For an analogy, compare a car to an HTML tag, color to an attribute name, and the color blue to the attribute value.
Why do you need extended attributes? Doesn't FrontPage have a lot of built-in attributes? First, there are some attributes that aren't yet supported by FrontPage. For the most part, those that aren't covered are either seldom-used, under development or discussion, or browser-specific. For the majority of them, you can use extended attributes to cover the bases, but remember that when you use an extended attribute, the feature you're adding might not be viewable by all browsers. Second, because HTML standards are constantly being developed, extended attributes allow for future growth. It's a well-thought-out plan.
For properties dialog boxes that allows you to add extended attributes, this book contains a table of HTML tags that you can add and explains what they do. If you don't find a table for a dialog box that allows you to enter attributes, it means that FrontPage covers all the attributes for those tags.
You use horizontal lines (traditionally known as horizontal rules)
to distinguish the beginning or end of sections on your pages.
For example, if you have a page that describes the main sections
on your site, you would use horizontal lines at the end of each
section's description.
NOTE |
If you want a fancier divider, insert a divider graphic into your page. Your dividers can be gradients, dots, stars, metallic bars, or whatever else you can think of. See the task "Using Images in Your Pages," later in this chapter. |
To insert a horizontal line into your page, follow five steps:
Figure 11.5 shows several examples of horizontal lines. The top example shows the horizontal line that is created using the default settings. Its width is 100 percent of the screen, and it is 2 pixels high. Beneath it are several other examples with different width, height, and shading settings. You can also align the horizontal lines to the left, center, or right of the browser window.
Figure 11.5 : Examples of horizontal lines with different widths, heights, and shading.
Name | Value | Comment |
COLOR | #rrggbb | Enter color value in hex. |
COLOR | See appendix D | Specify custom color as shown in Table D.18 in appendix D. |
As mentioned at the beginning of this chapter, 80 percent of the people who use the Internet are using graphical browsers. This percentage should increase even more in the near future; however, that doesn't necessarily mean that all the people who use graphical browsers actually view the graphics. Some people don't like the added download time and turn the feature off if they can.
How do you keep these people happy? One way is to keep your graphics small. It might not take a person with a 28.8 modem very long to download that 300KB header graphic you have, but think about the user who is using a 2400- or 9600-bps modem. It would take a long time to download a header graphic of that size on a slower modem.
So, keep the file size down, either in dimension or through JPEG compression. You can also decrease the file size by reducing the number of colors in an image. Even though GIF files can contain as many as 256 colors, you can create good artwork with as few as 16 colors.
Whether you use GIF or JPEG images (you'll learn about the differences
between them in "Choosing Between GIF and JPEG Images,"
later in this chapter), try to limit the total page size (including
the images) to 50KB or less. If your images exceed that size,
make small thumbnail versions of the images to use as previews.
The user can click the thumbnails to view or download the images,
if desired. Be sure to note the larger graphics' file sizes (in
kilobytes) somewhere near the link so that the user can decide
whether the download time is too long.
TIP |
If you simply can't live without those large pictures or animations on your pages, here's another tip that might work: Place all your important text and smaller images near the top of the page and the large images and animations toward the bottom. Warn people about what's coming, telling them that the lower portion of the page takes some time to load. This way, they can at least explore a portion of your page while the larger files are being downloaded. If you get people's attention at the top of the page, they are more likely to check out what's at the bottom. |
Web pages normally use two types of images-GIF and JPEG. FrontPage can also import several other types of common image formats. If any of these other file types are imported into your web and placed on your pages, they are automatically converted to either GIF or JPEG format. When FrontPage sees an image that uses 256 or fewer colors, it converts the file to GIF format. Images that use more than 256 colors are converted to JPEG.
FrontPage can convert several image formats:
GIF. CompuServe GIF format. 256-colors. Viewable in all graphical browsers.
JPG. JPEG format. Compressed hi-color or true-color images. Currently not supported in all browsers, but support is increasing.
BMP. Windows or OS/2 bitmaps.
EPS. Encapsulated PostScript files.
MAC. MAC format.
MSP. Microsoft Paint format.
pcD. Photo CD format.
pcX. Z-Soft Paintbrush format.
RAS. Sun Raster Image format.
TIFF. Tagged Image File Format.
WPG. WordPerfect raster image file format.
WMF. Windows Metafile format (available only when the image is embedded within an RTF file).
Pardon the pun, but choosy Web developers choose GIF. They choose GIF because most browsers support this format. GIF images have some advantages over JPEG, and vice versa:
If GIF images can do all that great stuff, why do you need JPEG
images? Consider how many colors can exist in a photograph. The
human eye can see approximately 11 or 12 million colors, and a
computer can display even more-up to 16 million different colors.
Photographs can contain millions of colors as well. When you reduce
this monstrous amount of colors down to 256 colors, you don't
get quite the same effect. Banding, loss of subtlety and detail,
and objectionable dithering can occur.
NOTE |
Banding occurs when you reduce a true color image down to a limited amount of colors, such as those found in a 256-color palette. The colors in the original image are replaced with the closest value found in the limited palette. Areas that originally contained many subtle color differences convert to an area of solid color, giving the image a banded effect. |
With JPG images, you have a fighting chance. By using various
compression schemes, JPG images can reduce the size of a true-color
image substantially. In most cases, a true-color JPG image that
uses good- to high-quality compression is smaller than a 256-color
image of the same dimension, yet it contains more colors. Colors
can be reduced by applying image compression, but you won't see
a lot of difference if you use compression ratios wisely. When
allowed to specify compression levels in percentages, I usually
use 60 to 85 percent quality (depending on the richness of the
image), with 100 percent quality being best. When given a range
of choices, such as Low, Good, and High, I never go below Good.
Too much deterioration occurs when compression ratios are set
too low.
TIP |
Don't recompress a compressed JPG image. If you think your image might need to be modified again at some point, keep a true-color version of it on your hard drive (TIF, TGA, true-color pcX, true-color BMP, and so on). Make the changes to the original, and compress again. |
Now that you know the basics about different kinds of images,
how to use them, where to put them, and so on, you need to learn
how to import them into your web. You can import graphics files
to your web from a drive on your local computer or from a network
drive. FrontPage allows you to import several graphics types.
Importing graphics into your web before you place the images on
your pages allows you to import multiple files at once and to
change the URLs to point to another existing directory in your
web. It also allows easier selection of images later.
NOTE |
If you change any image that has been imported into your web, you have to import it again. |
To import images to your web, follow nine steps:
You can insert graphics files into your pages from a drive on your local computer, from a network drive, from a location on the World Wide Web, or from your currently opened web. FrontPage allows you to insert several graphics types.
To insert an image into your page, follow three steps:
NOTE |
When you insert an image from the World Wide Web, the image is inserted from its location on the Web. You cannot import the image into your web. |
When you save your page to the Web, you are asked if you want
to save the images you inserted on your pages to the Web.
NOTE |
The Save Image to Web dialog box appears when you save images that you inserted with the Insert | Image command. It also appears when you save images that you pasted into your page through the Clipboard. |
The Save Image to Web dialog box appears as FrontPage attempts to save each image to the Web. To save your images, follow three steps:
Line breaks can help you to lay out images and text in your pages. They force text to appear after images in a few ways. To insert line breaks, follow two steps:
You can change several of the image properties with the Image Properties dialog box, shown in Figure 11.10. You can open this dialog box using a few methods:
Figure 11.10: Edit the properties of the image with the Image Properties dialog box.
The Image Properties dialog box appears. To set your image properties, follow eight steps:
Some extended attributes can be applied to images. The HTML specification includes two attributes-HEIGHT and WIDTH-which allow you to resize an image. Your image is stretched or reduced to fit the dimensions that you specify with these settings. When you attempt to add either of these two extended attributes to an image, however, a message informs you that FrontPage recognizes and handles the attribute directory. You are instructed to change the values in the appropriate dialog box. In this case, the settings for image height and width appear in the Size section of the Image Properties dialog box. However, the dialog box does not allow you to edit these fields.
There is a good reason why you are not allowed to resize an image through these attributes: When you resize images in this manner, you might get objectionable results. Graphics programs know how to resize an image and maintain a good appearance while doing so-Web browsers don't; that's not what they were made for. Rather than resize your pages using these attributes, resize the image properly with your graphics software and put it on your page in its actual size. You'll be glad you did.
You can use the attributes shown in Table 11.4 to add inline animations
(AVI) files to your pages. These animations can be viewed only
in Internet Explorer 2.0 at this time. Beta versions of Internet
Explorer 3.0 and Netscape 3.0 also display inline animations.
It's fun to see an animation on a page every now and then. To
place an animation on a page, you need to add more than one attribute.
You start with the DYNSRC attribute and go from there.
Name | Value | Comment |
CONTROLS | If a video clip is present, a set of controls is displayed beneath the video clip. | |
DYNSRC | URL | Specifies the address of a video clip or VRML world to be displayed in a window. |
LOOP | n | Specifies how many times a video clip loops when activated. If n=-1, the video loops indefinitely. |
LOOP | INFINITE | Video clip loops indefinitely. |
START | FILEOPEN | Video clip plays as soon as the file is opened. When used in conjunction with MOUSEOVER, it plays once as soon as it opens and thereafter whenever the user moves the mouse. |
START | MOUSEOVER | Video clip plays when user moves mouse cursor over the animation. When used in conjunction with FILEOPEN, it plays once as soon as it opens and thereafter whenever the user moves the mouse. |
Say you want to add a small AVI file on your page. The animation is going to go on your guest book, and it's an animation of pages turning in a book. You want the animation to play as soon as the page is loaded, and you want it to play as long as the user is on the page. Here's how you would add the animation and its attributes:
When you use GIF images, you have the opportunity to make one
of the colors in the image transparent. The term transparent
is a bit deceiving because the color you pick doesn't really go
away-it's just hidden so that the page background can show through.
This option makes the GIF image look like it's floating on the
page.
NOTE |
You can make a JPEG image transparent; however, when you save the page to your web, you are prompted to convert the image to GIF format. Because JPEG image formats can contain more than 256 colors, you might see a reduction in the number of colors, which could affect image appearance. Also, because JPEG images use various compression schemes to reduce file size, you might also see an increase in file size when you convert the image to GIF, even though the GIF image contains fewer colors. |
Only one color in the image can be transparent. If you select
a new color, the previous transparent color returns to its opaque
value. You can choose a transparent color with four steps:
TIP |
When you create a GIF image, fill the areas that you want to make transparent with a color that doesn't appear anywhere else in the image. You don't want holes in your transparent GIF in the wrong places. |
NOTE |
When you save the page, your original version of the image is overwritten. Don't add transparencies to animated GIFs after the fact. |
As mentioned, when you choose a new transparent color, the previous one becomes opaque again and returns to its original color. However, you might want to return a transparent color to its original color and not have any transparent area in your image.
You use either the Make Transparent Pointer or the Image Properties dialog box to make a color nontransparent. A description of each method follows.
To make a color in an image nontransparent using the Make Transparent Pointer, follow these four steps:
To make a color in an image nontransparent using the Image Properties dialog box, follow these four steps:
You can select images to cut or copy to the Clipboard by using the following procedure:
Use the Copy command to copy an image to the Clipboard:
To remove an image from your page, follow these steps:
To paste an image that you cut or copied from your page, perform one step:
This chapter has given you lots of tips regarding graphics. Let's review some do's and don'ts about adding graphics to your pages:
Graphics, when used effectively, can really make a page. On the other hand, when graphics aren't used properly, they can break a page. The best way to learn how to use graphics effectively is to carefully examine pages that catch your eye. You'll find lots of "picks of the week" on the Web-check them out for various ideas. How were colors used on the page? What was it about the page that caused you to explore it? Try to apply the same principles to your own pages.
In this chapter, you learned how to combine colors for text, links, and backgrounds with images. You learned how to insert files into your webs in a variety of ways. You even learned how to add animated GIFs and animations to your pages using extended attributes. The groundwork is set-the rest is up to your imagination.
In the next chapter, you'll learn how to combine everything you've learned so far to create Web pages of your own. You'll design a style sheet, a home page, and some favorite links pages from the ground up and make a navigation bar that will satisfy graphics enthusiasts and nonenthusiasts alike. For topics related to what you've learned in this chapter, see these chapters:
Q: | I put an animated GIF on my page and then I made it transparent in the FrontPage Editor. It doesn't animate anymore. What's wrong? |
A: | When you make an image transparent in FrontPage, it saves the image over the previous version, with the transparent data in it. Animated GIFs are a special animal-there are actually multiple images (called frames)
within that single file, and they are grouped together as one image in a special way. Think of an animated GIF as an electronic flip-book. When you add transparency to an animated GIF, you are adding the transparency only to the first frame. FrontPage (and
many other graphics programs for that matter) doesn't know how to recognize the additional frames in an animated GIF, so it just writes out the first frame with the transparent data in it. That's why you don't see animation anymore-what was originally a
GIF file with multiple frames became a single frame with transparency. To make transparent GIFs, you need to break apart that special GIF file into separate frames again, add the transparency to each frame, and then rebuild the animated GIF. (Or, if you're creating the animation from scratch, add the transparency to each frame to begin with.) This sounds like a lot of work, but that's what it takes to make an animation of any kind. Unfortunately, because of the wide variety of graphics and animation programs available, I can't go into much more detail than this. Check out my support site for this book at http://frontpage.flex.net/dtyler/FPSite/index.htm, though I'll be adding tips and tricks that are a bit more application-specific. |
Q: | What software should I use to make images and animations of my own? |
A: | There are so many graphics programs to choose from that it's difficult to know which one to use. No one graphics program does it all, and sometimes you need multiple programs to create your Web graphics. Refer to appendix C for comments about some shareware and commercial graphics programs that can help you to get the job done. Check out the Web site mentioned in the previous answer, too. I'm planning to add tips and tricks that can help you. |
Q: | Can a user click on an animated GIF or AVI file to go on to another page? |
A: | You can assign an animated GIF or AVI file as a link as you would any other image. Click on the image, click the Create or Edit Link button, and away you go! |