<?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: Jaisurya</title>
    <description>The latest articles on DEV Community by Jaisurya (@jaisurya).</description>
    <link>https://dev.to/jaisurya</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%2F4020391%2Ffb23d52d-dc92-4b86-aa13-12a25c9e92b9.png</url>
      <title>DEV Community: Jaisurya</title>
      <link>https://dev.to/jaisurya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaisurya"/>
    <language>en</language>
    <item>
      <title>Hoisting</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Fri, 14 Aug 2026 03:10:17 +0000</pubDate>
      <link>https://dev.to/jaisurya/hoisting-1o35</link>
      <guid>https://dev.to/jaisurya/hoisting-1o35</guid>
      <description>&lt;p&gt;Hoisting in JavaScript is the engine’s behavior of moving declarations to the top of their scope (global or local) before execution. Because of hoisting, you can reference functions or variables in your code before the lines where they are defined.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Function Declaration&lt;/strong&gt;&lt;br&gt;
   Function declarations are hoisted in their entirety—both the declaration and the body. This means you can call a function before it appears in the source code.&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="nf"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;//Output: hello!&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;hello&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;hello!&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;&lt;strong&gt;2.var Declaration&lt;/strong&gt;&lt;br&gt;
   When you use var, JavaScript hoists the variable declaration, but not its assignment. Until the execution line reaches the assignment, the variable holds undefined.&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="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;num&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//Output: undefined&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//Output: 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Javascript Variable</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Wed, 12 Aug 2026 13:24:09 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-variable-i8p</link>
      <guid>https://dev.to/jaisurya/javascript-variable-i8p</guid>
      <description>&lt;p&gt;In JavaScript, a variable is a named storage location that holds a value, which can be any data type, such as numbers, strings, boolean, etc. It can be declared using keywords like var, let, or const.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.var&lt;/strong&gt;&lt;br&gt;
var is function scoped, it can be re-declared and reassigned.&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;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output: 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.let&lt;/strong&gt;&lt;br&gt;
let is block scoped, it can be updated , but can't be redeclared in the same scope.&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;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&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="kc"&gt;true&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;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;35&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="nx"&gt;x&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="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output:&lt;/span&gt;
&lt;span class="mi"&gt;35&lt;/span&gt;
&lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.const&lt;/strong&gt;&lt;br&gt;
const is also block scoped, it can't be updated, used to store constant values&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;const&lt;/span&gt; &lt;span class="nx"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;3.14&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;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&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;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;r&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="nx"&gt;c&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output: &lt;/span&gt;
&lt;span class="mf"&gt;12.56&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Security considerations in IFrame tag</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Thu, 06 Aug 2026 14:35:45 +0000</pubDate>
      <link>https://dev.to/jaisurya/security-considerations-in-iframe-tag-51po</link>
      <guid>https://dev.to/jaisurya/security-considerations-in-iframe-tag-51po</guid>
      <description>&lt;p&gt;The  (Inline frame) tag is used to embed another HTML document or web resource inside the current webpage. It essentially creates a nested browser window within your layout.&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;There are security risks that can be created by using iframes unless handled in the right manner. As an example, content that uses embedded external websites can create the risk of clickjacking or script injections. To counter these:&amp;lt;/p&amp;gt;

&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;Take a sandbox attribute to limit the frame behaviour (block scripts, forms, or popups).&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Never leave an unverified source dangling as src, or domain, etc.&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Integrate the sandbox with the ability to allow attributes to have more precise control.
&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;div class="highlight"&amp;gt;&amp;lt;pre class="highlight html"&amp;gt;&amp;lt;code&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;lt;iframe&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;src=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"https://www.youtube.com"&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;sandbox=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"allow-scripts allow-same-origin"&amp;lt;/span&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>html</category>
      <category>security</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Tailwind CSS</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Mon, 03 Aug 2026 16:59:31 +0000</pubDate>
      <link>https://dev.to/jaisurya/tailwind-css-4i8p</link>
      <guid>https://dev.to/jaisurya/tailwind-css-4i8p</guid>
      <description>&lt;p&gt;Tailwind CSS is a utility-first CSS framework that lets you build custom user interfaces directly in your HTML or component markup without writing traditional custom stylesheets.&lt;/p&gt;

&lt;p&gt;Tailwind provides low-level utility classes—such as flex, pt-4, bg-blue-500, and text-center—that map directly to individual CSS rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How It Works (Traditional CSS vs. Tailwind)&lt;/strong&gt;&lt;br&gt;
Instead of naming classes and jumping back and forth between your HTML and CSS files, you combine utility classes directly on HTML elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Traditional CSS&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="c"&gt;&amp;lt;!-- HTML --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"custom-button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Click Me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

/* CSS */
.custom-button {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Tailwind CSS&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;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"bg-blue-500 text-white px-4 py-2 rounded font-semibold hover:bg-blue-600"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  Click Me
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rapid Development: You don't waste time jumping between HTML and CSS files, nor do you spend mental energy coming up with naming conventions (like BEM) for class names.&lt;/li&gt;
&lt;li&gt;Consistent Design System: Instead of picking random pixels or hex codes, Tailwind enforces a uniform scale for spacing, typography, shadows, and colors out of the box.&lt;/li&gt;
&lt;li&gt;No Class Name Collisions: Since styles are tied directly to utilities or components rather than global selectors, changing one element's style will never accidentally break another element elsewhere on your site.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>ui</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Responsive web design</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sun, 02 Aug 2026 14:48:17 +0000</pubDate>
      <link>https://dev.to/jaisurya/responsive-web-design-5dl</link>
      <guid>https://dev.to/jaisurya/responsive-web-design-5dl</guid>
      <description>&lt;p&gt;Responsive Web Design is an approach to web development that makes a website automatically adapt its layout, images, and content to fit the screen size and orientation of whatever device is viewing it whether it's a desktop monitor, a tablet, or a smartphone screen.&lt;/p&gt;

&lt;p&gt;Instead of building separate websites for desktop users (example.com) and mobile users (m.example.com), developers build one single code base that fluidly resizes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Three Core Technical Pillars:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fluid Grids&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Traditional web pages used fixed widths. Responsive design uses relative units like percentages, viewport units, or CSS Grid/Flexbox. Elements shrink or expand proportionally as the viewport scales.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Flexible Images &amp;amp; Media&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Media is set to never exceed its container size using CSS rules like max-width: 100%. This prevents large images from overflowing small mobile viewports or breaking the layout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CSS Media Queries&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Media queries allow developers to apply specific CSS rules only when certain conditions are met—most commonly screen width breakpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why Responsive Design Matters&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better User Experience: Users don't have to pinch, zoom, or scroll horizontally to read content.&lt;/li&gt;
&lt;li&gt;Cost Efficiency: Maintaining a single responsive codebase is significantly faster and cheaper than managing separate desktop and mobile versions.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>responsive</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Bootstrap</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sat, 01 Aug 2026 12:56:05 +0000</pubDate>
      <link>https://dev.to/jaisurya/bootstrap-1k20</link>
      <guid>https://dev.to/jaisurya/bootstrap-1k20</guid>
      <description>&lt;p&gt;Think of it as a UI blueprint kit, instead of styling every pixel and layout rule manually in raw CSS, you attach ready-made CSS class names to your HTML elements.&lt;/p&gt;

&lt;p&gt;Bootstrap is the world’s most popular open-source front-end framework. It provides a pre-written collection of HTML, CSS, and JavaScript building blocks—like grid layouts, buttons, navigation bars, modal dialogs, and form inputs—so developers don't have to build web interfaces completely from scratch.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Main Pain Points Does Bootstrap Solve?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Messy Mobile Layouts&lt;/strong&gt;: Its grid system automatically fits your site to phone, tablet, and computer screens without complex styling rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Different Browser Looks&lt;/strong&gt;: It fixes small browser glitches so your site looks identical on Chrome, Safari, and Edge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Slow Building Speed&lt;/strong&gt;: Instead of building buttons, pop-ups, and menus from scratch, you just copy and paste ready-to-use parts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inconsistent Designs&lt;/strong&gt;: It gives your whole team the same visual rules so your pages don't look messy or mismatched.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessibility Needs&lt;/strong&gt;: Its parts already work well with screen readers and keyboard navigation.&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS Flexbox vs Grid</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Thu, 30 Jul 2026 14:21:58 +0000</pubDate>
      <link>https://dev.to/jaisurya/css-flexbox-vs-grid-1k5b</link>
      <guid>https://dev.to/jaisurya/css-flexbox-vs-grid-1k5b</guid>
      <description>&lt;p&gt;&lt;strong&gt;1.CSS Flexbox&lt;/strong&gt;&lt;br&gt;
   Flexbox was created to distribute space and align items within a container, even when their sizes are unknown or dynamic.&lt;br&gt;
   Flexbox is content-first. You give elements space, and they stretch, shrink, or wrap based on how much content is inside them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Use Cases for Flexbox&lt;/strong&gt;&lt;br&gt;
   Navigation Bars: Spacing out a logo on the left and menu links on the right using justify-content: space-between.&lt;br&gt;
   Centering Elements: The classic justify-content: center and align-items: center combo.&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;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;justify-content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c"&gt;/* Horizontally center */&lt;/span&gt;
  &lt;span class="nl"&gt;align-items&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;     &lt;span class="c"&gt;/* Vertically center */&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.CSS Grid&lt;/strong&gt;&lt;br&gt;
   CSS Grid is a complete, structural layout system. Instead of focusing on individual items and letting them push each other around, Grid lets you define a master structure (rows and columns) first, then place elements wherever you want on that board.&lt;br&gt;
   Grid is layout-first. You design the framework, and elements fit neatly into the predefined tracks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Use Case for Grid&lt;/strong&gt;&lt;br&gt;
   A classic admin dashboard requires a header, sidebar, main content area, widgets spanning different sizes, and a footer. CSS Grid shines here because grid-template-areas makes the structural placement explicit and easy to read.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;HTML
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"grid"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;Card 1&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;Card 2&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;Card 3&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;Card 4&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

CSS
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

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

&lt;/div&gt;



</description>
      <category>css</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS Box model</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Mon, 27 Jul 2026 03:04:44 +0000</pubDate>
      <link>https://dev.to/jaisurya/css-box-model-heb</link>
      <guid>https://dev.to/jaisurya/css-box-model-heb</guid>
      <description>&lt;p&gt;In CSS, the term "box model" is used when talking about web design and layout.The CSS box model is essentially a box that wraps around every HTML element.&lt;/p&gt;

&lt;p&gt;Every box consists of four parts: content, padding, borders and margins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EXPLANATION&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Content - The content of the box, where text and images appear&lt;/li&gt;
&lt;li&gt;Padding - Clears an area around the content. The padding is transparent&lt;/li&gt;
&lt;li&gt;Border- A border that goes around the padding and content&lt;/li&gt;
&lt;li&gt;Margin - Clears an area outside the border. The margin is transparent
&lt;/li&gt;
&lt;/ul&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="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;400px&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;12px&lt;/span&gt; &lt;span class="nb"&gt;solid&lt;/span&gt; &lt;span class="no"&gt;green&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;50px&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;20px&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;



</description>
      <category>beginners</category>
      <category>css</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Iframe in HTML</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Fri, 24 Jul 2026 10:53:14 +0000</pubDate>
      <link>https://dev.to/jaisurya/iframe-in-html-23fm</link>
      <guid>https://dev.to/jaisurya/iframe-in-html-23fm</guid>
      <description>&lt;p&gt;The  tag in HTML is used to embed another webpage directly inside your current page. Think of it like a window on your website looking into another webpage.&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Basic Syntax:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;/p&amp;gt;
&amp;lt;div class="highlight"&amp;gt;&amp;lt;pre class="highlight html"&amp;gt;&amp;lt;code&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;lt;iframe&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;src=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"https://example.com"&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;width=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"600"&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;height=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"400"&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;title=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"Example Website"&amp;lt;/span&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Let&amp;amp;#39;s see how we embed a youtube video inside our website:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;
   Most video and map providers generate &amp;lt;iframe&amp;gt; code automatically for you when you click &amp;amp;quot;Share&amp;amp;quot; -&amp;amp;gt; &amp;amp;quot;Embed&amp;amp;quot;.&amp;lt;br&amp;gt;
&amp;lt;/p&amp;gt;
&amp;lt;div class="highlight"&amp;gt;&amp;lt;pre class="highlight html"&amp;gt;&amp;lt;code&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;lt;iframe&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;width=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"560"&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;height=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"315"&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;src=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"https://www.youtube.com/embed/dQw4w9WgXcQ"&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;title=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"YouTube video player"&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;allow=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"&amp;lt;/span&amp;gt; 
  &amp;lt;span class="na"&amp;gt;allowfullscreen&amp;lt;/span&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;span class="nt"&amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&amp;lt;/span&amp;gt;

&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;Now we have a youtube video inside our webpage.&amp;lt;/p&amp;gt;
&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>html</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Boolean Attributes in HTML</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sun, 19 Jul 2026 10:37:30 +0000</pubDate>
      <link>https://dev.to/jaisurya/boolean-attributes-in-html-3315</link>
      <guid>https://dev.to/jaisurya/boolean-attributes-in-html-3315</guid>
      <description>&lt;p&gt;The three of the most common boolean attributes that we use in HTML.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disabled:&lt;/strong&gt;&lt;br&gt;
When you add it to a form element, you completely shut down any interaction with it.Form inputs that depend on a previous action. For example, keeping a "Submit" button disabled until the user checks a "Terms of Service" box.&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;button&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;disabled&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Submit Application&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Required:&lt;/strong&gt;&lt;br&gt;
It tells the browser that this field must have a value before the form can be submitted. If a user tries to click submit while a required field is empty, the browser blocks the submission and pops up a native warning message.&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;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"user_email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;**&lt;br&gt;
Readonly:**&lt;br&gt;
The readonly attribute is the most unique of the three and is often confused with disabled.Pre-filled data that the user needs to see (and maybe copy), but shouldn't alter. For example, an order summary page showing a calculated grand total or a system-generated account ID.&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;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"account_id"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"A99281"&lt;/span&gt; &lt;span class="na"&gt;readonly&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>html</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS Selectors</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Tue, 14 Jul 2026 02:26:29 +0000</pubDate>
      <link>https://dev.to/jaisurya/css-selectors-17gi</link>
      <guid>https://dev.to/jaisurya/css-selectors-17gi</guid>
      <description>&lt;p&gt;Here are the four foundational selectors you'll use 90% of the time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. The Universal Selector ( * )&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This selects everything on the HTML 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;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;border-box&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. The Type Selector ( element )&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML tags matching the name directly. This is best for setting baseline styles for paragraphs, headings, or buttons.&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="m"&gt;#333&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;line-height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1.5&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. The Class Selector ( .class )&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Any element with a matching &lt;code&gt;class&lt;/code&gt; attribute. Uses a dot ( . ).&lt;br&gt;
This is best for reusable styles you want to apply to multiple different elements.&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;.btn-primary&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background&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="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;white&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;HTML&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;button&lt;/span&gt; &lt;span class="nt"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;"btn-primary"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nt"&gt;Click&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;button&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. The ID Selector ( #id )&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A single element with a matching &lt;code&gt;id&lt;/code&gt; attribute. Uses a hashtag ( # ).Unique, one-of-a-kind elements on a page (like a specific sidebar or nav).&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;#main-header&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background&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="p"&gt;}&lt;/span&gt;

&lt;span class="nt"&gt;HTML&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;header&lt;/span&gt; &lt;span class="nt"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;"main-header"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;...&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;header&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>css</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Lists in HTML</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sat, 11 Jul 2026 03:37:37 +0000</pubDate>
      <link>https://dev.to/jaisurya/lists-in-html-2da2</link>
      <guid>https://dev.to/jaisurya/lists-in-html-2da2</guid>
      <description>&lt;p&gt;In HTML, lists are used to group related items together. There are different types of list in HTML. They are,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Unordered list:&lt;/strong&gt;&lt;br&gt;
   Used for items where the order does not matter. By default, these items are displayed with bullet points.&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;ul&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Water&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Coffee&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Tea&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Ordered list:&lt;/strong&gt;&lt;br&gt;
   Used for items where the sequence or order matters.By default, these are displayed with numbers.&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;ol&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Cake&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Chocalate&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt;Juice&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ol&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Description List&lt;/strong&gt;&lt;br&gt;
   Used for pair of terms and description.&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;dl&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;dt&amp;gt;&lt;/span&gt;HTML&lt;span class="nt"&gt;&amp;lt;/dt&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;dd&amp;gt;&lt;/span&gt;HyperText Markup Language&lt;span class="nt"&gt;&amp;lt;/dd&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;dt&amp;gt;&lt;/span&gt;CSS&lt;span class="nt"&gt;&amp;lt;/dt&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;dd&amp;gt;&lt;/span&gt;Cascading Style Sheets.&lt;span class="nt"&gt;&amp;lt;/dd&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/dl&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>html</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
