> include something like a TXT record
The people writing these laws don't know about DNS.
This isn't really relevant because what is considered "suitable for under 18s" varies wildly per country. Some countries ban rainbow flags, others will happily sell alcohol to 16-year-olds. Plus, 99.99% of websites don't care about this and will be blocked by default if you block the "unknown" category. Grandma isn't going to call their ISP and ask to unblock pornography because the American knitting forum she's on doesn't know how to add TXT records.
Technical solutions don't solve political problems.
> The majority of the big ISPs would likely block the "over 18" category by default.
Existing UK legislation already requires them to do that.