<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: SARTHAK KASHMIRA</title>
    <description>The latest articles on Forem by SARTHAK KASHMIRA (@sarthak_kashmira).</description>
    <link>https://forem.com/sarthak_kashmira</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1552281%2F217c789a-acc2-4318-819b-76b6cb0f1c51.jpeg</url>
      <title>Forem: SARTHAK KASHMIRA</title>
      <link>https://forem.com/sarthak_kashmira</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sarthak_kashmira"/>
    <language>en</language>
    <item>
      <title>Date in JS(Fully Covered)</title>
      <dc:creator>SARTHAK KASHMIRA</dc:creator>
      <pubDate>Fri, 24 Jan 2025 06:50:46 +0000</pubDate>
      <link>https://forem.com/sarthak_kashmira/date-in-jsfully-covered-489</link>
      <guid>https://forem.com/sarthak_kashmira/date-in-jsfully-covered-489</guid>
      <description>&lt;h2&gt;
  
  
  Date object
&lt;/h2&gt;

&lt;p&gt;To create a date we can use Date() and we can pass arguments in the form of strings as well.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const date=new Date() // creates a new date with present date and current time
const date1=new Date("2021-01-23") // creates date with this date 
const date2=new Date("December 02, 2021 23:45:00")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  To access the dates from Date object
&lt;/h2&gt;

&lt;p&gt;We can use functions like getFullYear(),getMonth(),getDate(),getHours(),getMinutes(),getSeconds(),getMilliSeconds()&lt;/p&gt;

&lt;h2&gt;
  
  
  To set the dates from Date object
&lt;/h2&gt;

&lt;p&gt;setFullYear(),setMonth(),setDate(),setHours(),setMinutes(),setSeconds(),setMilliSeconds()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note that in all the above functions we should pass arguments as number.&lt;br&gt;
But the getMonth() and setMonth() takes values as the month number in the form of 0-based indexing&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Enjoy with CSS!(word-wrap)</title>
      <dc:creator>SARTHAK KASHMIRA</dc:creator>
      <pubDate>Wed, 22 Jan 2025 12:56:01 +0000</pubDate>
      <link>https://forem.com/sarthak_kashmira/enjoy-with-cssword-wrap-4npl</link>
      <guid>https://forem.com/sarthak_kashmira/enjoy-with-cssword-wrap-4npl</guid>
      <description>&lt;p&gt;Sometimes there will be scenario when a particular word that you want to show is larger than the screen size.In that case if we resize the screen size we would want the remaining text to be shown on the new line.In that case flex-wrap property will not work.&lt;br&gt;
So in that case we need to use word-wrap that wraps the remaining text on to a new line.&lt;br&gt;
So in these cases just add the CSS code &lt;br&gt;
&lt;code&gt;{&lt;br&gt;
   word-wrap:break-word;&lt;br&gt;
   hyphens:auto;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here hyphens property will put a hyphen at the end of the line so as to give idea that the remaining word is on the new line.&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Combinators in CSS</title>
      <dc:creator>SARTHAK KASHMIRA</dc:creator>
      <pubDate>Fri, 17 Jan 2025 11:30:06 +0000</pubDate>
      <link>https://forem.com/sarthak_kashmira/combinators-in-css-1g7i</link>
      <guid>https://forem.com/sarthak_kashmira/combinators-in-css-1g7i</guid>
      <description>&lt;p&gt;The use of combinators in CSS can make the HTML codes look better and less bulky.&lt;br&gt;
Some of the areas where you can use them are&lt;br&gt;
The code &lt;br&gt;
&lt;code&gt;&amp;lt;ul class="navbar-list"&amp;gt;&lt;br&gt;
  &amp;lt;li class="list-item"&amp;gt;&amp;lt;a href="" &amp;gt;Men&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
  &amp;lt;li class="list-item"&amp;gt;&amp;lt;a href="" &amp;gt;Women&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
  &amp;lt;li class="list-item"&amp;gt;&amp;lt;a href="" &amp;gt;Kids&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
 &amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;br&gt;
can be made to &lt;br&gt;
&lt;code&gt;&amp;lt;ul class="navbar-list"&amp;gt;&lt;br&gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="" &amp;gt;Men&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="" &amp;gt;Women&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
  &amp;lt;li&amp;gt;&amp;lt;a href="" &amp;gt;Kids&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;br&gt;
 &amp;lt;/ul&amp;gt;&lt;/code&gt;&lt;br&gt;
if we use &lt;code&gt;.navbar-list &amp;gt; li { .. your css code }&lt;/code&gt; rather than .list-item{.. your css code..}&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
