Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Automatic preview image based on screenshot

· 3 comments · 200 words · Viewed ~714 times


The HTML5 Logo.

When you share a URl on services like Twitter and WhatsApp, they often display a preview image. This is usually accomplished by the author of the page selecting an image from the page, and adding it to the Page's metadata like this: <meta property="og:image" content="http://example.com/preview.png"/> (See the OpenGraph Protocol and Twitter's Guide for more detailed information.) But not…

Limitations of HTML's title element

· 9 comments · 700 words · Viewed ~400 times


The raw HTML displays in the tab.

How much do you know about the humble <title> tag? It has been there since the earliest HTML specification. The 1995 spec says: There may only be one title in any document. It should identify the content of the document in a fairly wide context. It may not contain anchors, paragraph marks, or highlighting. Remarkably little has changed in the intervening decades. The modern HTML5 spec…

The Browser Is The User's Agent. But Who Is The User?

· 1 comment · 400 words


An alert box saying "⚠ Be careful when playing MP3s - check your country's copyright laws before proceeding ⚠"

I spent 15 years in the mobile phone industry - working variously for big mobile operators, with phone manufacturers, and consulting with industry groups. I say this not to brag, but to let you know that I have experience with these matters. Web browsers are often called a User Agent. They are a software agent acting on behalf of their user. So what happens when the browser acts against the…

Mapping in HTML - a proposal for a new element

· 18 comments · 800 words · Viewed ~5,202 times


Two men are confused by a paper map

This is a sketch of a proposal for a new HTML element to simplify displaying maps on a website. I'd like your comments and criticisms before I submit it. This is born out of my frustration of using different JavaScript mapping solutions - my phone has a mapping app, why do I need to share my location with a website and their mapping provider? At the moment, if I want to use Google Maps, or…

Web Based OAuth Is A Security Nightmare For Apps

· 4 comments · 750 words · Viewed ~1,219 times


Twitter have just released Periscope for Android. I'll do a full review of it later (tl;dr it's Qik with worse resolution) - but for now, I want to focus on the sign up process. You can only sign in with Twitter. That's fine, it's a Twitter product. So I pressed the sign-in button and this is the screen I saw. Is that the Twitter mobile website embedded into the app or is it a phishing…

Why your blog URLs should contain dates.

· 1 comment · 1,100 words · Viewed ~1,877 times


I have a (very minor and polite) disagreement with Matt Gemmel's argument against dates in URLs. Before I start, let me be very clear; your blog = your rules. If you want to write your URLs as a series of Emoji or in Klingon - go right ahead. There really is no such thing as "best practice" - only personal preference and observed behaviour. That said... Here's my case for keeping dates in…

How To Use System Emoji With Webfonts?

· 650 words · Viewed ~7,519 times


tl;dr - If a mobile web browser recognises an Emoji, it should display it natively. If not, it should fall back to a supplied web font. Is this possible? When Android and iOS find Emoji in text, rather than display them as black-and-white fonts, they show them off in gorgeous colour. For example, the unicode smilie is ☺. Depending on your system, it will look something like this: From Tim W…

McAfee's Failure of Trust

· 1 comment · 450 words · Viewed ~295 times


Running a website is hard. Let me clarify - setting up a website is dead simple - keeping it running and updated is tricky. Now, for some of us, it doesn't really matter whether our sites live or die. But for big companies like McAfee it's not simple to switch off a site - especially when they've promised to keep it running in perpetuity. For some reason, the world's largest computer security …

Homoglyphs for SEO

· 2 comments · 450 words · Viewed ~268 times


Search Engine Optimisation is the (dark) art of getting a site to the top of Google's ranking algorithm. If you're in the business of selling decorations for ponds, you want your shop to be right at the top of the results when people search for "bespoke synthetic frog spawn." The problem is, there are lots of people all playing the same game. So, what "unusual" tactics can be used to drive…

BBC News Don't Get Responsive Design

· 200 words · Viewed ~298 times


In October, I was interviewed in Econsultancy about the BBC's new "responsive" website. I said: The BBC's mobile site is fairly responsive. If you view it on different sized phones and tablets it adapts quite well. But it is an entirely separate site from the main BBC news site. The BBC are doing device detection and redirecting mobile users. It's not a bad strategy per se - but it is not…

Should < img > Deprecate "height" and "width"?

· 1 comment · 500 words · Viewed ~718 times


The HTML5 Logo.

Image adaptation and resizing is a hot topic at the moment. With devices of varying screensize accessing your site, how do you ensure that the crappy 240*240 phone gets a reasonable experience while still making everything look gorgeous on the retina-busting iPad? One of the very first things we're taught in HTML school is that we should separate content and style. &lt;span font="comic sans"…

Metro's Use of QR Codes

· 4 comments · 600 words · Viewed ~1,724 times


Updated! 2011-01-11 20:00 - see the response from the Metro. The Metro is a London-based UK newspaper national newspaper which is distributed in 33 cities across the UK. Around a year ago, I reviewed the Metro's mobile website. It wass a perfectly fine mobile site and I'm pleased to see that over the last 12 months it has undergone substantial improvements. You can visit it at…