Learning To Use XHTML 1.0 Strict

Let’s face it, not very many of us are actually using XHTML 1.0, and for those of us who are, we are reaching for Transitional, instead of Strict. Somehow we still find table layouts to be very appealing and easy to work with, and div layouts just too hard to envision when we are trying to rush. However we can not just give in all the time, we need to start using XHTML and probably the easiest way to do so is on the pages we least design, namely those text based pages that we often never look at on web sites. I am talking about the Privacy Policy and the Terms of Use disclaimer pages that many sites have and which we hardly pay attention to. Most times these are basic text-only pages that have very little styling and there to look more like paper based legal contracts than anything else. And so lets forget about divs for a minutes and just put together a basic XHTML 1.0 Strict page.

The DOC TYPE

This is what your first few lines of your XHTML page should look like.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

This is the standard 1.0 Strict doctype. For a more thorough explanation of doctypes see W3Schools.com.

The Header Section

For me personally, the header section is really about providing the browser with needed information, and for tagging your document so that both search engines and people know what the document is about. Here is my version of a standard header section.

<head>
 <title>WebKeyDesign: Terms of Use</title>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="description" content="WebKeyDesign's Terms of Use for our website." />
	<meta name="keywords" content="webkeydesign,privacy,policy," />
	<meta name="author" content="WebKeyDesign" />
	<meta name="robots" content="noindex,nofollow" />
	<link rel="icon" href="https://www.webkeydesign.com/favicon.ico" type="image/x-icon"  />
	<link rel="stylesheet" type="text/css" href="legal.css" />
</head>

The first meta tag tells the browser what character set you are using. Most of the time we use ISO-8859-1 or UTF-8 for unicode. I like to include the author tag, but this is not necessary. Since this is a legal page, I do not think it really requires indexing, especially, if I decide to change things, I do not want search engines keeping this page cached, therefore the robots tag is set to not index anything.

Lastly we have the standard favicon link, again this is not necessary, it is just something I personally prefer. We are specifying an external stylesheet, as this is XHTML and the idea is to separate content from layout.

The Body

For the actual content of the page, you may choose to either limit yourself to just h1 thru h5 tags along with standard paragraph tags, or perhaps use just three main divs to layout the document. Usually a header, a content, and a footer section is all the layout you need for a text based document as this.

<body>
  <div id="header"> <h1>WebKeyDesign Privacy Policy</h1></div>
  <div id="content"><p>This is our privacy policy and so on.... </p></div>
  <div id="footer"><p>This is our site navigation or standard footer</p></div>
</body>
</html>

Validate Your Code

At this point we are done, but sometimes, after writing such long text based documents, we are not so good at checking out work, and that is when you should let an online validation tool like WebDesignGroup’s Validator Tool check your page for any typos you might have let through. Once your page validates without error, it’s time to post it live, and bask in the knowledge that you just completed your first XHTML Strict 1.0 page. It may not be fancy, but it’s still XHMTL Strict.

NBA TV Shedule Design

Basketball season is upon us and so I thought about redoing a web page I had done last year. Olaguez.net’s NBA page was redone in Transitional XHTML, using a basic 3 DIV design. I originally started out with trying to do XHTML Strict 1.0, but I was not able to do the layout I wanted, and so I finally settled on Transitional. No tables are used for layout, in fact the only table you see is the only table! I will eventually get around to adding a Print Stylesheet for those who just want to print out the page, but for now I am going to let it be and see if I can catch some NBA action before the actual season starts on November 1st.

Promote Your Local Business

Here is something which many small businesses probably do not know about, but should probably start using. It is Local Search. Even if your business does not have a website (which it really needs to nowadays), you can still make search engines like Google, Yahoo, and MSN work for you. Google even makes it easy, so even if you do not have a web site, you can still be one of the local businesses that Google recognizes.

First try out a local search on local.google.com and see for yourself. Type any city or location and then narrow it down further by adding the service you are looking for.

If you are interested in promoting your business with Google, you have to apply at the Google Local Business Center. You can read more about local search in general at http://local.google.com/help/faq_local.html.

Microsoft’s Vista Theme

MS Vista Start MenuThere seems to be this belief that Microsoft is the new IBM. Namely that they are no longer cutting edge and that they have no new ideas anymore. When I say, IBM, I do not mean today’s IBM, but the IBM that could not establish OS/2 as a mainstream operating system, that IBM. So if Microsoft is IBM, then who is Microsoft? Most technews junkies would say any number of companies, but the favorite would have to be Google. There is this desire to see Microsoft fail and to have it toppled by Google, RedHat, or even Apple. Microsoft clearly is seeing a lot of competition these days, and in some markets Microsoft is just another competitor, not even a leading one. However Microsoft’s dominance has always been in operating systems and productivity software, the Windows & Office Suite are what Microsoft has always been about. One look at Windows 2006 and it’s Vista theme is all the reminder I need, to know that Microsoft is not going away any time soon.

I remember that Steve Jobs once said something about how Microsoft is the Wal-mart of the computer industry, meaning that if you want functionality without designer design, you buy Microsoft. At the time Apple was touting Mac OS X and its Aqua interface. It was evident then and it is still is now that Apple knows how to implement and design slick looking user interfaces. Comparing Apple.com to Microsoft.com will immediately tell you that Microsoft is all business and Apple.com is designed by artists.

Which brings me to Vista, a radical new design for Windows which implements vector based graphics, a new Start Menu, and tons of other features that make WindowsXP look down right pedestrian. Vista is Microsoft’s Aqua interface. Some Mac users are probably thinking it is an outright copy of OS X, but it really is not. Microsoft has learned quite a lot about user interface and even though they have made some horrible mistakes like WindowsXP’s Start Menu, they have also made some nice implementations like the the Right-Click Properties option. Mac OS X’s Aqua has been a work in progress and even in 10.4, Apple is still changing it and modifying it here and there. Apple can do this cause it’s user base tends to upgrade OS X rather frequently, but Microsoft cannot have this luxuyry. A Windows release tends to last years, maybe even a decade. Windows95 anyone? Microsoft has to get the new interface just right on the actual release.

Over the coming months as Microsoft gets closer to actual release, Vista will become more well known and accepted as one of the most sweeping changes in interface design since Windows95. Although I am sure Microsoft will borrow and modify some ideas from its competitors, including Mozilla’s Firefox, Mac OS X, and maybe even the Linux distros out there, it will create in the end something which its market audience will find using for many years to come. I for one welcome a change from WindowsXP, the interface which makes me think is in really bad need of a makeover.

Will Vista and a new Internet Explorer look better than Apple’s Safari and Mac OS X, probably not, but they will be much needed improvements to the mainstream platform that millions of businesses use day in and day out, and that’s what matters to Microsoft.

Whois Tool

I added a quick Whois Lookup tool to WebKeyDesign today. Although every domain registerar has one, I find them to be all rather slow or hard to find at times. The whois tool uses Sam Whois, which is a nice whois script I found.

To prevent abuse the script requires a code to be entered and all results are cached once a lookup for a specific domain is done.