Search results
/postroll
How to Scrape Web Pages from the Command Line Using htmlq
www.thelinuxvault.net
Needed to do some testing that specific HTML tags and content were in a page, and wondered if there was something like jq, but for HTML.
There is, and it's aptly called htmlq. It's a tool written in Rust, and it allows retrieving tags and content based on CSS selectors.
/postroll
My HTML boilerplate in 2026
www.matuzo.at
HTML boilerplate recommendations from Manuel Matuzović — little things like setting the language, to bigger things like using SVG favicons and proper JS ESR modules. I've applied each of these to my site.
From the blog
Posted 2024-04-09
Deferring JS Until Script Load
A common recommendation when using JavaScript is to put your <script> elements at the end of your HTML, including those that reference a JS file on your site.
One issue, however, is that if you then have a script that references a function from another script, how do you ensure the other script is loaded already?
Search tips
- Use
#{some tag}ortag:{some tag}to filter by tag; using this more than once will find results that match all tags. - Use
year:{year}to filter by year. If you use this multiple times, the last one wins. - Use
begin:{year-month-day}to restrict to results beginning on that day. Last one wins. - Use
end:{year-month-day}to restrict to results ending on that day. Last one wins.