Post details
pronouncing HTML as hitmonlee
pronouncing HTML as hitmonlee
In today's adventures of finding out weird things you can do with HTML… You should not put a `<style>` element anywhere other than the `<head>` So `<body><style> ...CSS...</style></body>` is an error. (It works, because browsers are tolerant.) But you *can* put a `<link rel="stylesheet">` element in a body. Obviously, that needs an *external* data source for the CSS. So you can cheat by Base64 encoding it! `<body><link rel="stylesheet" type="text/css" href="data:text/css;base64,LyoqCi…">`
View source anywhere.
In this article, Louis Lazaris describes and demonstrates some interesting HTML attributes that you may or may not have heard of and perhaps find useful enough to personally use in one of your projects.
You can add the title tag like so: `<link rel="alternate" type="..." href="..." title="Podcast Feed">` Making things readable for humans is Cool™️.Terence Eden (@edent)Sun, 29 Nov 2020 10:25 GMT
Hey, website developers, you know how you use `<link rel="alternate" type="..." href="...">` for all sort of things? This is what it looks like to me.Terence Eden (@edent)Sun, 29 Nov 2020 10:25 GMT
arquee is a least the coolest tag. M
Eric Vicenti (@EricVicenti)Sat, 20 Nov 2021 05:06 GMT
TIL that you no longer have to write <a target=“_blank” rel=“noopener”> to make external links secure! The HTML standard was changed in 2019 so that rel=“noopener” is always implied: github.com/whatwg/html/pu… thanks to the @jaffathecake and @DasSurma’s podcast for this tidbit!shawn swyx wang (@swyx)Thu, 28 Jan 2021 10:51 GMT
RT @JoshWComeauAre you still asking your users to 'Right click and “Save As…”'? Use the anchor `download` attribute instead. 🔥 Better UX ✨ lets you specify the suggested filename ☎ Works on Android ⚠️ Image must be on same origin Learn more: developer.mozilla.org/en-US/docs/Web…Carol 😅 (@CarolSaysThings)Sat, 11 Jul 2020 14:14 +0000
Pretty Printing XML on the Command-Line (1 mins read).
How to use xmllint
to pretty-print XML/HTML files.
Using <details>
tags for HTML-only UI toggles (3 mins read).
How using the <details>
HTML tag can provide a toggleable UI element with only built-in HTML.
You're currently viewing page 1 of 1, of 20 posts.