urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

570
active users

#html

64 posts55 participants5 posts today

My nerdy special-interest-having ass wishes there was #Fediverse software that lets you, no, actually *requires* you to use semantic markup for your posts. I want my <abbr>s and my <dfn>s and even all the #Schema #microformats!

I wanna add semantic info to literally everything on the whole wide web and I am not afraid.

The only depressing thought in the back of my head is that no software will ever do anything cool with all that information...

旋宮圖 Hsüan Kung Diagram
yongzs1218.github.io/hsuan-kun
在AI的指導下,我用JavaScript、CSS和HTML架設了一份網頁版「旋宮圖」。該圖可用於旋宮犯調實踐,之調、爲調轉換等場景。

Under the guidance of AI, I developed a web-based “Hsüan Kung Diagram” using JavaScript, CSS, and HTML. This diagram is designed for Hsüan²-kung (Xuán-gōng, 旋宮) and Fan⁴-tiao⁴ (Fàn-diào, 犯調) practices, including scenes such as Chih-tiao⁴ (Zhī-diào, 之調) and Wei²-tiao⁴ (Wéi-diào, 爲調) transformations. 旋宮 and 犯調 are traditional Chinese modulation or transposition concepts, 之調 and 爲調 are traditional Chinese key notation systems.

AIの指導のもと、私はJavaScript、CSS、HTMLを用いてウェブ版「旋宮図(せんきゅうず)」を構築しました。この図は、旋宮犯調(せんきゅうはんちょう)の実践や、之調(しちょう)・爲調(いちょう)の変換などのシナリオに活用できます。

Dưới sự hướng dẫn của AI, tôi đã xây dựng một ”Đồ Huyền Cung (圖旋宮)“ phiên bản web bằng JavaScript, CSS và HTML. Bản đồ này có thể ứng dụng trong thực hành chuyển điệu Huyền Cung Phạm Điệu (旋宮 犯調), cũng như chuyển đổi giữa hệ thống Chi Điệu (之調) và Vi Điệu (爲調)./𨑜事向引𧵑AI,碎㐌𡏦𥩯“圖旋宮”翻版web憑JavaScript,CSS吧HTML。版圖尼固體應用𥪝轉調 旋宮-犯調,拱如轉𢷮𡧲系統之調吧爲調。

AI의 지도 아래, 저는 JavaScript, CSS, HTML을 사용하여 웹 버전 「선궁도(旋宮圖)」를 구축했습니다. 이 도표는 선궁 범조(旋宮 犯調) 실습 및 지조(之調)·위조(爲調) 변환 시나리오에 활용될 수 있습니다./AI의 指導 아래, 저는 JavaScript, CSS, HTML을 사용하여 웹 版 「旋宮圖(선궁도)」를 構築했습니다. 이 圖表는 旋宮 犯調(선궁 범조) 實習 및 之調(지조)·爲調(위조) 轉換 시나리오에 活用될 수 있습니다.

yongzs1218.github.io旋宮圖 Hsüan Kung Diagram
Continued thread

One last question before I collapse from exhaustion.

Is this conformant with the HTML spec?
That is, will browsers correctly sniff the MIME type parameters?

<video>
<source src=movie.webm type="video/webm; codecs=&quot;vp8, vorbis&quot;">
</video>

Spec: mimesniff.spec.whatwg.org/#par

mimesniff.spec.whatwg.orgMIME Sniffing Standard

Is the ordering of attribute values ever semantically or logically important.

For example, is there ever a practical difference between:

`<p class="a b">`
and
`<p class="b a">`

I've had a statuslog section on my now page (reillyspitzfaden.com/now/) for a while, and I added it to my homepage as well (reillyspitzfaden.com/#homepage).

The especially nice part is that I now have a script (github.com/reillypascal/person) so I can simply type `./status` in the terminal, write the status text in the resulting .md file that pops open, and then commit/push!

I've seen some IndieWeb people (e.g., @binarydigit) do something similar via one of omg.lol's tools (home.omg.lol/info/statuslog) and liked it, but I wanted to see if I could DIY it just for the heck of it. Very happy with how easy the result is!

Pixel art of a radio tower and floppy disk, with pixel art text reading 'Reilly Spitzfaden'
reillyspitzfaden.comReilly Spitzfaden, Composer | Now

Unfeasible project idea:

A #web #browser that purposefully sacrifices broad compatibility in favour of providing unique #SemanticWeb features and interactivity for well-written sites.

All the cool #SemanticHTML information we keep adding to our websites like <abbr>, <address>, <article>, <q>, <cite> and so on are awesome but almost no browser makes use of them!

Okay, so all that fancy corpo design and <div> hell won't render, but a well-written semantic website shines.

Continued thread

Everything I've seen about the <nav> element makes me feel like it's really only intended for groups of navigation links that navigate you somewhere else from the current page, and that are not really semantically related to the content of the specific page you are on.

As far as I know, screenreaders usually skip them.

In my case, the list of blog articles is the main attraction of the page though, not a "home" and "about" style navigation bar.

#HTML#HTML5#Markup

I got an #HTML #SemanticWeb question.

My website has a 'blog', which is really just a bunch of HTML files each containing a standalone essay.

This screenshot shows the main landing page of the 'blog'. Here you choose which article to read.

Right now, that's just a <ul> element with article links.

Should that be wrapped in a <nav>? It's the main reason for the page to exist and not really an optional navigation bar. I am not sure what's best for a #screenreader either.

Replied in thread

@tuban_muzuru An alternative to egui would be a frontend framework like Yew or Dioxus, which would let you interact with the DOM.

However, as long as you don't want accessibility support, I think egui is pretty stable and a good option for more app-based websites.

Edit: Yew is dead so try another one here: github.com/flosse/rust-web-fra

A comparison of some web frameworks and libs written in Rust - flosse/rust-web-framework-comparison
GitHubGitHub - flosse/rust-web-framework-comparison: A comparison of some web frameworks and libs written in RustA comparison of some web frameworks and libs written in Rust - flosse/rust-web-framework-comparison
#egui#rust#rustlang

New Kitten feature: Icons!

You can now make use of a subset of the icons in the Phosphor icons set by @minoraxis and @rektdeckard.

kitten.small-web.org/reference

Search through them in your editor by referencing `kitten.icons.categories` and `kitten.icons.tags`.

Add this to a file called index.page.js and run `kitten` to see a large duotone pink cat (because why not?):

export default function () {
return kitten.html`
<${kitten.icons.c.Cat}
size=40%
weight=duotone
colour=deeppink
/>
`
}

(And yes, the set includes icons for the fediverse. This one of the reasons I chose it.) ;)

Enjoy!

:kitten:💕

slowly building out more of my #nekoweb site!

unsure what I wanna do for displaying buttons/stamps, I'm undecided

so far I've implemented sidebars with overflow scrolling and marquees

I think marquees look neat but as a websurfer it's kind of annoying whenever I have to wait and watch it scroll to see all the images

otoh the overflow boxes don't look as interesting or appealing

I'll include screenshots, plus a screenshot where I just let everything hang out, which looked the worst imo lol