<?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>DEV Community: Mark Tony</title>
    <description>The latest articles on DEV Community by Mark Tony (@mark_tony_160702).</description>
    <link>https://dev.to/mark_tony_160702</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4018576%2F8f97a26c-053d-4aec-9668-b8db3bde1784.jpg</url>
      <title>DEV Community: Mark Tony</title>
      <link>https://dev.to/mark_tony_160702</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mark_tony_160702"/>
    <language>en</language>
    <item>
      <title>JS - Loops</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Tue, 01 Sep 2026 04:51:44 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/js-loops-3fce</link>
      <guid>https://dev.to/mark_tony_160702/js-loops-3fce</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is loop?&lt;/strong&gt;&lt;br&gt;
JavaScript loops are control structures that are used for executing a block of code repeatedly as long as the specified condition evaluates true. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Various types of loops&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.for loop&lt;/strong&gt;&lt;br&gt;
The most common loop, used when the number of iterations is known. It initializes a variable, checks a condition, and updates the variable in a single line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;star&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
 &lt;span class="nx"&gt;star&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;star&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;1 &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
 &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;star&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
 &lt;span class="p"&gt;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. while loop&lt;/strong&gt; &lt;br&gt;
 It executes a block of code as long as a condition is true, checking the condition before each iteration. It is ideal when the number of iterations is unknown.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; 
 &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

 &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. do...while loop&lt;/strong&gt;&lt;br&gt;
It is similar to the while loop, but it guarantees that the code block executes at least once before checking the condition.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    

 &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>JS - If, else and else if Statements</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Thu, 27 Aug 2026 09:51:34 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/js-if-else-and-else-if-statements-3ii2</link>
      <guid>https://dev.to/mark_tony_160702/js-if-else-and-else-if-statements-3ii2</guid>
      <description>&lt;h2&gt;
  
  
  Conditional Statements
&lt;/h2&gt;

&lt;p&gt;JavaScript uses the conditional Statements (if,else and else if) to decide the flow of the code based on the validation of statements. The statements are the boolean values (True/False).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. if Statement:&lt;/strong&gt;&lt;br&gt;
The if statement executes the block of code when the condition is true. Otherwise it skips it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;calculate&lt;/span&gt; &lt;span class="p"&gt;(){&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;leftOperand&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Number &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;previousValue&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;rightOperand&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Number &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;currentValue&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;operator&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;+&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;currentValue&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;leftOperand&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;rightOperand&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This if statement will execute the block of code, when the operator is &lt;code&gt;+&lt;/code&gt; addition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. if else Statement:&lt;/strong&gt;&lt;br&gt;
The else statement will be executed when the if statement is false and the block of code of the else statement takes up the flow.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;    &lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade O&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the condition is true, the output will be &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;you are eligible to vote&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;when the conditon is false, the output will be &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;you are not eligible to vote&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;3. else if statement:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The else if statement is used to check more than one conditions. It executes the different block of code in a chain pattern.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;91&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade O&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade A&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;70&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade B&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;you are fail&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Invalid mark Entered, Please enter the mark within 100&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; 
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the else if statement is used to test the different block of code for a grade validation function. The flow of code is decided based on the input. &lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>CSS Selectors</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Wed, 26 Aug 2026 05:40:40 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/css-selectors-1pdm</link>
      <guid>https://dev.to/mark_tony_160702/css-selectors-1pdm</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;CSS selectors are patterns used to select HTML elements so we can apply CSS styles to them.&lt;br&gt;
CSS selectors are patterns used to select HTML elements so that CSS styles can be applied to them.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;1. Element Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An element selector selects all HTML elements of a particular type.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This selects all &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Class Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A class selector selects elements using their class attribute.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It starts with a dot (.).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. ID Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An ID selector selects an element using its id attribute.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nf"&gt;#header&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It starts with a hash &lt;code&gt;(#)&lt;/code&gt;An ID is normally unique on a page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Attribute Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An attribute selector selects elements based on their attributes or attribute values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;input&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;"text"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This selects text input elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Universal Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The universal selector (*) selects all elements on the page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;6. Group Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A group selector allows you to apply the same style to multiple selectors.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;7. Descendant Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A descendant selector selects elements that are inside another element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This selects all &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;elements inside a &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Child Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A child selector &lt;code&gt;(&amp;gt;)&lt;/code&gt; selects only the direct children of an element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;9. Adjacent Sibling Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The adjacent sibling selector (+) selects the element immediately following another element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;10. General Sibling Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The general sibling selector (~) selects all matching siblings that come after an element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="o"&gt;~&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;11. Nesting Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The nesting selector (&amp;amp;) is used to show a relationship between a parent selector and its nested rules.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight scss"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;&amp;amp;&lt;/span&gt; &lt;span class="nt"&gt;p&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;red&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;12. Pseudo-class Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A pseudo-class selects an element based on its state or position.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="nd"&gt;:hover&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Common Examples:&lt;br&gt;
:hover&lt;br&gt;
:focus&lt;br&gt;
:first-child&lt;br&gt;
:last-child&lt;br&gt;
:nth-child()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;13. Pseudo-element Selector&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A pseudo-element styles a specific part of an element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nd"&gt;::first-letter&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;30px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Common Examples:&lt;br&gt;
::before&lt;br&gt;
::after&lt;br&gt;
::first-letter&lt;br&gt;
::first-line&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Data Types in JavaScript</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Tue, 25 Aug 2026 09:59:40 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/data-types-in-javascript-5hp</link>
      <guid>https://dev.to/mark_tony_160702/data-types-in-javascript-5hp</guid>
      <description>&lt;p&gt;A data type tells the computer what kind of data a variable stores and what operations can be done with it.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;10 → number&lt;br&gt;
"Hello" → text&lt;br&gt;
true → boolean&lt;/p&gt;

&lt;p&gt;In simple words, a data type defines what kind of value a variable can hold.&lt;/p&gt;

&lt;p&gt;There are Two types of Data types used in JavaScript:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Primitive Data Type&lt;/li&gt;
&lt;li&gt;Non- Primitive Data Type&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Primitive Data Type:&lt;/strong&gt;&lt;br&gt;
 It can hold only single value. For example:&lt;br&gt;
&lt;code&gt;let Name= "Tony"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A memory will be created on the key "Name" and the value "Tony" will be stored. The Primitive Data Types are immutable.&lt;/p&gt;

&lt;p&gt;If I give another value in the same key "Name" and give the value "Parthipan" &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Name="Parthipan"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A new memory will be created and the value "Parthipan" will be stored. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non- Primitive Data Type&lt;/strong&gt;&lt;br&gt;
 Unlike Primitive,It can Store multiple values. It is called an Object. The object contains the Arrays and Functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;userDetails&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mark Tony&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;tony@gmail.com&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;location&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;chennai&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="na"&gt;welcome&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
      &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Various Primitive data types:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;String: A string is a sequence of text or characters written inside single quotes (' ') or double quotes (" ").&lt;/li&gt;
&lt;li&gt;Number: A number represents both integer and decimal (floating-point) values.&lt;/li&gt;
&lt;li&gt;BigInt: BigInt is used to represent very large integers accurately beyond the safe range of the Number type.&lt;/li&gt;
&lt;li&gt;Boolean: A Boolean represents a logical value that can be either true or false.&lt;/li&gt;
&lt;li&gt;Null: Null represents the intentional absence of a value.&lt;/li&gt;
&lt;li&gt;Undefined: Undefined means a variable has been declared but no value has been assigned to it.&lt;/li&gt;
&lt;li&gt;Symbol: A Symbol is a unique and immutable primitive value, commonly used to create unique object property keys.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Easy way to remember&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;String → Text&lt;/li&gt;
&lt;li&gt;Number → Numbers&lt;/li&gt;
&lt;li&gt;BigInt → Very large integers&lt;/li&gt;
&lt;li&gt;Boolean → True/False&lt;/li&gt;
&lt;li&gt;Null → Intentional empty value&lt;/li&gt;
&lt;li&gt;Undefined → No value assigned&lt;/li&gt;
&lt;li&gt;Symbol → Unique value&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>HTML, CSS - Interview Questions</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Fri, 21 Aug 2026 05:37:11 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/html-interview-questions-jff</link>
      <guid>https://dev.to/mark_tony_160702/html-interview-questions-jff</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What is HTML?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML stands for HyperText Markup Language. It is the standard markup language used to create and structure web pages. HTML defines the different elements on a webpage, such as headings, paragraphs, images, links, buttons, tables, and forms. HTML provides the basic structure of a website, while CSS is used for styling and JavaScript is used for functionality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. What is CSS?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CSS stands for Cascading Style Sheets. It is used to style and design HTML elements on a webpage. With CSS, we can change colors, fonts, sizes, spacing, borders, backgrounds, and layouts. CSS also helps us make websites responsive, so they can work properly on different screen sizes like desktops, tablets, and mobile phones. We can use CSS with layouts such as Flexbox and Grid to arrange elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. What are HTML Attributes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML attributes provide additional information about HTML elements. They are written inside the opening tag and usually have a name and value. For example, in an image tag, src specifies the image location and alt provides alternative text. Other common attributes are id, class, href, style, and title. Attributes help us control or provide additional information about how an HTML element behaves or is identified.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.What is CSS Grid?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CSS Grid is a two-dimensional layout system in CSS. It allows us to arrange elements using rows and columns. It is especially useful when creating complex webpage layouts. For example, we can create a layout with a header, sidebar, main content, and footer using Grid. We can define columns and rows using properties like &lt;code&gt;grid-template-columns&lt;/code&gt; and &lt;code&gt;grid-template-rows&lt;/code&gt;. Grid is useful when we need precise control over both horizontal and vertical layouts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.What is Flexbox?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Flexbox, or Flexible Box Layout, is a CSS layout system used to arrange elements in one direction at a time, either horizontally or vertically. It makes it easy to align, distribute, and resize elements within a container. Some commonly used properties are display: flex, justify-content, align-items, flex-direction, and gap. Flexbox is commonly used for navigation bars, buttons, cards, and other simple layouts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6.What are Ordered and Unordered Lists?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML provides two common types of lists: ordered lists and unordered lists. An ordered list uses the &lt;code&gt;&amp;lt;ol&amp;gt;&lt;/code&gt; tag, and its items are displayed with numbers or letters. An unordered list uses the &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; tag, and its items are normally displayed using bullet points. In both cases, individual items are written using the&lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt; tag. Ordered lists are useful when the order is important, while unordered lists are useful when the order doesn't matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7.What are Main Axis and Cross Axis in Flexbox?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In Flexbox, there are two important directions called the main axis and cross axis. The main axis is the direction in which the flex items are arranged. The cross axis is perpendicular to the main axis. By default, Flexbox uses flex-direction: row, so the main axis is horizontal and the cross axis is vertical. justify-content generally controls alignment along the main axis, while align-items controls alignment along the cross axis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. What is Box Sizing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;box-sizing is a CSS property that determines how the width and height of an element are calculated. There are two common values: content-box and border-box. By default, the value is content-box, where padding and border are added to the specified width and height. With border-box, the specified width and height include the content, padding, and border. Many developers use box-sizing: border-box because it makes sizing elements easier and more predictable.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Variables in JavaScript</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Sat, 15 Aug 2026 06:55:27 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/variables-in-javascript-1pgh</link>
      <guid>https://dev.to/mark_tony_160702/variables-in-javascript-1pgh</guid>
      <description>&lt;p&gt;Variables are containers that store data. In JavaScript a variable can be declared in three ways:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;let&lt;/li&gt;
&lt;li&gt;Const&lt;/li&gt;
&lt;li&gt;Var&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The variable method was used earlier. The other two were added to simplify the coding.The Variable and let method are almost similar.&lt;/p&gt;

&lt;h2&gt;
  
  
  1.let:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;let is a block-scoped variable that can be reassigned.&lt;/li&gt;
&lt;li&gt; let prevents scope leakage and accidental redeclaration within the same scope.&lt;/li&gt;
&lt;li&gt;Temporal Dead Zone (TDZ): Accessing a let variable before its declaration results in a ReferenceError, unlike var which hoists and initializes as undefined. &lt;/li&gt;
&lt;li&gt;Global Scope Behavior: At the top level, let does not create a property on the global object.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Declaring the variable with value:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;script&amp;gt;
        let a = 10
        console.log(a);
        &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Reassigning the value:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;script&amp;gt;
        let a = 10
        a = a+ 20
        console.log(a);
        &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Const:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Const is a block-scoped variable that cannot be neither reassigned nor redeclared.&lt;/li&gt;
&lt;li&gt; Like let, const is limited to the block in which it is defined, avoiding the hoisting and scoping issues associated with var.&lt;/li&gt;
&lt;li&gt; A value must be provided at the time of declaration; attempting to declare const without initialization throws a syntax error.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;
    &amp;lt;script&amp;gt;
        const a = 10
        a = a+ 20
        console.log(a);
        &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr4w9u9uisy6lowclzp5m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr4w9u9uisy6lowclzp5m.png" alt=" " width="644" height="115"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Var:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; var is the original method used for declaring variables.&lt;/li&gt;
&lt;li&gt; The same variables can be redeclared in Var.&lt;/li&gt;
&lt;li&gt;  Variables are scoped to the entire function they are declared in, or globally if declared outside any function, ignoring block boundaries like if statements or for loops. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prefer const: Use const for all variables that are not intended to be reassigned, as it signals intent and helps prevent accidental bugs. &lt;/li&gt;
&lt;li&gt;Use let: Only use let for variables that require reassignment, such as loop counters or values that change based on user interaction. &lt;/li&gt;
&lt;li&gt;Avoid var: The var keyword is no longer in use due to its function scope and hoisting behavior, which can lead to unexpected bugs.&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>JavaScript - Variables</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Wed, 12 Aug 2026 09:17:58 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/javascript-variables-4l1l</link>
      <guid>https://dev.to/mark_tony_160702/javascript-variables-4l1l</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Variables = Data Containers&lt;br&gt;
JavaScript variables are containers for data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;JavaScript variables can be declared in 3 ways:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Modern JavaScript&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Using let&lt;/li&gt;
&lt;li&gt;Using const&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Older JavaScript&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Using var&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Examples of Using let:&lt;/strong&gt;&lt;br&gt;
let x = 5;&lt;br&gt;
let y = 6;&lt;br&gt;
let z = x + y;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples of Using Const&lt;/strong&gt;&lt;br&gt;
const x = 5;&lt;br&gt;
const y = 6;&lt;br&gt;
const z = x + y;&lt;/p&gt;

&lt;p&gt;Variables are labels for data values. Variables are containers for storing data.&lt;/p&gt;

&lt;h2&gt;
  
  
  JavaScript Identifiers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Variables are identified with names called identifiers.&lt;/li&gt;
&lt;li&gt;Names can be short like x, y, z.&lt;/li&gt;
&lt;li&gt;Names can be descriptive like age, sum, carName.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rules for constructing names (identifiers) are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Names can contain letters, digits, underscores, and dollar signs.&lt;/li&gt;
&lt;li&gt;Names must begin with a letter, a $ sign or an underscore (_).&lt;/li&gt;
&lt;li&gt;Names are case sensitive (X is different from x).&lt;/li&gt;
&lt;li&gt;Reserved words (JavaScript keywords) cannot be used as names.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Javascript</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Wed, 12 Aug 2026 08:58:17 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/javascript-28pl</link>
      <guid>https://dev.to/mark_tony_160702/javascript-28pl</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Javascript is a versatile,high level programming language. It is used for creating an interactive and dynamic content on web page. &lt;/li&gt;
&lt;li&gt; Javescript is a single-threated language that executes one task at a time.It is also interpreted language the executes the code line by line. &lt;/li&gt;
&lt;li&gt; Javascript is dynamically typed language where type checking is done during runtime rather that at compile time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Compiler:
&lt;/h2&gt;

&lt;p&gt;Compiler converts the entire source code into machine code and saves it as a binary file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Interpreter:
&lt;/h2&gt;

&lt;p&gt;An interpreter is a computer program that executes instructions written in a high-level programming language directly, without requiring the entire program to be compiled into machine code beforehand.  It processes code line-by-line or statement-by-statement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3p7s15pafwtd0sv9u34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq3p7s15pafwtd0sv9u34.png" alt=" " width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  JIT Compiler
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;JIT- Just-in-time compiler is used in Javascript which is a combination of Interpreter and compiler. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqwasfjx1l0g1g8gulevb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqwasfjx1l0g1g8gulevb.png" alt=" " width="799" height="219"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>career</category>
    </item>
    <item>
      <title>Responsive Web Design</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Tue, 11 Aug 2026 10:22:29 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/responsive-web-design-16ak</link>
      <guid>https://dev.to/mark_tony_160702/responsive-web-design-16ak</guid>
      <description>&lt;h2&gt;
  
  
  What is Responsive Web Design?
&lt;/h2&gt;

&lt;p&gt;Responsive Web Design is about using HTML and CSS to automatically resize, hide, shrink, or enlarge, a website, to make it look good on all devices (desktops, tablets, and phones)&lt;/p&gt;

&lt;p&gt;Responsive web design uses HTML and CSS to automatically adjust a website's layout, size, and visibility to ensure it looks good on all devices, from mobile phones to large desktops.  &lt;/p&gt;

&lt;p&gt;This is achieved through three core techniques: &lt;br&gt;
&lt;strong&gt;flexible grid layouts&lt;/strong&gt; using relative units like percentages, &lt;strong&gt;fluid images&lt;/strong&gt; that scale proportionally, and &lt;strong&gt;CSS media queries&lt;/strong&gt; that apply specific styles based on screen characteristics.&lt;/p&gt;

&lt;p&gt;Modern approaches also favor mobile-first design, where styles are written for small screens first, then expanded for larger screens using min-width media queries.  Additionally, using CSS Flexbox or Grid allows for more flexible and complex responsive layouts without relying on floats or fixed pixel widths. &lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Media Elements</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Wed, 05 Aug 2026 07:39:47 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/media-elements-48nn</link>
      <guid>https://dev.to/mark_tony_160702/media-elements-48nn</guid>
      <description>&lt;p&gt;IN HTML, we can add media elements using media elements tags such as&lt;br&gt;
&lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Media Elements in HTML:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Picture&lt;/li&gt;
&lt;li&gt;Audio&lt;/li&gt;
&lt;li&gt;Video&lt;/li&gt;
&lt;li&gt;Maps&lt;/li&gt;
&lt;li&gt;youtube Videos&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;&lt;br&gt;
It is used to add the audio files to our web page. We can add the following attributes for additional features:&lt;br&gt;
controls- start,stop,pause,volume&lt;br&gt;
loop- continuous process&lt;br&gt;
muted- mutes the audio unless it is disabled&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;audio&lt;/span&gt; &lt;span class="na"&gt;controls&lt;/span&gt; &lt;span class="na"&gt;loop&lt;/span&gt; &lt;span class="na"&gt;muted&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://www.w3schools.com/html/horse.mp3"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"audio/mp3"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/audio&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;&lt;br&gt;
we can add video files to our web page using this video tag. we can enable the following features by using the attributes.&lt;/p&gt;

&lt;p&gt;controls- start,stop,pause,volume&lt;br&gt;
loop- continuous process&lt;br&gt;
muted- mutes the audio of the video unless it is turned off&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;video&lt;/span&gt; &lt;span class="na"&gt;controls&lt;/span&gt; &lt;span class="na"&gt;loop&lt;/span&gt; &lt;span class="na"&gt;muted&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt;
        &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://www.w3schools.com/html/mov_bbb.webm"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"video/webm"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/video&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt;&lt;br&gt;
 This tag is used for adding the maps and external website video to the web page. Users can modify according to their convenience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Youtube Videos&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;iframe&lt;/span&gt;
      &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"560"&lt;/span&gt;
      &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"315"&lt;/span&gt;
      &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://www.youtube.com/embed/ZNWu2BWfPYc?si=wTXoCtVNSVbfW9OP"&lt;/span&gt;
      &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"YouTube video player"&lt;/span&gt;
      &lt;span class="na"&gt;frameborder=&lt;/span&gt;&lt;span class="s"&gt;"0"&lt;/span&gt;
      &lt;span class="na"&gt;allow=&lt;/span&gt;&lt;span class="s"&gt;"
        accelerometer;
        autoplay;
        clipboard-write;
        encrypted-media;
        gyroscope;
        picture-in-picture;
        web-share;
      "&lt;/span&gt;
      &lt;span class="na"&gt;referrerpolicy=&lt;/span&gt;&lt;span class="s"&gt;"strict-origin-when-cross-origin"&lt;/span&gt;
      &lt;span class="na"&gt;allowfullscreen&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Maps&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;iframe&lt;/span&gt;
      &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d31469.911010189822!2d78.70012115992618!3d9.617737652610943!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3b01a96e6c257f2b%3A0x7ee4a4b8935d1295!2sSalaigramam%2C%20Tamil%20Nadu!5e0!3m2!1sen!2sin!4v1785915373307!5m2!1sen!2sin"&lt;/span&gt;
      &lt;span class="na"&gt;width=&lt;/span&gt;&lt;span class="s"&gt;"600"&lt;/span&gt;
      &lt;span class="na"&gt;height=&lt;/span&gt;&lt;span class="s"&gt;"450"&lt;/span&gt;
      &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"border: 0; margin-top: 2%; margin-left: 5%;"&lt;/span&gt;
      &lt;span class="na"&gt;allowfullscreen=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;
      &lt;span class="na"&gt;loading=&lt;/span&gt;&lt;span class="s"&gt;"lazy"&lt;/span&gt;
      &lt;span class="na"&gt;referrerpolicy=&lt;/span&gt;&lt;span class="s"&gt;"strict-origin-when-cross-origin"&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>Media Elements &lt;picture&gt;</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Tue, 04 Aug 2026 04:19:30 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/media-elements-1poe</link>
      <guid>https://dev.to/mark_tony_160702/media-elements-1poe</guid>
      <description>&lt;p&gt;&lt;code&gt;&amp;lt;Picture&amp;gt;&lt;/code&gt; element is a container that allows developers to specify multiple image resources for different display conditions. It works by containing one or more &lt;code&gt;&amp;lt;source&amp;gt;&lt;/code&gt; elements and a single fallback &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;element, enabling the browser to choose the most appropriate image automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Differences from &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;While the standard &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag is suitable for a single source, the &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt; tag provides flexibility for responsive design and art direction. &lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax and Attributes
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;picture&amp;gt;&lt;/code&gt;element itself does not have specific attributes; functionality is derived from its child elements:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;source&amp;gt;:&lt;/code&gt; Defines alternative image sources. Common attributes include:&lt;br&gt;
&lt;strong&gt;media:&lt;/strong&gt; Specifies a media query (e.g., (min-width: 800px)) to determine when this source is used.&lt;br&gt;
&lt;strong&gt;srcset:&lt;/strong&gt; Provides the URL and optional width/pixel density descriptors for the image.&lt;br&gt;
&lt;strong&gt;type:&lt;/strong&gt; Specifies the MIME type (e.g., image/webp) to enable format switching.&lt;br&gt;
&lt;code&gt;&amp;lt;img&amp;gt;:&lt;/code&gt; Acts as the fallback option.  It must be the last child element and includes the src and alt attributes to ensure compatibility with browsers that do not support the  tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;picture&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt; &lt;span class="na"&gt;media=&lt;/span&gt;&lt;span class="s"&gt;"(min-width: 1200px)"&lt;/span&gt; &lt;span class="na"&gt;srcset=&lt;/span&gt;&lt;span class="s"&gt;"large.jpg"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"image/jpeg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;source&lt;/span&gt; &lt;span class="na"&gt;media=&lt;/span&gt;&lt;span class="s"&gt;"(min-width: 800px)"&lt;/span&gt; &lt;span class="na"&gt;srcset=&lt;/span&gt;&lt;span class="s"&gt;"medium.jpg"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"image/jpeg"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"default.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Example image"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/picture&amp;gt;&lt;/span&gt;   
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Grid Layout</title>
      <dc:creator>Mark Tony</dc:creator>
      <pubDate>Mon, 03 Aug 2026 05:03:12 +0000</pubDate>
      <link>https://dev.to/mark_tony_160702/grid-layout-542k</link>
      <guid>https://dev.to/mark_tony_160702/grid-layout-542k</guid>
      <description>&lt;h2&gt;
  
  
  Grid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The Grid Layout Module offers a grid-based layout system, with rows and columns.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Grid Layout Module allows developers to easily create complex web layouts.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The Grid Layout Module makes it easy to design a responsive layout structure, without using float or positioning.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Variation between Grid and Flex:
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;CSS Grid is used for two-dimensional layout, with rows AND columns.&lt;br&gt;
CSS Flexbox is used for one-dimensional layout, with rows OR columns.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to use Grid?
&lt;/h2&gt;

&lt;p&gt;To use Grid, you set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;display&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;grid&lt;/span&gt; &lt;span class="nt"&gt;or&lt;/span&gt; &lt;span class="nt"&gt;display&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;inline-grid&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;on a parent element, which becomes the grid container, while its direct children become grid items.  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key properties include&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;grid-template-columns&lt;/li&gt;
&lt;li&gt;grid-template-rows 
to define track sizes, the fr unit for flexible space distribution, and gap for spacing between items.
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;This system simplifies creating consistent, flexible layouts that adapt to different screen sizes without relying on floats or complex positioning hacks.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
