A Blog Post with Every HTML Element
41–50 of 88 posts
Re: A Blog Post with Every HTML Element
#42Re: A Blog Post with Every HTML Element
#43Earlier quoted context omitted.
> no simple standard CSS declaration to hide something from visible display but keep it for screenreaders ARIA attributes allow for that. https://developer.mozilla.org/en-US/docs/Web/Accessibility/A... Example code. https://stackoverflow.com/questions/26032089/in-html-how-can...
aria-label/labelledby is not always a workable solution. Sometimes you really need the text to be sitting there on the page as text for things to work right. Note that the very SO thread you linked to goes immediately to doing position/clipping tricks right after mentioning aria-label.
[1] https://www.tpgi.com/short-note-on-aria-label-aria-labelledb...
Re: A Blog Post with Every HTML Element
#44Most of these aren't widely used because they were quaint attempts at solving problems that no longer exist, could be better solved with CSS (as the author concedes with ), and very much depend on browser implementation. I was excited when and landed in all evergreen browsers for example, but just to get the content to slide open (guiding the user) instead of pop open requires JS (the best implementations I've seen u…
[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/smallRe: A Blog Post with Every HTML Element
#45I was trying to make a web browsing ai agent a few days ago and I was shocked to find that hacker news comments are implemented as table inside table inside table.
I was delighted when I found this out - my userContent.css to make HN more readable (make content have a limited width, set a 1.5em line-height and extra padding-top for all paragraphs). I no longer struggle to read HN on a wide browser which display 250 characters on a single line. Each paragraph is readable, and the paragraph breaks are visibly higher than the line-height.
Re: A Blog Post with Every HTML Element
#46Earlier quoted context omitted.
I was delighted when I found this out - my userContent.css to make HN more readable (make content have a limited width, set a 1.5em line-height and extra padding-top for all paragraphs). I no longer struggle to read HN on a wide browser which display 250 characters on a single line. Each paragraph is readable, and the paragraph breaks are visibly higher than the line-height.
Do you mind sharing this? Sounds like it would solve the exact problem on my ultra-wide monitor.
@-moz-document domain(news.ycombinator.com) {
.comment {
font-size: 12px;
line-height: 1.75em;
padding: 10px 0 10px 0;
max-width: 64ch;
display: block;
}
.commtext {
font-size: 12px;
line-height: 1.75em;
padding: 10px 0 10px 0;
max-width: 64ch;
display: block;
}
}Re: A Blog Post with Every HTML Element
#47Awesome article. Like the author, I'm also confused about when to use b and strong & i and em.
Re: A Blog Post with Every HTML Element
#48Earlier quoted context omitted.
I guess it is some sort of cross-site security thing. Devtools just says "blocked:other" as the reason for not displaying it.
Firefox on Android actually has a great error message here: > Nightly Can’t Open This Page > To protect your security, www.w3.org will not allow Nightly to display the page if another site has embedded it. To see this page, you need to open it in a new window. > Learn more…[1] > [Open Site in New Window] [1]: Links to https://support.mozilla.org/en-US/kb/xframe-neterror-page
Dear end-user, do you need therapy? I'll make sure that message is removed in the next release, so other end-users are not subjected to such horribly frightening information.
Re: A Blog Post with Every HTML Element
#49> Some of deprecated elements won’t render without some extra work, for example and are designed to be used instead of a , for I guess some kind of collage web page made up of other pages. The author is too young to remember frames, huh? :) I'd just link the Wikipedia article ( https://en.wikipedia.org/wiki/Frame_(World_Wide_Web) ), but I feel like it doesn't explain it very well. So, to briefly explain -- in the ear…
Re: A Blog Post with Every HTML Element
#50Has anyone ever encountered a real world scenario where you reached ?