The descendant selector matches all elements that are descendants of a specified element.
If we have to select the h1 elements that are the children of an <div> element, then by using the descendant selector, it will be written as follows:
2️⃣ Child selector(>)
A child selector is used to select the element that is the immediate child of the specified element.
In this example, we are selecting the <li> elements that are the direct child of the <ul> element.
3️⃣ Adjacent sibling selector (+)
The adjacent sibling selector is used to select an element that is directly after another specific element.
If we have to select the <p> elements that comes immediately after <h1>, then by using adjacent selector, it will be written as follows:
4️⃣ General sibling selector (~)
The general sibling selector is used to select the element that follows the first selector element and also shares the same parent as the first selector element.
Example- To selects all <p> elements that are next siblings of <div> elements:
That's all for this thread. If you found it useful consider retweeting the first one. It would mean a lot😊🙌
• • •
Missing some Tweet in this thread? You can try to
force a refresh
Code Beautifier is based on CSS Tidy, the popular open-source CSS parser and optimizer. Enter your messy, minified, or obfuscated CSS Style Sheets into the field above to have them cleaned up and made pretty.
Mastering SEO optimization can be hard, especially if you’re just starting out.
Here's a compiled list of 7 Free SEO Tools for you.
A Thread👇
SEO tools investigate the potential of Web pages for high placement on search engine ranking pages.
They provide information on backlinks and keywords as well as insights into SEO competition on the Internet.
1️⃣ Google Search Console
Search Console tools and reports help you measure your site's Search traffic and performance, fix issues, and make your site shine in Google Search results
This repository has practical content that covers all phases of a technical interview, from applying for a job to passing the interviews to offer negotiation. 📎github.com/yangshun/tech-…
2️⃣ JavaScript Algorithms
This repository contains JavaScript-based examples of many popular algorithms and data structures. Algorithms and data structures implemented in JavaScript with explanations and links to further readings. 📎github.com/trekhleb/javas…
7 meta tags to improve the optimization of your site.
A Thread 👇
Why Meta tags are important?
-Meta tags are invisible tags that provide data about your page to search engines and website visitors.
-They can be optimized to highlight the most important elements of your content and make your website stand out in search results.
1️⃣ Title tag
Title tags are used by search engines to determine the subject of a page and are one of the first things that users notice in the SERPs.
Try to keep your title tag clear, descriptive, and usually not more than 55 characters.