Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /events
    • /license
    • /pfp
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: html5

  • An email in Outlook 365, showing 'DanQ.me' in gold-gradient WordArt with a drop shadow.

    WordArt is still supported... in Microsoft Outlook!

    25 years ago, WordArt was everywhere. Nowadays, it's been quietly expunged from Microsoft Office. Except... Outlook, via a series of complicated hacks, can still render WordArt to this day! And I'm pretty curious exactly how it does so...

    Read more - about 5 minutes (996 words)

    • Article
    • 2 comments
    • posted 16 September, 2026
  • Computer manual cover printed in blue, black, and white. The title 'GoScript Plus' is askew at one angle, and everything else is askew at a right angle to that.

    Recreating a 1990 Book Cover (in HTML + CSS)

    This weekend, I became briefly obsessed with the graphic design of the cover of a manual of a piece of software released in 1990. So I re-created it in HTML + CSS, as you do.

    Read more - about 3 minutes (567 words)

    • Article
    • 23 comments
    • posted 13 July, 2026
  • "prompt in chrome: cdpn.io wants to know your location. two options: allow while visiting the site and allow this time."

    Introduction to the new HTML element 'geolocation'

    Manuel Matuzoviฤ‡ has done a nice write-up on HTML's new 'geolocation' element. It's not exactly what I'd have implemented, but its still an improvement upon the established geolocation API.

    Read more (347 words)

    • Repost
    • of this original
    • posted 5 February, 2026
  • Screenshot from a future version of the DanQ.me homepage, showing a cartoon drawing of Dan waving, alongside a drop-down menu with options to customise his hair and t-shirt colour.

    For anyone who :has :not yet seen the magic of modern CSS

    CSS is all grown-up, and the combination of nested selectors, variables, :not, and :has unlocks a wealth of potential for interactivity and customisation without resorting to (the slower and brittler approach of) JavaScript. Let me show you two examples from my recent editor history.

    Read more - about 3 minutes (684 words)

    • Article
    • 1 comment
    • posted 17 December, 2025
  • Image of owls on a webpage, with a 'zoom in' cursor superimposed over the image, and a 'pointer' cursor over the 'alt' button in the corner.

    CSS Lightbox with Alt Text Viewer

    Off the back of my details/summary-based semantic HTML+CSS lightbox, I've come up with a way to add Mastodon-like 'show alt text' widgets in the same way, and I'll be applying both to images on my blog's new theme, in the New Year.

    Read more (418 words)

    • Article
    • 1 comment
    • posted 11 December, 2025
  • Dan sits at a cluttered desk reading a copy of DOCTYPE, a magazine with an aggressively 'cyberspace circa 1990' graphic design cover.

    DOCTYPE

    I received my copy of DOCTYPE magazine, a genuine 'type this program in and run it'-style programming magazine but for a modern world, and enjoyed writing, debugging, playing, and then considering refining Stuart Langridge's puzzle The Nine Pyramids.

    Read more (390 words)

    • Article
    • posted 25 November, 2025
  • Composite screenshot showing an image gallery with thumbnails of a dog, a sandwich, and a man; the dog thumbnail has opened up into a larger photo, which is now overlaid with HTML and CSS code describing the mechanism by which the lightbox works.

    Details/summary lightboxes in pure HTML + CSS

    For years, I've been using a HTML+CSS-only technique for popover 'lightbox' images on my blog. Now I've come up with a more-semantic way to do the same, and its HTML code is tidier too!

    Read more - about 3 minutes (660 words)

    • Article
    • 2 comments
    • posted 15 August, 2025
  • Outdoors, under blue skies and trees, Dan tosses his blue ponytail as he talks about a code snippet superimposed beneath him, showing a HTML video element with the first source (landscape.mp4) selected.

    Variable-aspect adaptive-bitrate video... in vanilla HTML?

    Thanks to recent browser enhancements, it's possible to show videos of different aspect ratios based on CSS media queries with no JavaScript dependencies. You can even combine it with adaptive bitrate streaming, even on static hosting. Let me show you how.

    Read more - about 6 minutes (1191 words)

    • Article
    • 1 comment
    • posted 30 April, 2025
  • Today I learned that you can use reportValidity() on a HTML5 input of e.g. type="email" to force the browser to run it's own validation, without waiting for the containing form to be submitted (which in some cases might not happen, e.g. if you're handling input using JS).

    That's cool.

    • Note
    • posted 11 December, 2024
  • Source code for a post on DanQ.me, being searched for unnecessary HTML closing tags. No results are found.

    Tidying WordPress's HTML

    My blog theme runs Tidy on the HTML output to help standardise it and make it more human-readable. I thought I might be the only person to care about such things, but it turns out that Terence Eden does too, so I've open-sourced my approach.

    Read more - about 4 minutes (740 words)

    • Article
    • posted 31 July, 2024
  • Screenshot showing my webpage, "The Page With No Code". Using white text (and some emojis) on a blue gradient background, it describes the same thought process as I describe in this blog post, and invites the reader to "View Source" and see that the page genuinely does appear to have no code.

    The Page With No Code

    View Source shows nothing, but the page has content. The Page With No Code is the kind of puzzle that makes web developers unhappy.

    Read more - about 3 minutes (654 words)

    • Article
    • 11 comments
    • posted 11 January, 2023
  • Android number pad

    Why the GOV.UK Design System team changed the input type for numbers

    GOV.UK is changing the way they use "numeric" fields on websites, and the research that backs their decision is, as usual, excellent.

    Read more (133 words)

    • Repost
    • posted 13 March, 2020
  • Annabel explores the Talking Maps digital interactives.

    Using the Web for Exhibition Interactives

    As he writes up notes for his successor, Dan explains how the Bodleian's interactive digital signage uses the power of the Web.

    Read more - about 7 minutes (1480 words)

    • Article
    • 3 comments
    • posted 20 September, 2019
  • An insertion and a deletion on a 2007 blog post announcing Troma Night plans.

    Blogging with semantic insertions and deletions

    Adapting your CSS can make semantically-enhanced / modifications to a blog post clearer to readers.

    Read more - about 4 minutes (779 words)

    • Article
    • 1 comment
    • posted 3 May, 2019
  • Dan's head "pops up" in the top-left hand corner of the site, and hides when you hover your mouse cursor over it.

    Moving Things Around With CSS Transitions

    The "pop-up head" in the top-left hand corner of the page is powered entirely by CSS: no Javascript is used at all. Dan explains how.

    Read more - about 3 minutes (603 words)

    • Article
    • 2 comments
    • posted 17 April, 2012

Posts navigation

Older posts

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!