<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anchal Gupta on Medium]]></title>
        <description><![CDATA[Stories by Anchal Gupta on Medium]]></description>
        <link>https://medium.com/@meowmbaikar?source=rss-a9d5003e13ad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vhJSFary2ltkO7AbHadIoA.jpeg</url>
            <title>Stories by Anchal Gupta on Medium</title>
            <link>https://medium.com/@meowmbaikar?source=rss-a9d5003e13ad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 00:55:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meowmbaikar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to JSP: Understanding the Basics, Lifecycle, and Core Features]]></title>
            <link>https://medium.com/@meowmbaikar/introduction-to-jsp-understanding-the-basics-lifecycle-and-core-features-b6f5b3470f89?source=rss-a9d5003e13ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6f5b3470f89</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[jsp]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Anchal Gupta]]></dc:creator>
            <pubDate>Sat, 23 Nov 2024 11:00:47 GMT</pubDate>
            <atom:updated>2024-11-23T11:00:47.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wK9tAnZDFJSZFiUNkf7aIg.png" /></figure><p>JavaServer Pages (JSP) is a powerful technology used for creating dynamic and platform-independent web applications. It allows developers to embed Java code directly into HTML pages, making it easier to create dynamic and interactive web content.</p><p>In this article, we’ll explore the key concepts of JSP, including the JSP lifecycle, implicit objects, scripting elements (scriptlets, declarations, and expressions), and more. Let’s dive in!</p><h3>What is JSP?</h3><p>JSP is a server-side technology developed by Sun Microsystems (now part of Oracle). It allows for the creation of dynamic web pages by combining static HTML with dynamic Java code. JSP files have a .jsp extension and are processed on the server before being sent to the client.</p><h3>JSP Lifecycle</h3><p>Understanding the JSP lifecycle is crucial for writing efficient and well-optimized JSP applications. The lifecycle consists of the following steps:</p><p><strong>Translation Phase</strong><br>The JSP engine converts the JSP file into a servlet. Each JSP is essentially a servlet behind the scenes.</p><p><strong>Compilation Phase</strong><br>The generated servlet file is compiled into a Java class.</p><p><strong>Initialization Phase</strong><br>The jspInit() method is invoked. This method is executed only once, similar to the init() method in servlets.</p><p><strong>Request Processing Phase</strong><br>For each request, the jspService() method is called. This method contains the logic to handle client requests and generate a response.</p><p><strong>Destruction Phase</strong><br>When the JSP is no longer needed, the jspDestroy() method is called to release resources.</p><p>Here’s a summary of the JSP lifecycle methods:</p><ul><li>jspInit() – Initialization.</li><li>jspService() – Handles requests.</li><li>jspDestroy() – Cleanup.</li></ul><h3>Implicit Objects in JSP</h3><p>JSP provides several implicit objects that simplify the process of web development. These objects are pre-defined and can be accessed directly in JSP code.</p><p><strong>request</strong><br>Represents the HttpServletRequest object. Used to access request data (e.g., form parameters).</p><p><strong>response</strong><br>Represents the HttpServletResponse object. Used to generate the response.</p><p><strong>out</strong><br>Represents the JspWriter object. Used to write content to the client.</p><p><strong>session</strong><br>Represents the HttpSession object. Used to store user-specific data across multiple requests.</p><p><strong>application</strong><br>Represents the ServletContext object. Used to share data across the entire application.</p><p><strong>config</strong><br>Represents the ServletConfig object. Provides configuration details for the JSP.</p><p><strong>page</strong><br>Represents the current JSP page instance.</p><p><strong>pageContext</strong><br>Provides access to all the objects mentioned above.</p><p><strong>exception</strong><br>Represents exceptions thrown on the JSP page. Used in error pages.</p><h3>JSP Scripting Elements</h3><p>JSP allows developers to embed Java code into HTML using scripting elements. These are:</p><h4>1. Scriptlets (&lt;% ... %&gt;)</h4><p>Scriptlets allow you to embed Java code that is executed when the page is requested.</p><p>Example:</p><pre>&lt;% <br>    int count = 10; <br>    out.println(&quot;The count is: &quot; + count);<br>%&gt;</pre><h4>2. Declarations (&lt;%! ... %&gt;)</h4><p>Declarations are used to define variables or methods that can be used throughout the JSP page.</p><p><strong>Example:</strong></p><pre>&lt;%! <br>    int getSquare(int num) { <br>        return num * num; <br>    } <br>%&gt;<br>The square of 4 is: &lt;%= getSquare(4) %&gt;</pre><h4>3. Expressions (&lt;%= ... %&gt;)</h4><p>Expressions are used to output data directly to the client. The value is automatically converted to a string.</p><p><strong>Example:</strong></p><pre>&lt;%= &quot;Today&#39;s date is: &quot; + new java.util.Date() %&gt;</pre><h3>Conclusion</h3><p>JSP simplifies the development of dynamic web applications by providing built-in support for embedding Java code into HTML. Understanding its lifecycle, implicit objects, and scripting elements equips you with the tools to create robust and efficient web applications.</p><p>Start experimenting with JSP to see its power in action. Feel free to leave comments below if you have any questions or need clarification on specific concepts. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6f5b3470f89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Servlet Session Management and Redirection]]></title>
            <link>https://medium.com/@meowmbaikar/servlet-session-management-and-redirection-0497c5e8b40a?source=rss-a9d5003e13ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/0497c5e8b40a</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[servlet]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[fullstack-development]]></category>
            <dc:creator><![CDATA[Anchal Gupta]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 12:16:35 GMT</pubDate>
            <atom:updated>2024-11-21T12:16:35.345Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*kxLFYf35Fo9yHcUigm8dzQ.png" /></figure><p>In this article, we will explore two fundamental concepts in Servlets: <strong>Session Management</strong> and <strong>Redirection</strong>. We’ll discuss these concepts, provide practical examples, and explain the different methods used to achieve them in Servlets.</p><h4>1. Servlet Session Management: The Basics</h4><p>Session management is a way to track and maintain state between the client (usually a web browser) and the server across multiple requests. In stateless HTTP, each request is independent, so without session management, the server wouldn’t remember the client’s previous interactions.</p><h4>Why is Session Management Important?</h4><p>When users interact with a web application, they often need to maintain information such as login status, preferences, and other user-specific data across different requests. This is where session management comes in. By associating a unique session with each user, the server can persist this information during the entire user session.</p><h4>Types of Session Management in Servlets:</h4><ol><li><strong>Cookies</strong></li><li><strong>URL Rewriting</strong></li><li><strong>HttpSession</strong></li></ol><p>Among these, <strong>HttpSession</strong> is the most commonly used session management mechanism in Servlets.</p><h4>HttpSession in Servlets</h4><p>The HttpSession object allows you to store and retrieve data that you want to persist during a user&#39;s session. It is created automatically when a user first visits a Servlet-based application and is destroyed when the session expires or when the user logs out.</p><p><strong>Creating and Managing a Session:</strong></p><p>Here’s an example of how to create and manage sessions in a Servlet:</p><pre>import javax.servlet.*;<br>import javax.servlet.http.*;<br>import java.io.*;<br><br>public class SessionExampleServlet extends HttpServlet {<br>    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br>        // Get the session object<br>        HttpSession session = request.getSession();<br>        <br>        // Set session attributes (example: username)<br>        String username = request.getParameter(&quot;username&quot;);<br>        session.setAttribute(&quot;username&quot;, username);<br>        <br>        // Send a response to the client<br>        PrintWriter out = response.getWriter();<br>        out.println(&quot;Session created for: &quot; + username);<br>    }<br>}</pre><p>In this example, when the user provides their username, the HttpSession object stores it, and the session persists across requests.</p><h4>Fetching Session Data:</h4><p>To retrieve session data in subsequent requests:</p><pre>String username = (String) session.getAttribute(&quot;username&quot;);</pre><h4>Invalidating a Session:</h4><p>To invalidate a session when the user logs out or after a certain time:</p><pre>session.invalidate();</pre><h4>2. Redirecting Requests in Servlets:</h4><p>Servlets provide different ways to handle requests and responses, one of which is <strong>Redirection</strong>. Redirection allows you to send the client to a different URL (either on the same server or an external server) for processing.</p><h4>Why is Redirection Important?</h4><p>Redirection is commonly used in scenarios where:</p><ul><li>After form submission, you want to direct the user to another page (for example, a confirmation page).</li><li>You want to send users to a new URL based on some condition (e.g., redirecting users who are not logged in to the login page).</li></ul><h4>Methods for Redirection in Servlets</h4><p>There are two primary methods for redirecting requests in Servlets:</p><ol><li><strong>sendRedirect() Method</strong></li><li><strong>RequestDispatcher.forward() Method</strong></li></ol><h4>sendRedirect() Method:</h4><p>The sendRedirect() method is used to send a response to the client that instructs the browser to initiate a new HTTP request to the specified URL. It involves the client making a new request to the server, which means the URL in the browser&#39;s address bar will change.</p><pre>response.sendRedirect(&quot;newURL&quot;);</pre><p>Example:</p><pre>import javax.servlet.*;<br>import javax.servlet.http.*;<br>import java.io.*;<br><br>public class RedirectServlet extends HttpServlet {<br>    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br>        // Redirecting the user to a different page<br>        response.sendRedirect(&quot;http://www.example.com&quot;);<br>    }<br>}</pre><p>In this example, the user is redirected to www.example.com after the sendRedirect() method is called. The browser’s address bar will update to show the new URL.</p><h4>RequestDispatcher.forward() Method:</h4><p>Unlike sendRedirect(), forward() is a server-side forward, meaning the request is handed off to another resource (such as another Servlet or JSP) within the same server without involving the client. The URL in the browser remains unchanged, and the server processes the request internally.</p><p>Syntax:</p><pre>RequestDispatcher dispatcher = request.getRequestDispatcher(&quot;newURL&quot;);<br>dispatcher.forward(request, response);</pre><p>Example:</p><pre>import javax.servlet.*;<br>import javax.servlet.http.*;<br>import java.io.*;<br><br>public class ForwardServlet extends HttpServlet {<br>    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<br>        // Forwarding the request to another Servlet<br>        RequestDispatcher dispatcher = request.getRequestDispatcher(&quot;/anotherPage.jsp&quot;);<br>        dispatcher.forward(request, response);<br>    }<br>}</pre><p>Here, the request is forwarded to anotherPage.jsp, but the URL in the browser remains the same.</p><h4>3. When to Use Redirection vs Forwarding</h4><ul><li><strong>Use </strong><strong>sendRedirect()</strong> when you want the browser to navigate to a different URL (such as for a different page or external site).</li><li><strong>Use </strong><strong>forward()</strong> when you need to process the request within the server and keep the URL the same in the browser.</li></ul><h4>4. Conclusion</h4><p>In this article, we explored the essential concepts of <strong>Session Management</strong> and <strong>Redirection</strong> in Servlets. We discussed how <strong>HttpSession</strong> is used to manage sessions and store user-specific data across requests. We also covered how to redirect users to different resources using sendRedirect() and RequestDispatcher.forward().</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0497c5e8b40a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript ES6 Features Made Simple]]></title>
            <link>https://medium.com/@meowmbaikar/javascript-es6-features-made-simple-5a93e8d57370?source=rss-a9d5003e13ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a93e8d57370</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Anchal Gupta]]></dc:creator>
            <pubDate>Fri, 08 Nov 2024 12:31:58 GMT</pubDate>
            <atom:updated>2024-11-08T16:57:48.344Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFRNSZBO45DyjsXRFqmHqg.png" /></figure><p>In 2015, ECMAScript (ES6) was released, bringing with it a set of powerful new features that made coding in JavaScript easier, more efficient, and less error-prone. Let’s explore each of these features in a straightforward, before-and-after format to highlight the improvements.</p><h4>1. <strong>let and </strong><strong>const - Block-Scoped Variable Declarations</strong></h4><p>Before ES6, variables were declared using var, which could lead to bugs due to its function or global scope. ES6 introduced let and const to make variable handling more predictable and secure:</p><ul><li><strong>let</strong>: For variables that can change but are limited to block scope.</li><li><strong>const</strong>: For constants that cannot be reassigned after their initial value.</li></ul><p>Before ES6 (var):</p><pre>var color = &quot;blue&quot;;<br>if (true) {<br>  var color = &quot;green&quot;;<br>  console.log(color);  // &quot;green&quot;<br>}<br>console.log(color);  // &quot;green&quot; - affects the outer scope</pre><p>After ES6 (let and const):</p><pre>let color = &quot;blue&quot;;<br>if (true) {<br>  let color = &quot;green&quot;;<br>  console.log(color);  // &quot;green&quot;<br>}<br>console.log(color);  // &quot;blue&quot; - outer scope is unchanged<br><br>const pi = 3.14;  // Cannot be reassigned<br>// pi = 3.14159;  // Error: Assignment to constant variable</pre><h4>2. Arrow Functions — Simplified Function Syntax</h4><p>Arrow functions provide a shorter, cleaner syntax and automatically bind this to the surrounding context, which is helpful in callbacks and methods.</p><p>Before ES6:</p><pre>function multiply(x, y) {<br>  return x * y;<br>}</pre><p>After ES6:</p><pre>const multiply = (x, y) =&gt; x * y;</pre><h4>3. Template Literals — Better String Interpolation</h4><p>Template literals, created with backticks (`), allow for easier string construction and multi-line strings.</p><p>Before ES6:</p><pre>var name = &quot;kiwi&quot;;<br>var message = &quot;Hello, &quot; + name + &quot;!&quot;;<br>console.log(message);  // &quot;Hello,kiwi!&quot;</pre><p>After ES6:</p><pre>const name = &quot;kiwi&quot;;<br>const message = `Hello, ${name}!`;<br>console.log(message);  // &quot;Hello, kiwi!&quot;</pre><h4>4. Destructuring — Easily Extract Values from Objects and Arrays</h4><p>Destructuring makes it simple to unpack values from arrays and objects, saving time and lines of code.</p><p>Before ES6:</p><pre>var person = { name: &quot;kiwi&quot;, age: 3};<br>var name = person.name;<br>var age = person.age;</pre><p>After ES6:</p><pre>const person = { name: &quot;kiwi&quot;, age: 3 };<br>const { name, age } = person;<br>console.log(name, age);  // &quot;kiwi&quot;, 3</pre><h4>5. Spread and Rest Operators — Flexible Array and Object Handling</h4><p>The ... operator can either expand elements (spread) or gather elements into an array (rest).</p><p>Spread Operator (expanding elements):</p><pre>const arr1 = [1, 2];<br>const arr2 = [...arr1, 3, 4];<br>console.log(arr2);  // [1, 2, 3, 4]</pre><p>Rest Operator (collecting elements):</p><pre>function sum(...numbers) {<br>  return numbers.reduce((a, b) =&gt; a + b, 0);<br>}<br>console.log(sum(1, 2, 3));  // 6</pre><h4>6. Default Parameters — Set Default Function Arguments</h4><p>Default parameters let you assign a default value to function parameters, reducing the need for additional checks.</p><p>Before ES6:</p><pre>function greet(name) {<br>  name = name || &quot;Guest&quot;;<br>  return `Hello, ${name}`;<br>}<br>console.log(greet());  // &quot;Hello, Guest&quot;</pre><p>After ES6:</p><pre>function greet(name = &quot;Guest&quot;) {<br>  return `Hello, ${name}`;<br>}<br>console.log(greet());  // &quot;Hello, Guest&quot;</pre><h4>7. for...of Loop - Simplified Array Iteration</h4><p>for...of provides an easier way to loop over arrays without needing a counter.</p><p>Before ES6:</p><pre>var pets = [&quot;kiwi&quot;, &quot;kulfi&quot;, &quot;milkie&quot;];<br>for (var i = 0; i &lt; pets.length; i++) {<br>  console.log(pets[i]);<br>}</pre><p>After ES6:</p><pre>const pets = [&quot;kiwi&quot;, &quot;kulfi&quot;, &quot;milkie&quot;];<br>for (const names of pets) {<br>  console.log(names);<br>}</pre><h4>8. Promises — Improved Asynchronous Handling</h4><p>Promises offer a more readable way to manage asynchronous code, helping avoid callback hell with .then() and .catch().</p><p>Before ES6 (Callback style):</p><pre>function fetchData(callback) {<br>  setTimeout(() =&gt; callback(&quot;Data fetched&quot;), 1000);<br>}<br>fetchData(data =&gt; console.log(data));</pre><p>After ES6 (Promises):</p><pre>const fetchData = () =&gt; {<br>  return new Promise((resolve) =&gt; {<br>    setTimeout(() =&gt; resolve(&quot;Data fetched&quot;), 1000);<br>  });<br>};<br>fetchData().then(data =&gt; console.log(data));</pre><h4>9. Classes — Cleaner Object-Oriented Structure</h4><p>Classes offer a more organized and understandable way to create objects, replacing the older constructor functions and prototype methods.</p><p>Before ES6:</p><pre>function Animal(name) {<br>  this.name = name;<br>}<br><br>Animal.prototype.speak = function() {<br>  return `${this.name} makes a noise`;<br>};<br><br>var dog = new Animal(&quot;Dog&quot;);<br>console.log(dog.speak());  // &quot;Dog makes a noise&quot;</pre><p>After ES6:</p><pre>class Animal {<br>  constructor(name) {<br>    this.name = name;<br>  }<br><br>  speak() {<br>    return `${this.name} makes a noise`;<br>  }<br>}<br><br>const dog = new Animal(&quot;Dog&quot;);<br>console.log(dog.speak());  // &quot;Dog makes a noise&quot;</pre><h4>10. Modules — Better Code Organization with export and import</h4><p>Modules allow you to organize your code across multiple files for better reusability. ES6 introduced export and import keywords for this purpose.</p><p>Before ES6 (CommonJS):</p><pre>// utils.js<br>var greet = function() { return &quot;Hello&quot;; };<br>module.exports = greet;<br><br>// main.js<br>const greet = require(&#39;./utils.js&#39;);</pre><p>After ES6:</p><pre>// utils.js<br>export const greet = () =&gt; &quot;Hello&quot;;<br><br>// main.js<br>import { greet } from &#39;./utils.js&#39;;<br>console.log(greet());  // &quot;Hello&quot;</pre><p><strong>Conclusion</strong></p><p>As we’ve seen, these new ES6 features make JavaScript cleaner, more efficient, and easier to work with. Now, it’s time to put them into practice — experiment with these features in your own projects and see how they improve your code!.</p><p>Practice, Practice, Practice.</p><pre>Copy code</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a93e8d57370" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combinators in CSS using BACHCHANS family tree]]></title>
            <link>https://medium.com/@meowmbaikar/combinators-in-css-using-bachchans-family-tree-7769a8d89d01?source=rss-a9d5003e13ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/7769a8d89d01</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Anchal Gupta]]></dc:creator>
            <pubDate>Thu, 24 Oct 2024 15:55:21 GMT</pubDate>
            <atom:updated>2024-10-24T15:55:21.981Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we dive into CSS Combinators, let’s first talk about the Bachchan family tree. Just like a family tree shows relationships between parents, children, and siblings, HTML also follows a tree structure. In HTML, elements are connected — some act like parents (containers), some like children (nested inside), and others as siblings (side-by-side).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*jJkDSLfmiJ2ySHdsKvunlQ.jpeg" /></figure><h3>What are CSS Combinators?</h3><p>CSS combinators are special selectors that allow us to select elements based on their <strong>relationship</strong> with other elements in the HTML structure. These relationships can be between <strong>parent and child</strong>, <strong>siblings</strong>, or <strong>nested elements</strong>.</p><h3>Why Do We Need CSS Combinators?</h3><p>When designing a webpage, we often need to style elements based on their position or relationship to other elements. Without combinators, we’d have to add more <strong>classes or IDs</strong> everywhere, which can make our HTML cluttered and repetitive.</p><p>Just imagine, there are 1000 of elements, you are not going create class for every element. Right?</p><p>Now let’s see how CSS combinators make styling a piece of &lt;cake&gt;, not &lt;chaos&gt;.</p><h3>Types of CSS Combinators</h3><h3>1. Descendant Combinator (space)</h3><p>This combinator is represented by a space between two selectors (A B). It selects all elements B that are <strong>descendants</strong> of element A, no matter how deeply nested.</p><pre>&lt;div class=&quot;container&quot;&gt;<br>  &lt;p&gt;child para&lt;/p&gt;<br>  &lt;div&gt;<br>    &lt;p&gt;nested para&lt;/p&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>.container p {<br>  color: blue;<br>}</pre><p>Output : Both &lt;p&gt; elements will be blue because they are <strong>descendants</strong> of the .container.</p><h3>2. Child Combinator (&gt;)</h3><p>The child combinator (A &gt; B) selects elements B that are <strong>direct children</strong> of A. This ensures that only the immediate children get the style, ignoring nested elements.</p><pre>&lt;ul&gt;<br>  &lt;li&gt;Item 1&lt;/li&gt;<br>  &lt;li&gt;Item 2&lt;/li&gt;<br>  &lt;li&gt;<br>    &lt;ul&gt;&lt;li&gt;Sub-item&lt;/li&gt;&lt;/ul&gt;<br>  &lt;/li&gt;<br>&lt;/ul&gt;</pre><pre>ul &gt; li {<br>  font-weight: bold;<br>}</pre><p>Output : Only the <strong>direct child </strong><strong>&lt;li&gt;</strong> elements of the first &lt;ul&gt; will become bold. The nested &lt;li&gt; inside the second &lt;ul&gt; is not affected.</p><h3>3. Adjacent Sibling Combinator (+)</h3><p>The adjacent sibling combinator (A + B) selects element B that is an <strong>immediate sibling</strong> of element A. In other words, it applies styles to the very next element that appears after A at the same level.</p><p>P.S. — It works in forward direction only</p><pre>&lt;h1&gt;Main Heading&lt;/h1&gt;<br>&lt;p&gt;This paragraph comes right after the heading.&lt;/p&gt;<br>&lt;p&gt;Another paragraph.&lt;/p&gt;</pre><pre>h1 + p {<br>  color: green;<br>}</pre><p><strong>Output : </strong>Only the <strong>first paragraph</strong> right after the &lt;h1&gt; will turn green. The second paragraph stays unaffected.</p><h3>4. General Sibling Combinator (~)</h3><p>The general sibling combinator (A ~ B) selects <strong>all sibling elements B</strong> that come after A, not just the first one.</p><pre>&lt;h1&gt;Main Title&lt;/h1&gt;<br>&lt;p&gt;First paragraph.&lt;/p&gt;<br>&lt;p&gt;Second paragraph.&lt;/p&gt;</pre><pre>h1 ~ p {<br>  color: red;<br>}</pre><p><strong>Output : </strong>Both paragraphs will turn red because they are <strong>siblings</strong> of &lt;h1&gt; and appear after it in the same parent.</p><p>Here’s fun exercise for you, now go back to that Bachchan’s family free and answer these questions</p><p>Example</p><p>Q. How will you select Abhishek only using combinators?</p><p>A. Shweta + Abhishek</p><p>Quiz</p><p>Q. How will you select both the children on Amitabh?</p><p>Q. How will you select Ajitabh Bachchan?</p><p>Q. How will you select Aaradhya?</p><p>Arigato.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7769a8d89d01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Watch This Feel Good Indian Movie and Never Feel Lost in Your Life Again!]]></title>
            <link>https://medium.com/@meowmbaikar/watch-this-feel-good-indian-movie-and-never-feel-lost-in-your-life-again-9cfa303517ab?source=rss-a9d5003e13ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cfa303517ab</guid>
            <category><![CDATA[cinema]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[movies-to-watch]]></category>
            <category><![CDATA[bollywood]]></category>
            <category><![CDATA[movies]]></category>
            <dc:creator><![CDATA[Anchal Gupta]]></dc:creator>
            <pubDate>Fri, 14 Apr 2023 04:29:53 GMT</pubDate>
            <atom:updated>2023-04-14T04:33:00.844Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Ranbir Kapoor as Sid Mehra" src="https://cdn-images-1.medium.com/max/1024/1*mvu4cN5NEWlmGL0UHvOK4g.jpeg" /><figcaption>Picture credit — Dharma Productions</figcaption></figure><p>Do you ever feel lost in your life or career? Watch this beautiful and inspiring feel-good movie <strong>Wake Up Sid.</strong></p><h3>Wake up sid</h3><p>Wake Up Sid is a refreshing Bollywood movie that breaks away from the conventional themes of romance and action and instead explores the trials and tribulations of a lazy, entitled young man named Sid Mehra who is forced to grow up and take responsibility for his life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*dzdp5b69PMfBS47zkt77PQ.jpeg" /><figcaption>Wake Up Sid (2009)</figcaption></figure><p>Through his journey, Sid meets Aisha, a determined and ambitious woman who becomes his unlikely friend and mentor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*w0SL8I9u9zXo3_Us4g6ejA.jpeg" /><figcaption>Konkona Sen Sharma as Aisha and Ranbir Kapoor as Sid</figcaption></figure><p>Together, they navigate the ups and downs of adult life, learning valuable lessons about hard work, perseverance, and the importance of pursuing one’s dreams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*f8qloA8_pzDzHMWszexXpg.jpeg" /></figure><p>Set against the colourful backdrop of Mumbai City</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*x6tNAdsA9weIm0qIp3KpoA.jpeg" /></figure><p>The movie is a visual treat, capturing the essence of the city’s vibrant energy and unique charm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*IOGQ3OM1ul_vn2eKf-V_Bw.jpeg" /></figure><p>With its engaging storyline, memorable characters, and fantastic soundtrack that perfectly complements the mood of the movie, Wake Up Sid is a must-watch for anyone who has ever felt lost or unsure about their place in the world.</p><p>Trailer — <a href="https://www.youtube.com/watch?v=Ngimy3GpHS0&amp;t=91s">https://www.youtube.com/watch?v=Ngimy3GpHS0&amp;t=91s</a></p><p>Music— <a href="https://www.youtube.com/watch?v=v_7E5B6Dr2c&amp;t=141s">https://www.youtube.com/watch?v=v_7E5B6Dr2c&amp;t=141s</a></p><p>Streaming — <a href="https://www.justwatch.com/in/movie/wake-up-sid">https://www.justwatch.com/in/movie/wake-up-sid</a></p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cfa303517ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>