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: html

  • Colour wheel diagram showing the transformation from a light blue into a medium purple.

    Styling :visited links using hue-rotation

    My new site theme offers a :visited link style, but for convenience it's based on a CSS hsl-transformation. Here's how it works...

    Read more (223 words)

    • Article
    • 3 comments
    • posted 26 September, 2026
  • 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
  • Screenshot showing VSCode running in a web browser, being used to edit a static HTML website.

    A Selfhosted Static Site Editor

    Inspired by the way that Nekoweb's editor 'Nekode' works, I came up with a low-effort way to let my eldest get started with HTML and CSS editing, right from her browser, with the results selfhosted directly from the household NAS.

    Read more - about 3 minutes (535 words)

    • Article
    • 8 comments
    • posted 22 May, 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
  • An xternal 33.6kbps serial port dial-up modem.

    Internet Services^H Provider

    When you signed up with an ISP, you used to get Web space, email, shared FTP access, a nearby IRC node, newsgroups, and a software bundle. Nowadays you get a shit router, a voucher for a free month of a streaming service you didn't want, and crap customer service. Where did we go wrong?

    Read more - about 6 minutes (1200 words)

    • Article
    • 1 comment
    • posted 6 August, 2025
  • Tail end of a formatted email with a black-on-orange "Verify email address" button.

    Avanti's Accessibility Failure

    Train provider Avanti's website may be accessible... but their emails, which you need to interact with to USE their website... are not. It's simply not possible to verify your email address if you use a screen reader, and there's no guest checkout option.

    Read more (265 words)

    • Article
    • posted 1 May, 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
  • Reply to Blogging for traffic not design

    Andy Hawthorne criticised a new website owner for not using a popular CMS, arguing that this would necessarily impact their SEO and so invalidate the point of their website (that point being, Andy presupposes, to attract views). I dispute... almost every single part of that argument.

    Read more - about 4 minutes (948 words)

    • Reply
    • 1 comment
    • posted 19 February, 2025
  • Large companies find HTML & CSS frustrating β€œat scale” because the web is a fundamentally anti-capitalist mashup art experiment, designed to give consumers all the power.
    - Mia, 2019

    This is what I needed to be reminded, today.

    Read more (114 words)

    • Repost
    • of this original
    • posted 17 February, 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

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!