• Simple Solutions
  • How We Make it Simple
  • About Us

Simple Solutions

We offer a range of services designed to get veterinary professionals online and to keep their web site current. Every one of our services is developed specifically for the veterinary profession, and is designed to be simple to use. Learn More »

How We Make it Simple

We make working with us simple by simply understanding your needs. We focus exclusively on the veterinary profession and provide services that are simple and effective. We also back our services with awesome customer support and the best guarantee in web design. Learn More »

About Us

We speak your language. Established in 2001, veterinary web site design and development is what we do. Our focus is on providing simple, high quality services - without the techo-speak and attitude! Learn More »

Standards-Compliant Design

This article will discuss the various techniques used to build web sites and the consequences of these techniques. It will focus heavily on emerging Internet standards, such as Cascading Style Sheets, and compare them with more common development techniques.

Background

Web sites are developed using Hypertext Markup Language (HTML). HTML is the coding standard for all web pages and it is what is read by your browser when you view a web page (browsers are the programs on your computer that show you web pages; for instance Internet Explorer or FireFox). An example of a very simple web page's HTML is shown here:

<html>

<head>

<title>A Simple Web Page</title>

</head>

<body>

<p>Hello</p>

</body>

</html>

When you go to a web page, your browser (e.g. Internet Explorer) shows you its interpretation of the HTML that makes up that page. What it shows you is the visual display of that HTML.

The visual displays of the HTML elements of a web page are not universal, but rather set by each individual browser. For simple elements, the difference is usually very minor. For more complex elements, however, the differences can be staggering. For the HTML above, the web page looks like this:

Web Site Screen Shot

HTML is a structured language composed of tags that describe the various items on a web page. For example, a paragraph is indicated by a <p> tag. Anything within this tag is the text of a paragraph (tags technically need to be opened and closed, so the text of a paragraph is actually within a starting <p> tag and a closing </p> tag, but don't worry about that for now). In the HTML code shown above, the "Hello" is in paragraph tags.

Similar to paragraphs, headings are placed within <h> tags, images within <img> tags, tables within <table> tags and so on. Don't worry about knowing these tags; just understand that HTML uses tags to describe what kind of information is on the web page.

History of Visual Display

Until recently, there were very few standards on the Internet relating to the visual display of web pages. This meant that a web page would look radically different if it was viewed in different browsers. These variations were often not just minor differences, but were large enough that a web site could be unintelligible if it were viewed in the wrong browser!

As a result of the variations, web designers looked for ways to add consistency to their web sites, regardless of the browser used. To do this, they started misusing the HTML tags that make up a web page.

The biggest culprit was the misuse of the <table> tag. It was discovered that if a designer placed all the parts of the web page in a table, it would display properly on different browsers. Halleluiah!

For a very long time, this was the only way to get a web page to display properly on the Internet, and it became the de facto method for building web pages (what else could you do?). This has become know as a table-based design.

Enter CSS and Standards

Cascading Style Sheets (CSS) are separate files on a web site that allow the way an HTML tag is displayed (styled) to be changed. They override the browser's native display of the tag and instead allow it to be displayed in a way that fits better with the intended look of the web site.

This sounds great! But there was a catch: Along with not displaying HTML tags consistently, different browsers didn't display CSS consistently either. What a nightmare!

Fortunately, an international group was working hard to standardize the way CSS displayed. Over time and with a lot of work, their efforts have paid off to the point where CSS web sites are now not only possible, they're preferred.

When CSS is used to create web sites by following the international standards, it is called standards-compliant CSS (SC CSS).

The Nuts and Bolts (i.e. Show Me the Code!)

We're going to take a look at the HTML code itself to see the differences between SC CSS design and table-based design. For this section, we are going to use the Bionex Multimedia web site's old About Us page, with some changes to show the styling in action. For reference, here's what the page actually looked like:

Actual About Us Web Page

To start with, we'll use a sample of the Bionex Multimedia web site's old About Us page before getting a SC CSS design. After, we'll compare it to its modern SC CSS counterpart.

Table-Based Designs

Even Bionex Multimedia used table-based design once upon a time.

First we'll see the About Us page with the tables of the table-based design highlighted in white. This is followed by the HTML code (note that text in paragraphs has just been replaced with Text…). As an added bonus, we'll also see how the page looks if it is printed.

Tables Highlighted

Table-Based About Us Web Page with Tables Highlighted

That's a lot of tables, which makes for messy code (see below) and difficult updates.

Table-Based HTML Code

<table width="760" cellspacing="0" cellpadding="0" border="0" align="center">

<!--logo-->

<tr>

<td height="60"> </td>

<td colspan="4" valign="top"><img src="images/logo.gif" width="740" height="60" alt="Bionex Multimedia" border="0" /></td>

</tr>

<!--space btw logo and content area-->

<tr>

<td colspan="5" height="10"> </td>

</tr>

<!--title pictures + vertical bar running down beside RH navigation-->

<tr>

<td valign="top" align="right" height="80"> <!--<img src="images/endBit.gif" width="40" height="80" alt="" border="0">--></td>

<!--this title image MUST be cut in two, or Netscape stretches the table for no reason-->

<td valign="top" align="right"><img src="images/aboutTitle.jpg" width="520" height="80" alt="" border="0" /></td>

<td valign="top" align="left"><img src="images/aboutTitle2.gif" width="140" height="80" alt="" border="0" /></td>

<td rowspan="5" valign="top" align="left"><img src="images/vertbar.gif" width="40" height="320" alt="" border="0" /></td>

<!--prevents NN from squashing this column-->

<td><img src="images/pixelBlack.gif" width="40" height="40" alt="" border="0" /></td>

</tr>

<!--secondary (top) navigation + "About Me" of RH navigation-->

<tr>

<td height="30"> </td>

<td rowspan="3" valign="top">

<div id="content">

<p> Text…</p>

<p> Text…</p>

</div>

</td><!-- Main Nav -->

<td valign="top" align="right" rowspan="3"><br /><a href="default.asp" onMouseOver="document.butHome.src=homeRO.src;document.iconHome.src=iHomeRO.src" onMouseOut="document.butHome.src=home.src;document.iconHome.src=iHome.src"><img src="images/butHome.gif" width="100" height="25" alt="Home Page" border="0" name="butHome" /><img src="images/iconHome.gif" width="40" height="25" border="0" alt="Home Page" name="iconHome"></a><br />

<img src="images/butAboutRO.gif" width="100" height="25" alt="About Bionex" border="0" name="butAbout" /><img src="images/iconAboutRO.gif" width="40" height="25" border="0" alt="About Bionex" name="iconAbout"><br /><a href="default.asp?page=services" onMouseOver="document.butServices.src=servicesRO.src;document.iconServices.src=iServicesRO.src" onMouseOut="document.butServices.src=services.src;document.iconServices.src=iServices.src"><img src="images/butServices.gif" width="100" height="25" alt="Our Services" border="0" name="butServices" /><img src="images/iconServices.gif" width="40" height="25" border="0" alt="Our Services" name="iconServices"></a><br />

<a href="default.asp?page=accolades" onMouseOver="document.butAccolades.src=accoladesRO.src;document.iconAccolades.src=iAccoladesRO.src" onMouseOut="document.butAccolades.src=accolades.src;document.iconAccolades.src=iAccolades.src"><img src="images/butAccolades.gif" width="100" height="25" alt="Accolades Received" border="0" name="butAccolades" /><img src="images/iconAccolades.gif" width="40" height="25" border="0" alt="Accolades Received" name="iconAccolades"></a><br />

<a href="default.asp?page=contact" onMouseOver="document.butContact.src=contactRO.src;document.iconContact.src=iContactRO.src" onMouseOut="document.butContact.src=contact.src;document.iconContact.src=iContact.src"><img src="images/butContact.gif" width="100" height="25" alt="Contact Us" border="0" name="butContact" /><img src="images/iconContact.gif" width="40" height="25" border="0" alt="Contact Us" name="iconContact"></a><br />

<br />

</td>

<td> </td>

</tr>

<tr>

<td height="105"> </td>

<td> </td>

</tr>

<tr>

<td height="85"> </td>

<td> </td>

</tr>

<tr>

<td height="20"> </td>

<td colspan="2" align="right" valign="bottom"><img src="images/tagLine.gif" width="520" height="20" alt="Specializing in medical multimedia" border="0" name="tag" /></td>

<td> </td>

</tr>

<!--invisible row assigning widths-->

<tr>

<td width="20"><img src="images/pixelBlack.gif" width="1" height="1" alt="" border="0" /></td>

<td width="520"><img src="images/pixelBlack.gif" width="1" height="1" alt="" border="0" /></td>

<td width="140"><img src="images/pixelBlack.gif" width="1" height="1" alt="" border="0" /></td>

<td width="40"><img src="images/pixelBlack.gif" width="1" height="1" alt="" border="0" /></td>

<td width="40"><img src="images/pixelBlack.gif" width="1" height="1" alt="" border="0" /></td>

</tr>

</table>

That's a lot of code!

Printable Version

Print Out of Table-Based About Us Web Page

Doesn't look too good, does it?

SC CSS Based Layouts

Now we'll see the web site after its conversion to a SC CSS based layout. It looks identical to the table-based design, but without the misused table tags.

The Web Site Bare Naked (No CSS Styling)

Here, the styling has been turned off so only the pure HTML shows to give you an idea of how elegant these web sites are (this view is also what search engines such as Google see):

Standards-Compliant CSS About Us Web Page without CSS Styling

Pretty straight forward, isn't it? Google thinks so too.

SC CSS Based Code

<div id="header">

<h1>Bionex Multimedia</h1>

<h3>Veterinary Multimedia Solutions</h3>

</div><!-- id="header" -->

<div id="pageBG">

<div id="pageHeader">

<h2>About Us</h2>

</div><!-- id="pageHeader" -->

<div id="mainNav">

<ul>

<li><a href="index.asp" class="" title="Home Page">Home<img src="images/iconHome.gif" width="40" height="20" alt="Home Page" /></a></li>

<li><a href="about.asp" class="" title="About Bionex">About Us<img src="images/iconAbout.gif" width="40" height="20" alt="About Bionex" /></a></li>

<li><a href="services.asp" class="" title="Our Services">Services<img src="images/iconServices.gif" width="40" height="20" alt="Our Services" /></a></li>

<li><a href='examples.asp' rel='popUp 780 400 1 1 1 1 0 0' target='_blank' title='Examples of Our Work - Opens in new window'>Examples<img src="images/iconExamples.gif" width="40" height="20" alt="Examples of Our Work - Opens in New Window" /></a></li>

<li><a href="accolades.asp" class="" title="Accolades Received">Accolades<img src="images/iconAccolades.gif" width="40" height="20" alt="Accolades Received" /></a></li>

<li><a href="articles.asp" class="" title="Educational Articles">Articles<img src="images/iconArticles.gif" width="40" height="20" alt="Educational Articles" /></a></li>

<li><a href="contact.asp" class="" title="Contact Us">Contact<img src="images/iconContact.gif" width="40" height="20" alt="Contact Bionex Multimedia" /></a></li>

</ul>

</div><!-- id="mainNav" -->

<div id="content" class="scroll">

<p> Text…</p>

<p> Text…</p>

</div><!-- id="content" -->

</div><!-- id="pageBG" -->

<div id="footer">

<p class="footerText"> Text…</p>

</div><!-- id="footer" -->

That's a lot less code, and it makes more sense (so it's easier to update and for Google to figure out).

Printable Version

Print Out of Standards-Compliant CSS About Us Web Page

Now that's what a printout should look like!

The Verdict

What a difference: that's 59 lines of code (table-based design) versus 27 (SC CSS design), and more importantly, its file size has been reduced by 60%! That means the SC CSS version will load 60% percent faster. Wow.

Also imagine how much easier the SC CSS web page is to update and redesign. Bear in mind that this is a simple web page. More complicated web pages see even greater savings. Plus, how cool is the printable version?

Why Standards-Compliant CSS?

Good question! In the end, who cares about the nuts and bolts of my web site if it looks good and works well, right? Right. Developing SC CSS web sites isn't just about doing what's recommended or fashionable; there are a lot of benefits too. SC CSS web sites are:

  • Faster Loading: There is less HTML on the web pages, so the web site loads faster.
  • Easier for Search Engines (e.g. Google): When HTML elements actually contain what they say they contain (e.g. tables really do only contain tabular data), search engines have a much easier time figuring out what's on your web site.
  • Quick to Update: The content isn't placed willy-nilly in a jumble of table tags, so it's easier to find and change when you want to update your web site.
  • Less Expensive to Change: The visual display of all the pages on the web site is controlled by one file, so changing the look of the web site is much easier: Just one change to one file and the whole web site changes (versus making the change on every page with table-based designs). This means you save money on web site updates and changes.
  • Excellent for Printing: SC CSS allows different styles to be set for different media. That means your web site can be built to print perfectly to a standard sheet of paper, showing only what's need on the printout. All without the hassle and expense of creating separate 'printable version' pages.

Is All CSS Standards-Compliant?

Not at all. Any web site can use CSS and, as a result, any web designer can say they develop CSS web sites. Using the old table-based designs and using CSS are not mutually exclusive. Just because a designer is using CSS, does not mean that you are getting the benefits of SC CSS.

Many web sites that use CSS still suffer from the old problem of misusing HTML tags. Paragraphs are not in paragraph tags, tables are still used for the visual display. What's poor Google to do?

Without the proper use of HTML tags to back it up, the advantages of using CSS are negated. In other words, SC CSS allows us to get the HTML right, which is where many of the benefits come from (remember, Google doesn't see the CSS). All CSS in not necessarily SC CSS.

Don't All Web Site Designers Use Standards-Compliant CSS?

Surprisingly, no. There are many web designers who still use the old table-based web designs. The main reason for this is time and experience. Since SC CSS is a relatively new concept, many web designers have not invested the time and effort required to keep current.

Changing to SC CSS web design requires a radical change in design thinking that can take years to develop. Many designers feel that what they are doing works, so they either don't want to change, or have tried and have been unsuccessful.

Summary

Congratulations on making it through this complex topic! We hope that you have learned a lot about the differences in web design techniques. Just remember that in the end, it's your web site that's being built. It is worth getting to know a bit about the design and development techniques being used so you can be sure you are getting the most bang for you web design buck.

This article has only touched on the advantages of SC CSS. If you would like more information about SC CSS, or you have any other questions, please do not hesitate to contact us.

Bionex Dog

Web Site Maintenance Packages Now Available

We are pleased to announce the launch of our new Bionex Web Site Maintenance Packages. These great packages give you both a significant discount off our regular maintenance rates, priority status on updates, and the freedom to request updates to your web site every month..

Web Site Maintenance Packages make it easy to keep your web site up to date. Learn More »

Satisfied Customers

"I VERY MUCH appreciate all that you are doing for me. It has made such a difference to have you on my websites. Thanks."

More Testimonials »