Tag Archives: html

HTML5 Boilerplate Build Script: no manifest.appcache generated!

The HTML5 Boilerplate build script can auto gen­er­ate your manifest.appcache file but it doesn’t out of the box. Slightly hid­den away in the docs: To enable the appcache, just uncom­ment the file.manifest line in the project.properties file. It’ll cre­ate a manifest.appcache file and wire it all up. You’ll find the project.properties file in build/project. Now just do ant […]

Quickly Creating an HTML Link in JavaScript

A cool and little known JavaScript func­tion is .link() avail­able to all string objects. Calling string.link(url) returns an HTML string for an anchor tag with the URL in it. For example:   var text = ‘the best web­site ever’; var html = text.link(‘http://bencollier.net/’); html === “<a href=‘http://bencollier.net/’>the best web­site ever</a>” //true   A great way […]

Things That Give Me Usability Cramps — Web Forms

Usability Cramps [yoo-zuh-bill-ity kramps] n. are unpleas­ant, often pain­ful sen­sa­tions caused by unbear­able unus­able user exper­i­ence mis­takes v. usab­il­ity cramp­ing, usab­il­ity cramped, why the hell did they do this? Form Labels That Don’t Select the Fields This one mega-stresses me out; when the text label next to check­box or a label doesn’t select it when you click it: […]

Katamari Hack

The win­ner of the 2011 Yahoo HackU con­test at University of Washington, this is so cool. Click here to activ­ate the Katamari Damacy effect. You can also install it as a book­mark­let by drag­ging: Katamari to your book­marks bar. It uses CSS3 trans­forms and html5 can­vas to do this awe­some effect. Hats off to the developers, this works […]

Designing For TV — Google TV

Google: There are sev­eral note­worthy changes: The sizes of all the fonts and but­tons were increased The “selec­ted” item or item with the mouse over it is clearly high­lighted The user can nav­ig­ate intu­it­ively around the page using D-pad up/down/left/right motions Additional pad­ding has been added between all ele­ments on the page Darker or slightly muted […]

CSSOMCSS Variables, Nesting & Modules

This excites me, some pro­pos­als for CSSOM (bet­ter CSS value access from the DOM), vari­ables, mod­ules and nest­ing. This means you’ll be able to do stuff like this:   @var header-color color #006; @var main-color color #06c; @var secondary-color color #c06; a { color: var(main-color); } a:visited { color: var(secondary-color); } h1 { color: var(header-color); background: […]

Unicorn — W3C Universal Validator

Unicorn — Universal Website Validator is a nice new val­id­ator tool from the W3C that runs their suite of tests on your site, check­ing for access­ib­il­ity and stand­ards com­pli­ance. Try it out for this site! — lots of CSS errors due to my use of vendor spe­cific pre­fixes, which I per­son­ally think, used with cau­tion, should be […]

Site Seeing — Week Four

Google Font Directory http://code.google.com/webfonts Bit late to the party with this one, but the Google Font Directory has some great open source fonts that can be included in your webpages incred­ibly eas­ily. They host the whole solu­tion and it’s a few basic lines of CSS to get some fancy fonts on your site. My per­sonal favourites […]