Professional, Affordable Web
Development Services
for Small Business
Free Consultation
New York (845) 288-0127
Rhode Island (401) 280-1886

Website Design & Coping With Various Browsers

by 123WebConnect

Website Design CodingHow do professional website designers and developers cope with the multitude of browsers and their varying capabilities?  Here are a few guidelines.

Don’t sweat the small stuff.  As a website designer, you must allow a certain amount of variation.  It’s the nature of the medium.  What is important isn’t that form input boxes are all precisely 15 pixels tall, but that they work.  The first lesson you’ll learn is that you have to let go.

Stick with the standards.  Following web standards-(X)HTML for document structure and CSS for presentation-as documented by the W3C is your primary tool for ensuring your site is as consistent as possible on all standards-compliant browsers (that’s approximately 99% of browsers in current use).

Start with good markup. When an (X)HTML document is written in logical order and its elements are marked up in a meaningful way, it will be usable on the widest range of browsing environments, including the oldest browsers, future browsers, and mobile and assistive devices. It may not look exactly the same, but the important thing is that your content is available.

Don’t use browser-specific (X)HTML elements. There are markup elements and attributes out there that work only with one browser or another, a remnant from the browser wars of old.  Don’t use them’ (You won’t learn them here.)

Become familiar with the aspects of CSS that are likely to cause problems.

Using style sheets effectively takes some practice, but experienced developers know which properties are “safe,” and which require some extra tweaks to get consistent results on all current browsers.

Alternative Browsing Environments

The previous section focused on issues relevant to graphical browsers used on desktop or laptop computers.  It is critical to keep in mind, however, that people access content on the Web in many different ways.  Website designers must build pages in a manner that creates as few barriers as possible to getting to information, regardless of the user’s ability and the device used to access the Web. In other words, you must design for accessibility.

Accessibility is a major topic of discussion in the website design world, and a priority for all website designers.  While intended for users with disabilities such as poor vision or limited mobility, the techniques and strategies developed for accessibility also benefit other users with less-than-optimum browsing experiences, such as handheld devices, or traditional browsers over slow modem connections or with the images and JavaScript turned off.  Accessible sites are also more effectively indexed by search engines such as Google.  The extra effort in making your site accessible is well worth the effort.

Users with disabilities

There are four broad categories of disabilities that affect how people interact with their computers and the information on them:

  • Vision impairment. People with low or no vision may use an assistive device such as a screen reader, Braille display, or a screen magnifier to get content from the screen.  They may also simply use the browser’s text zoom function to make the text large enough to read.
  • Mobility impairment. Users with limited or no use of their hands may use special devices such as modified mice and keyboards, foot pedals, or joysticks to navigate the Website and enter information.
  • Auditory impairment. Users with limited or no hearing will miss out on audio aspects of multimedia, so it is necessary to provide alternatives, such as transcripts for audio tracks or captions for video.
  • Cognitive impairment. Users with memory, reading comprehension, problem solving, and attention limitations benefit when websites are designed simply and clearly.  These qualities are helpful to anyone using your site.

The lesson here is that you shouldn’t make assumptions about how your users are accessing your information.  They may be hearing it read aloud.  They may be pushing a button to jump from link to link on the page.  The goal is to make sure your content is accessible, and the site is as easy to use as possible.

The Mobile Web

The increased popularity of the Web, combined with the growing reliance on handheld devices such as cell phones, PDAs, and palm-top computers, has resulted in web browsers squeezing into the coziest of spaces.

Although most content accessible on mobile devices has been developed specifically for that type of browser, an increasing number of devices now include microbrowsers capable of displaying the same web content that you’d see on your Pc.  Microbrowsers are designed to accommodate limited display area, lower memory capacity, and low bandwidth abilities.  Some have only basic HTML support and others support the current web standards.

One limitation of handheld devices is screen size.  Mobile displays are roughly only 240 pixels square, although some have dimensions as small as 128 pixels or as large as 320.  That’s not much room to look at a typical website.  Mobile browsers deal with the limited screen size the best they can.  Some shrink the page to fit by displaying the text content as it appears in the HTML source document, and resizing the images to fit the screen.  Others simply allow horizontal scrolling.  Figure 3-2 shows the Jen’s Kitchen page as it might appear in a microbrowser on a cell phone.

Dealing with diversity

The best way to accommodate the needs of all your visitors is to design with accessibility in mind.  Accessible design not only helps your disabled visitors, but also those using the Web on the go or under any less-than-ideal conditions.  You’ll also improve the quality of your content as perceived by search engine indexing programs.

The W3C started the Web Accessibility Initiative to address the need to make the Web usable for everyone.  They developed the Web Content Accessibility Guidelines (WCAG) to help developers create accessible sites.  You can read them all at The United States government used the Priority 1 points of the WCAG as the basis for its Section 508 accessibility guidelines (see the sidebar, Government Accessibility Guidelines: Section 508).

While accessibility and the techniques for achieving it are vast topics, I’ve summarized some of the guiding principles and provided pointers to useful resources here.

Start with clean HTML. When your source document has been marked up with appropriate, meaningful HTML elements and the content appears in a logical order, your content will make sense in the widest variety of circumstances, whether it is read aloud or displayed on a tiny handheld screen.

Provide alternatives. Always provide alternatives to non-text content such as alternative text or long descriptions for images, transcripts for audio, and captions for video content, to better serve users with various disabilities.

Allow text to resize. If you use style sheets to specify font size, do so in relative measurements such as percentages or ems (a unit of measurement for text equal to a capital “M” ) so that users can resize it with the browser’s “text zoom” feature (when available).

Don’t put text in graphics. Although it may be tempting to control the typography of a headline by putting it in a graphic, doing so makes it less accessible by removing that content from the document.  It also prevents users from resizing the text.

Use accessibility features when creating HTML tables and forms. There are a number of attributes in HTML 4.01 and XHTML that improve accessibility by explicitly labeling columns or form fields.  They’re only useful if you take the time to use them correctly.

Be careful with colors and backgrounds. Be sure that there is plenty of contrast between the foreground and background colors you specify.  When using background images, be sure to also specify a similarly colored background color so text is legible, should the image not load properly.