#html
65 posts · Last used 24d
English is not my native language, please excuse any mistakes! 🦋
Hi everyone! 🪐🦋 I'm in my early 40s (f), I like questioning things, and I'm looking for honest, down-to-earth conversations away from the usual social media noise.
I'm currently learning #CSharp and #HTML, and I'm fascinated by #robotics and #AI. 🤖
I love nature, the night sky, wolves and butterflies. My hobbies include drawing (digital and analog) and photography. 🎨📷️
My profile and header images are my own artwork! 😊 #MastoArt
My heart also beats for #fantasy, #scifi and #comedy in movies, TV shows and books; and musically for #Hardstyle, #Frenchcore and #oldschool. 🎧️💥
I'm looking forward to meeting nice people around my age! 💙
a11y question: Let's suppose I have an empty html element somewhere on the page with 0 content, invisible*, having position:absolute (or fixed). It has no purpose in the HTML (only used for some CSS stuff).
Is it a good idea to add the "inert" attribute? Or should I do nothing?
- It may or may not have a size, but no style to make it visible.
This feels like a naive question but reading about using div or not, the reasons I could find in blogs and such were mostly talking about complexity. Which I have experienced and do understand.
What I don't really get though is structurally how do you accomplish layouts then? My (wrong) assumption was that divs were somehow required for this. Using (i think this is the term) semantic elements like header, nav, article, footer you can accomplish a layout.
Right. So how then do I have a two column layout then? as in header and footer sandwiching a 20:80 columnar layout, or similar?
I suppose this is expressed with css and selectors? So then with css, you chose flexbox, grid, or float. On mdn and w3chools I found how these all work but not really why or why not to chose any one of them.
Part of my hangup on this is that I truly want a simple html layout but I also want to understand why it works the way it does. Since ya, I got a nav by some article elements but for example if there are more than one article the alignment shifts past the nav on the second article. Why? In my mind this would be oh because you also need these to be in some container, a div, which appears to be maybe the answer?
Any links or comments would very much be welcome.
Stupid #a11y question.
What is best to use for each release of a discography page?
Each release element contains the cover art, album name, release date and type (full-length studio album, single, live, etc.).
Should this element be a figure with the text info in the figcaption?
Should it be an article with the name being a heading?
Should it be a li?
What is best? Any good resources on this?





