Posts tagged: html5

  • Tuesday
  • October 25
  • 2011

HTML5. Get some. Free.

Generously, the full content of Jeremy Keith’s HTML5 for Web Designers has been posted online. This was the first in a series of short, readable, nutrient-dense web design and development books published by A Book Apart.

I referenced the book a year ago when the current redesign of this site was in play, which included the incorporation of several of the new HTML structural, semantic elements. The book, only a year old, remains a worthy read. And now you can do it for free.

  • Wednesday
  • March 9
  • 2011

Rebuild 10: Deconstruction of the Reconstruction

In the broad sense, the rebuild of Webdogs 3.0 has now been completed. We do have plans for reorganizing some of the content, so you will see minor changes to the navigation scheme, via the horizontal menu at the top, as we add paths to particular types of site content. We will also be cleaning out some posts and pages that are well past their shelf-life and not archive-worthy.

That said, here’s a recap of how the rebuild was approached and what software and tools were used to make it happen, along with related observations and lessons learned:

WordPress 3.0, the foundation

All of the public websites created by Legal Services of Northern California (LSNC), including this one, have long relied on the WordPress publishing platform. That’s not news. What is news is our migration over to the new WordPress 3.0, which merges the site-stand-alone version of WordPress with WordPress MU, “allowing the management of multiple sites (called Multisite) from one WordPress installation.” This has dramatically simplified the management of our multiple public websites, including the ease of updating the sites with the latest versions of WordPress and WordPress plugins, and giving our multiple editors one login and one dashboard for accessing all the sites.

Building out to HTML5

Once we had the new WordPress backbone in place, the first stage of site reconstruction involved dipping our toes into HTML5 by building a test home page, using several of the new semantic HTML5 markup elements (e.g., article, aside, footer, header, etc.), and then reassuring ourselves that it all would validate, which it did.

Structuring the page-specific markup

Confident that HTML5 “works” on the real web, we started our markup rebuild using Chris Coyier’s BLANK WordPress Theme, which includes among other things a well edited, trimmer functions.php file. (He and Jeff Starr offer a half-dozen other free, very well-coded WordPress themes at their DiW Theme Clubhouse.) The BLANK theme comes coded to XHTML 1.0 Strict. Since we were jumping on the HTML5 bandwagon, we dropped that and went for the HTML5 “upgrade” by declaring the much simpler HTML5 doctype.

That done, we just followed the yellow brick road and built out all new structural markup to support the new Webdogs 3.0 content design. The construction of the header.php file was largely prosaic, but a prudent addition if moving to HTML5 is the addition of an HTML5 IE enabling script that makes older versions of Internet Explorer backward compatible with the newly introduced HTML5 elements.

Adding the WordPress plugins

There were several functional changes we wanted to add to the site, along with some site management tools, that we knew we could accomplish with WordPress plugins. So, we added these plugins:

  • Google XML Sitemaps – the current production version is not compatible with the new multisite version of WordPress 3.0, but there is a beta version that does work. Try it. You’ll like it.
  • SimplePie Plugin and SimplePie Core – a perennial favorite for presentation of multiple feeds within WordPress, used here for the new side bar. It is no longer updated by the author but it seems to work fine with the latest version of WordPress.
  • WP Simple Sitemap – not to be confused with either of the above two plugins, this is what we used to create the browse page, which lists post archives in inverse chronological order, so that visitors can more easily — and visually — scan older posts.
  • WP Page Numbers – want a “pager” function for your archive listings? This works. (By the same author as the preceding plugin.)
  • WPtouch Pro – how to create a very professional looking cross-device mobile version of your WordPress site within seconds. So far, the vibe is pretty good and worth the charge. But that’s us. How about you? View Webdogs 3.0 on your smartphone and tell us if it works for you.

Sprinkling with CSS3 transitions and box-shadows

Hey, were entitled to have some fun, right? We have gone light on adding CSS3, but we added a few page element transitions, some of which are also layered with box-shadows. A modest coding effort that makes us smile whenever we go into a hover state.

Adding Typekit fonts

Another toe-dip for us was the use of Typekit fonts for post headlines and a few other page elements, such as the heading over the comment form. This is an effortless and free way to add some typographic distinction, with styling control of the font retained in your CSS file.

Exploiting the Google Custom Search API

Truth be told, taking advantage of the Google Custom Search API has been the hardest part of the rebuild. There are easier implementations, especially if one creates a Google custom search engine, relies on a CSE “Get Code” cut-n-paste, and then plops it down into a standard page. But to get firmer control of how the code functions and how results present themselves, well, that takes a lot more work. We’re pleased with our current search function, but admittedly there is more we want to do with it.

The only part of the new site that we had serious trouble styling was the Google-API, dynamically generated search-query text-input field. It didn’t want to do what we wanted and we had to wrestle it to the ground. (And the match is not over!) And there was one other significant CSS styling issue that came up: CSS3 “rounded corners” using the border-radius property. All the major browsers now support border-radius in one form or another, but there is a problem with jagged edges in all of them except Firefox, if the element with the rounded border is set against a dark background and the border itself is noticeably lighter. If you view the Webdogs search input field first in Firefox and then in a different browser, you’ll see the difference. The difference would be even more pronounced had we not implemented this partial solution.

Hope you all enjoy the new site design. Now, on to the rebuild of all the other LSNC sites…

  • Monday
  • November 8
  • 2010

Rebuild 02: Mock the Dog with HTML5 markup

Before getting to the presentation layer, which is to say the CSS code that will dictate the layout and look of the Webdogs design, I have first built a rudimentary, mock-markup home page, relying on a mininmal set of HTML5 elements. (There are eight lines of embedded CSS to provide just a touch of presentation that retains the HTML document flow.) The new markup elements introduced here include the HTML5 header, footer, aside and section tags, as well as the descriptive role attribute. You can view the source code for the mock home page, or simply view this text version.

Two notes about the HTML5: First, The head tag includes an IE conditional statement with the HTML5 IE enabling script, a bit of Google Code javascript that makes older versions of Internet Explorer backward compatabile with the newly introduced HTML5 elements. Second, the HTML5 role definitions are part of the emerging WAI-ARIA standards, and offer promise of significant semantic gains in accessibility for users who rely on screen readers. The use of HTML5 role attributes at this site will advance that promise.

The purpose of the home test page is as basic as it gets. I want to make sure that the new design will display successfully when relying on a core set of HTML5 structural elements supported by current browsers. Confident of that, I can use the test page to then rebuild the actual “design” with CSS. I can then transpose that structural markup and CSS code to this site’s WordPress installation.

There are loads of HTML5 resources out there explaining how to do what is illustrated by the mock home page. I can make two recommendations: I am a huge fan of the Jeremy Keith’s HTML5 for Web Designers. Yes, it is a touch expensive for a book that is only 85 pages or so, but it is worth it. It is a clearly written, insightful while amusing summary of what HTML5 is and why you will want to adapt to it. The other recommendation is free: Mark Pilgrim’s Dive into HTML5.

  • Sunday
  • May 30
  • 2010

You, me and HTML5

Big Web Show icon

HTML5, the emerging successor to HTML and XHTML, has in one form or another been an under-development web specification since 2004. But it wasn’t until 2009 that HTML5 began to break through as something that would really happen. Two prominent examples from last year that HTML5 would be part of our web future: The news last May from Google I/O 2009 that Google is betting big time on HTML5; and Jeffrey Zeldman’s influential pronouncement that HTML5 deserves your love. (Loyalty oath, optional; specification details to be worked out.) At this year’s Google I/O 2010 the Google crush on HTML5 was apparently on full display.

Want more proof? Last year you couldn’t drop a dime to find a book about HTML5. Now at Amazon you will find 10+ books about HTML5, most of which are still in publication pre-order status. And coming next month is the one HTML5 title I know I must have: HTML for Web Designers by Jeremy Keith, only available directly from the publisher A Book Apart. (Jeremy Keith is the author of DOM Scripting: Web Design with JavaScript and the Document Object Model, which I have read and do recommend. The guy is a really great, first-tier tech writer.)

Which leads me to what actually prompted me to write this post in the first place: Among the newest of podcasts I now consider a must-listen is Zeldman’s The Big Web Show. The second show in this weekly podcast was the hour-long HTML5 with Jeremy Keith. Call me a nerd, call me a geek, call me irresponsible, but it is the only podcast I have ever listened to twice. It was that good.

  • Monday
  • March 8
  • 2010

Getting ready for HTML 5

It’s a start: Seven HTML related working drafts published, posted today at 456 Berea Street and referencing among others a first version of HTML: The Markup Language (“Basically ‘HTML 5′ for web developers,’ i.e., “HTML syntax, elements, and attributes without the implementation details”); and the newest version of HTML5 differences from HTML4 (“How and why HTML 5 is different from HTML 4, in particular regarding new, changed, and absent elements and attributes.”)