chrismar.sh

web developer, movie lover and tea drinker

Posts Tagged ‘html’

Developing For Mobile Browsers

Monday, October 25th, 2010

I have an iPhone, and i love it, and I’m pretty confident that when I’m developing a website it’ll look good and work well with Safari for iOS (except for that pesky Flash animation stuff).

But I have never used a Blackberry or and Android phone, I’ve not dipped my toes in the murky developmental waters of mobile browsers. The main reason is that getting my hands on even the cheapest entry-level Blackberry, Android, Symbian or Windows mobile would set me back more than I care to spend.

But luckily, there are some developers out there who can help! Android have an SDK (Software Developers Kit), which has an Android simulator built in, so even if you’re not developing Android Applications you can still use it to test out your websites. You can get Android versions all the way back to 1.5, plus a load of sample code and API information.

It’s a little clunky and occasionally crashes, but it looks good and is a really useful tool. Find it at: http://developer.android.com/sdk/index.html

For Blackberry, there’s the Blackberry Smartphone Simulator, slightly smoother and easier to install than the Android app, but with fewer options. It gives you a choice of Blackberry handsets to simulate that allow you to browse the device and the internet and test your sites there. Get it at: http://na.blackberry.com/eng/developers/resources/simulators.jsp

Windows Phone 7 and Safari iOS are slightly easire to code for, seeing as how their big brothers in the desktop world are already available. However, with Microsoft’s disastrous entry into the mobile handset world with the ill-fated Kin, Microsoft may have lost the smartphone battle before it’s begun.

Windows Phone 7 hasn’t set the world on fire yet, but the SDK was released in mid-September and a Windows Phone Emulator is available to download at http://create.msdn.com/en-us/home/getting_started.

Safari for the iPhone is by far the most advanced of mobile browsers, and simply by using tools such as http://iphonetester.com in Safari you can see how your sites will render.

Mobile development is a blessing and a curse. great that we can have so much choice of smartphones, but, as a developer, it’s a pain to test in all the desktop browsers as well as an additional 4 mobile browsers.

So check your clients’ analytics, work out how much traffic they are getting from mobile devices, and split up your time accordingly.

An Introduction to Accessibility

Wednesday, May 12th, 2010

1. What Is Web Accessibility?

Web accessibility is not just about optimising code for screen readers or avoiding tables for layout. Web accessibility means ensuring that the content of your website is usable by everyone. Layout and design are as important to this as adding alt tags to your images.

Users who cannot access a website easily will not stay long. That’s a customer lost. As the internet grows, more and more people are using it to shop, book flights and find information, and having an inaccessible website restricts your audience.

2. Why Do We Need It?

The aim of a website is to display content, whether that content is a blog, a shop or simply a business’ location and phone number. Any barrier to the clear display of content is a failure to communicate, and that translates into lost revenue or custom.

In the same way that a poorly designed site will have people clicking the ‘Back’ button and going to your competitors, a site inaccessible to the deaf, partially-sighted or disabled vistors will have them choosing another site over yours. In addition, the Disability Discrimination Act (DDA) 1995 says:

“Where a provider of services has a practice, policy or procedure which makes it impossible or unreasonably difficult for disabled persons to make use of a service which he provides, or is prepared to provide, to other members of the public, it is his duty to take such steps as it is reasonable, in all the circumstances of the case, for him to have to take in order to change that practice, policy or procedure so that it no longer has that effect.”

Essentially, you need to provide the same level of service to disabled users as anyone else.
In fact, there have been several high profile cases of websites being taken to court over this. The Sydney Olympic Games Organising Committee were sued by a blind man who claimed their website was inaccessible (http://www.contenu.nu/socog.html), and, in the US, Ramada.com and Priceline.com were fined for having inaccessible websites (http://www.out-law.com/page-4823).

Whilst the US obligations on accessibility are less certain than in the UK, the Australian equivalent of the DDA is similar to the UK version. Whilst no high-profile cases have yet been brought in the UK, sites should be built as future-proof as possible, in all stages of the site from design through to development.

3. How Can We Create More Accessible Websites?

The W3C publishes Web Content Accessibility Guidelines (WCAG) (http://www.w3.org/TR/WCAG20) to help developers publish content in an accessible format. They are split into four areas: perceivable, which relates to colour, images and media content; operable, which relates to the process of interacting with the site; understandable, which deals with the useability of the site for all visitors; and robust, which concerns how the website appears in browsers such as screen readers, both current and future versions.

There are some simple steps that will not only help with accessibility but will, I believe, give a better user experience to all site visitors. The most important is semantic markup. There are many advantages in using semantic tags to mark the page structure, for instance:

  • it is easier to style a page consistently
  • it displays better in legacy browsers
  • it renders fine as a text version, for instance in a mobile browser
  • screen readers can read it perfectly
  • code is easier for future developers to style or amend

Currently semantic markup means using <ul> or <ol> tags for navigation lists, <h1> – <h6> tags for headings, and <strong> and <em> tags to denote stress and emphasis. HTML5 brings another level to semantic markup, with elements such as <header>, <section>, <article>, <footer> and <nav>.

Structuring a web document this way should not be a slave to design: even though many clients buy in to a site design, we should be encouraging them to inspect the site structure as well.

Also, ensure that your websites render correctly not only in different browsers, but with different settings in those broswers. Turn off Javascript. Enlarge the text (2 or 3 times should be enough). Disable styles. Firefox add-ons such as the Web Developer’s Toolbar are very good for this.

Next, provide text alternatives to any non-text content. This includes alt attributes for any images, title  attributes for links and &lt;abbr&gt; tags for abbreviations. Other things to think about include alternatives for CAPTCHA images, captioning or subtitling audio and video, and using CSS for images that are used purely for design purposes.

For adaptable websites, make sure that content appears in a meaningful sequence. Examples of this include: inputs in a form should use the tabindex attribute to lead the user on the correct path; the ordering the DOM should match the visual order of the page; and labels in forms should relate to the input/select/textbox that they designate.

Colour is an important factor in a how accessible a website is: imagine a form with red text for required fields and green text for optional fields, and then imagine a red/green colourblind person trying to figure out which fields he should be filling in. Simply adding an asterisk by each required field immediately solves this issue. Colour should never be the only visual means of distinguishing content, it should also be flagged by an icon or other visual cue.

If the design of your site calls for light text on a light background (or dark on dark), this colour contrast kit is a handy tool for seeing whether the colours in your website have a high enough contrast. If the colours do not pass at least the AA level of compliance, it is worth rethinking the colour scheme, or at least adding a high-contrast stylesheet option.

Autoplaying audio or video can be distracting or can speak over a screen reader, so ensure that there is a mechanism to disable playback of multimedia (or, even better, avoid autoplaying audio or video at all). Ensure that your site is browseable using a keyboard, by using access keys.

Because some web users react more slowly than others, any time-based activities should be controllable: for example, if a user is logged out after a period of inactivity, their content should be available to them if they re-authenticate straight away; or if a page autorefreshes, the user should be left in the same place with the same options each time, so that data isn’t lost.

Accessibility shouldn’t be an additional level to website development – it should be integrated with your website development process. With all the tools available, it isn’t a hard task to ensure usability.

4. Useful Links

Accessible colours: http://snook.ca/technical/colour_contrast/colour.html

Web Accessibility Guidelines: http://www.w3.org/WAI/WCAG20/quickref/

UI Tests: http://uitest.com/

Smith Turner Site Goes Live!

Monday, December 15th, 2008

Smith Turner is an established firm of professional Chartered Quantity Surveyors and Construction Consultants based in Redhill, Surrey.

Smith Turner wanted a complete brand overhaul. Their previous brand had been in place for over ten years, so they wanted something fresh and modern. A new identity called for a new logo, designed by Andy Allerton (link), and a website that would showcase the best of their work.

Most of the traffic to the site is through client referrals, rather than organic Google searches, so SEO was not a major contributing factor, but the site needed to quickly show visitors the breadth of experience available and the quality of the work.

We decided to split their work into several areas of expertise and showcase a few projects within each area. This allows visitors to choose which project was most like their own to ensure they had a fair comparison. To show the scope of Smith Turner’s work, the site displays a list of selected past clients and a list of services they offer.

Lastly, the contact page of the site had to offer both traditional forms of contact, including post, telephone and fax, as well as a simple online form for prospective clients to get in touch.
By working on a complete rebrand from the ground up, we were able to tie in Smith Turner’s website to their business cards and stationery, to give them a completely new look.

High Quality Business Needs High Quality Website: Artisan Project Management

Wednesday, December 3rd, 2008

Artisan Project Management is a joinery, construction and project management company. They take on various projects in the domestic sector from total refurbishments, extensions, kitchens and bathrooms right down to small joinery projects. They’ll even put up shelves for you!

Artisan have a fantastic reputation and their work and client testimonials speak volumes for their quality and workmanship. Artisan wanted an online presence for their company, nothing too complicated but simply a place to find out more about the team, see past projects and read testimonials from past happy clients.

They have so many projects that it was easy for us to find some great images to use on the site. To show the range of Artisan’s work we needed to show people that whether they had a whole house that needed refurbishing, or simply a few hours of DIY, Artisan can provide a fully-managed solution.

We set up an image gallery for potential customers to be able to see some ‘before and after’ shots. Using a lightbox (a screen that overlays the current window to display a new image) we could take people through the whole process of each project, with fantastic results. The quality on display for each of the projects really shows the level of workmanship, and even the shots of projects at their half way stage shows Artisan’s professionalism and care they take on each site.

Another area that is especially important for businesses of this type is recommendations. Nothing speaks more clearly to potential customers than a previous satisfied customer. To maximise the impact of the testimonials, we used scans of several recommendation letters (with their permission, of course!) as well as printed versions. This allows visitors to see the personal recommendations from each satisfied customer.

As an additional benefit, Artisan had made a video testimonial from one of their biggest customers – an entire house renovated in York. This video testimonial is featured on the home page, and gives an extremely strong recommendation for the work they carried out.

The site was launched in December 2008, and has been a useful tool for Sean and Jonny at Artisan Project Management to show clients what they can do.

Resource Accounting – see your ecological footprint

Wednesday, October 22nd, 2008

With climate change and the environment such a hot topic, the Stockholm Environment Instituute is at the forefront of the latest research into ecological footprints. With hundreds of reports to offer to the public, SEI asked Seventeen Ten to design a site that would allow them to present their research and promote their resource accounting software.

Our approach to the Resource Accounting website was to split their target audience: they estimated that a third are looking for information on the SEI and its aims; a third want information on their software program, REAP; and a third are looking for ecological footprint data, which they collect each year for local authorities across the whole of the UK.

With that in mind, we created a website that, initially would look like a normal information-only site. But by adding special emphasis to the areas that many of their web users are looking for, we were able to create two mini-sites within the main website.

The first was a downloads area, where it is possible to download reports, maps and charts of the ecological footprint for every local authority in the UK. An ecological footprint is a measure of how environmentally friendly you are. The second mini-site was a software site. This section of the site allowed users who have bought software to log in and download manuals, user guides and updates to the software.

More Bang for your Buck!

Monday, September 1st, 2008

Bang Hair, based on Gillygate in York, is a new hairdressers that offers more than just a haircut

With its retro feel and awesome jukebox pumping out the best tunes in York, Bang Hair wanted a website that reflected their look and allowed customers to get a feel for the salon before they even came in to get their hair cut. As well as offering customers information such as a price list and opening hours, Bang Hair wanted people to understand the ethos behind the shop.

With this in mind, we created a site using their existing logo and branding and adding a unique flavour. We built the site on a Content Management System (CMS Made Simple) so Bang Hair would have full control over their price list, photo galleries and could keep all their content fresh and up-to-date.