bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

252
active users

#html

34 posts33 participants4 posts today

A bit of fooling around. I started wondering if it's possible to style <head> and it's elements. It turns out you can! I managed to quickly remake <title> into a top bar. :D

You need to give `display: block` to <head> and then other elements inside too.

I can't think of many practical use cases for this, but who knows. This one time, I might need it.

🆕 blog! “How to prevent Payment Pointer fraud”

There's a new Web Standard in town! Meet WebMonetization - it aims to be a low effort way to help users passively pay website owners.

The pitch is simple. A website owner places a single new line in their HTML's <head> - something like this:

<link rel="monetization"…

👀 Read more: shkspr.mobi/blog/2025/03/how-t

#CyberSecurity #dns #HTML #standards #WebMonitization

Web Monetization The Web Monetization API allows websites to automatically and passively receive payments from Web Monetization-enabled visitors.
Terence Eden’s Blog · How to prevent Payment Pointer fraud
More from Terence Eden

I am in urgent job search mode, so I'm gonna throw this out here and see if anything comes of it.

I am a #Canadian, fluent in both #English and #French. I have experience with several programming languages. My strongest proficiency is with #Haskell and #C. I also have a reasonable grasp of #HTML, #JavaScript, #SQL, #Python, #Lua, #Linux system administration, #bash scripting, #Perl, #AWK, some #Lisp (common, scheme, and emacs), and probably several others I've forgotten to mention.

I am not necessarily looking for something in tech. I just need something stable. I have done everything from software development, to customer support, to factory work, though my current circumstances make in-person work more difficult than remote work. I have been regarded as a hard worker in every job I have ever held.

I think the answer to this is "you can't", but does anyone know if there's a way to trigger the :valid and :invalid CSS pseudo-classes in HTML? Basically I want to display a HTML page with some fields marked as valid/invalid when re-displaying the form with validation errors from the backend (not the frontend).

Bugger. There's no sensible way to "Pretty Print" HTML5 using PHP.

HTMLtidy hasn't been updated in years and breaks a bunch of modern HTML.

DOMdocument only pretty-prints XML.

Manually indenting is a right pain in the arse.

I like having nicely formatted source code - even if no one else looks at it.

🆕 blog! “Create a Table of Contents based on HTML Heading Elements”

Some of my blog posts are long. They have lots of HTML headings like <h2> and <h3>. Say, wouldn't it be super-awesome to have something magically generate a Table of Contents? I've built a utility which runs server-side using PHP. Give it some HTML and it will construct a Table of…

👀 Read more: shkspr.mobi/blog/2025/03/creat

#HowTo #HTML #php

The PHP logo.
Terence Eden’s Blog · Create a Table of Contents based on HTML Heading Elements
More from Terence Eden