#linthtmlwithcss Suchergebnisse
#lintHTMLwithCSS this selector hunts for links that have: - no href - an empty href - a "#" href (button perhaps?)

#lintHTMLwithCSS: /* Headers out of order (i.e. h2 before h1, etc.) Result: dotted blue outline */ h2 ~ h1, h3 ~ h1, h4 ~ h1, h5 ~ h1, h6 ~ h1, h3 ~ h2, h4 ~ h2, h5 ~ h2, h6 ~ h2, h4 ~ h3, h5 ~ h3, h6 ~ h3, h5 ~ h4, h6 ~ h4, h6 ~ h5 { outline: 2px dotted blue; }


Inline <a> should not contain any block level elements #lintHTMLwithCSS . A common HTML mistake. #100DaysOfCode #HTML #CSS

Just realised this is so cool. Find #a11y errors using CSS. Find all the input fields without any labelling. Inspired by @argyleink #lintHTMLwithCSS

Here's a better solution utilizing :first-of-type, since you could have an article with h2's following a subsection that included an h3, etc.: /ht @tabatkins #lintHTMLwithCSS

#lintHTMLwithCSS this selector hunts for elements with a tabindex other than 0 or -1 why? values other than 0 or -1 can steal or disrupt natural tab order and is generally something to avoid

#lintHTMLwithCSS Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing
![argyleink's tweet image. #lintHTMLwithCSS
Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing](https://pbs.twimg.com/media/EbItjzMVcAAS3Ex.jpg)
Day-151 of #301DaysOfCode Finding image doesn’t have alt attribute ⤵️ #lintHTMLwithCSS #a11y #CSS #CodeNewbie #freeCodeCamp #100DaysOfCode

#lintHTMLwithCSS this selector hunts for the first child of a <details> and marks it if it's not a proper <summary>

This one is useful too to force each <caption> to be the first direct child of a <table> elements. Gist: gist.github.com/bellangerq/491… #lintHTMLwithCSS #a11y

#lintHTMLwithCSS prevent page load jank and CLS by finding <img>'s missing height and width attributes

One more: images should be marked up with their width & height, so that browsers can infer their intrinsic size before downloading them (which they now actually do #2020) img:not([width]), img:not([height]) {filter: invert(1)} #lintHTMLwithCSS
#lintHTMLwithCSS this selector hunts for links that might be used for phishing h/t && @mathias via mathiasbynens.github.io/rel-noopener/

a[target='_blank']:not([rel*='noopener']):not([rel*='noreferrer'])::after { content: '‼️' }
masuP9/display-wai-aria.css: This CSS file displays WAI ARIA ( [role], [aria-*] ) github.com/masuP9/display… #lintHTMLwithCSS
who can do a @PostCSS plugin with all the #lintHTMLwithCSS tricks?? or maybe a plain css file in a CDN??
there are a few! they offer aggregated stylesheets with all the #lintHTMLwithCSS stuff and more 👍🏻 github.com/lorenzodelijse… ffoodd.github.io/a11y.css/ github.com/Heydon/REVENGE… probably more i'm missing
Day-151 of #301DaysOfCode Finding image doesn’t have alt attribute ⤵️ #lintHTMLwithCSS #a11y #CSS #CodeNewbie #freeCodeCamp #100DaysOfCode

I took the time to collect all the #linthtmlwithcss snippets, putting it in one CSS file on Github. I'll try my best to keep this list up to date. 🤙 github.com/lorenzodelijse…
github.com
GitHub - lorenzodelijser/lint-html-with-css: lint html with css is a collection of css snippets...
lint html with css is a collection of css snippets from the hashtag #linthtmlwithcss on twitter. these css snippets intend to warn developers about common mistakes made in html. - lorenzodelijser/l...
Want your web development life changed? Check out the #lintHTMLwithCSS hashtag and go down the rabbit hole.:
Inline <a> should not contain any block level elements #lintHTMLwithCSS . A common HTML mistake. #100DaysOfCode #HTML #CSS

Here's a better solution utilizing :first-of-type, since you could have an article with h2's following a subsection that included an h3, etc.: /ht @tabatkins #lintHTMLwithCSS

#lintHTMLwithCSS: /* Headers out of order (i.e. h2 before h1, etc.) Result: dotted blue outline */ h2 ~ h1, h3 ~ h1, h4 ~ h1, h5 ~ h1, h6 ~ h1, h3 ~ h2, h4 ~ h2, h5 ~ h2, h6 ~ h2, h4 ~ h3, h5 ~ h3, h6 ~ h3, h5 ~ h4, h6 ~ h4, h6 ~ h5 { outline: 2px dotted blue; }


#lintHTMLwithCSS Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing
![argyleink's tweet image. #lintHTMLwithCSS
Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing](https://pbs.twimg.com/media/EbItjzMVcAAS3Ex.jpg)
I use <svg viewBox="..." aria-hidden="true" focusable="false"> all the time. It would be labeled as a warning by this ruleset even though it shouldn’t because it has aria-hidden on it. #lintHTMLwithCSS #a11y
#lintHTMLwithCSS this selector hunts for links that might be used for phishing h/t && @mathias via mathiasbynens.github.io/rel-noopener/

a[target='_blank']:not([rel*='noopener']):not([rel*='noreferrer'])::after { content: '‼️' }
#lintHTMLwithCSS this selector hunts for the first child of a <details> and marks it if it's not a proper <summary>

masuP9/display-wai-aria.css: This CSS file displays WAI ARIA ( [role], [aria-*] ) github.com/masuP9/display… #lintHTMLwithCSS
#lintHTMLwithCSS this selector hunts for links that have: - no href - an empty href - a "#" href (button perhaps?)

#lintHTMLwithCSS: /* Headers out of order (i.e. h2 before h1, etc.) Result: dotted blue outline */ h2 ~ h1, h3 ~ h1, h4 ~ h1, h5 ~ h1, h6 ~ h1, h3 ~ h2, h4 ~ h2, h5 ~ h2, h6 ~ h2, h4 ~ h3, h5 ~ h3, h6 ~ h3, h5 ~ h4, h6 ~ h4, h6 ~ h5 { outline: 2px dotted blue; }


Inline <a> should not contain any block level elements #lintHTMLwithCSS . A common HTML mistake. #100DaysOfCode #HTML #CSS

Just realised this is so cool. Find #a11y errors using CSS. Find all the input fields without any labelling. Inspired by @argyleink #lintHTMLwithCSS

Here's a better solution utilizing :first-of-type, since you could have an article with h2's following a subsection that included an h3, etc.: /ht @tabatkins #lintHTMLwithCSS

#lintHTMLwithCSS this selector hunts for elements with a tabindex other than 0 or -1 why? values other than 0 or -1 can steal or disrupt natural tab order and is generally something to avoid

#lintHTMLwithCSS Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing
![argyleink's tweet image. #lintHTMLwithCSS
Languages like Arabic or Hebrew require a text direction. This selector hunts for Arabic or Hebrew [lang] usage and checks the [dir] to ensure a proper pairing](https://pbs.twimg.com/media/EbItjzMVcAAS3Ex.jpg)
Day-151 of #301DaysOfCode Finding image doesn’t have alt attribute ⤵️ #lintHTMLwithCSS #a11y #CSS #CodeNewbie #freeCodeCamp #100DaysOfCode

#lintHTMLwithCSS this selector hunts for the first child of a <details> and marks it if it's not a proper <summary>

#lintHTMLwithCSS prevent page load jank and CLS by finding <img>'s missing height and width attributes

One more: images should be marked up with their width & height, so that browsers can infer their intrinsic size before downloading them (which they now actually do #2020) img:not([width]), img:not([height]) {filter: invert(1)} #lintHTMLwithCSS
This one is useful too to force each <caption> to be the first direct child of a <table> elements. Gist: gist.github.com/bellangerq/491… #lintHTMLwithCSS #a11y

#lintHTMLwithCSS this selector hunts for links that might be used for phishing h/t && @mathias via mathiasbynens.github.io/rel-noopener/

a[target='_blank']:not([rel*='noopener']):not([rel*='noreferrer'])::after { content: '‼️' }
Something went wrong.
Something went wrong.
United States Trends
- 1. Good Wednesday 23.4K posts
- 2. #LoveYourW2025 150K posts
- 3. #wednesdaymotivation 5,244 posts
- 4. TAEHYUNG AT LOVE YOUR W 88.3K posts
- 5. Hump Day 9,367 posts
- 6. And the Word 74.2K posts
- 7. #VxWKOREA 39K posts
- 8. Markey N/A
- 9. #GenV 3,724 posts
- 10. St. Teresa of Avila 1,882 posts
- 11. #15Oct 3,064 posts
- 12. Happy Hump 5,690 posts
- 13. Raila Odinga 166K posts
- 14. LEE KNOW FOR HARPERS BAZAAR 6,293 posts
- 15. Tami 4,967 posts
- 16. Young Republicans 92.3K posts
- 17. George Floyd 37.2K posts
- 18. Baba 129K posts
- 19. cate 4,632 posts
- 20. Yamamoto 52K posts