Tags to make HTML work like you expect
blog.jim-nielsen.com
Tags to make HTML work like you expect
1–10 of 248 posts
Re: Tags to make HTML work like you expect
#2https://github.com/h5bp/html5-boilerplate/blob/main/dist/ind...
Re: Tags to make HTML work like you expect
#3s/lange/lang/
>
Don’t need the “.0”. In fact, the atrocious incomplete spec of this stuff https://www.w3.org/TR/css-viewport-1/> specifies using strtod to parse the number, which is locale dependent, so in theory on a locale that uses a different decimal separator (e.g. French), the “.0” will be ignored.
I have yet to test whether misbehaves (parsing as 1 instead of 1½) with LC_NUMERIC=fr_FR.UTF-8 on any user agents.
Re: Tags to make HTML work like you expect
#4Also, wrapping the tags in an actual is optional.
You also don't need the quotes as long the attribute doesn't have spaces or the like; is OK.
(kind of pointless as the average website fetches a bazillion bytes of javascript for every page load nowadays, but sometimes slimming things down as much as possible can be fun and satisfying)
Re: Tags to make HTML work like you expect
#5I often reach for the HTML5 boilerplate for things like this: https://github.com/h5bp/html5-boilerplate/blob/main/dist/ind...
Maybe the name was never about the Metaverse at all...
Re: Tags to make HTML work like you expect
#6Note that and auto-close and don't need to be terminated. Also, wrapping the tags in an actual is optional. You also don't need the quotes as long the attribute doesn't have spaces or the like; is OK. (kind of pointless as the average website fetches a bazillion bytes of javascript for every page load nowadays, but sometimes slimming things down as much as possible can be fun and satisfying)
Re: Tags to make HTML work like you expect
#7Re: Tags to make HTML work like you expect
#8> s/lange/lang/ > Don’t need the “.0”. In fact, the atrocious incomplete spec of this stuff https://www.w3.org/TR/css-viewport-1/ > specifies using strtod to parse the number, which is locale dependent , so in theory on a locale that uses a different decimal separator (e.g. French), the “.0” will be ignored. I have yet to test whether misbehaves (parsing as 1 instead of 1½) with LC_NUMERIC=fr_FR.UTF-8 on any user age…
Re: Tags to make HTML work like you expect
#9It's 2025, the end of it. Is this really necessary to share?
Re: Tags to make HTML work like you expect
#10> s/lange/lang/ > Don’t need the “.0”. In fact, the atrocious incomplete spec of this stuff https://www.w3.org/TR/css-viewport-1/ > specifies using strtod to parse the number, which is locale dependent , so in theory on a locale that uses a different decimal separator (e.g. French), the “.0” will be ignored. I have yet to test whether misbehaves (parsing as 1 instead of 1½) with LC_NUMERIC=fr_FR.UTF-8 on any user age…
Wow. This reminds me of Google Sheets formulas, where function parameters are separated with , or ; depending on locale.