πŸ“Œ 10 CSS Selectors You Must Know

Thread πŸ§΅πŸ‘‡

#100DaysOfCode #CodeNewbie Image
1⃣ Universal Selector ( * ) : Selects all elements. Image
2⃣ General Sibling Combinator ( X ~ Y) : Selects Y if it follows the X, and are children of the same parent element. Image
3⃣ Adjacent Sibling Combinator ( X + Y ) : Selects Y if it immediately follows the X, and are children of the same parent element. Image
4⃣ Child Combinator ( X > Y ) : Selects Y if it is an immediate child of the X. It doesn't select all descendants. Image
5⃣ Attribute Selector 1 : X[title] Image
6⃣ Attribute Selector 2 : X[href="foo"] Image
7⃣ Attribute Selector 3 : X[href*="foo"] Image
8⃣ Attribute Selector 4 : X[href$=".org"] Image
9⃣ Attribute Selector 5 : X[href^="https"] Image
πŸ”ŸAttribute Selector 6 : X[class~="foo"] Image
That's a wrap!

If you found it useful:

πŸ”ΉFollow me @cgrkzlkn for more content on HTML, CSS and JavaScript πŸ§‘β€πŸ’»
πŸ”ΉLike ❀️
πŸ”ΉRetweet the first tweet ⚑️



I appreciate it!

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Cagri Kizilkan πŸ‡ΊπŸ‡¦

Cagri Kizilkan πŸ‡ΊπŸ‡¦ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cgrkzlkn

Jul 30
πŸ“Œ 24 Array Methods in JavaScript:

Mega Thread 🧡 πŸ‘‡

#LearnToCode #CodeNewbie Image
1) concat():

πŸ”Ή Concatenates (joins) two or more arrays.

πŸ”Ή Returns a new array, containing the joined arrays.

πŸ”Ή Does not change the existing arrays. Image
2) copyWithin():

πŸ”Ή Copies array elements to another position in the array.

πŸ”Ή Overwrites the existing values.

πŸ”Ή Does not add items to the array. Image
Read 26 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(