<?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: Afiya Siddiqui</title>
    <description>The latest articles on DEV Community by Afiya Siddiqui (@afiya).</description>
    <link>https://dev.to/afiya</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3463339%2Fb503c082-8b57-426a-a85d-5895b9891e7a.jpg</url>
      <title>DEV Community: Afiya Siddiqui</title>
      <link>https://dev.to/afiya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/afiya"/>
    <language>en</language>
    <item>
      <title>Breaking the Loop: How I Finally Stopped Restarting Web Development</title>
      <dc:creator>Afiya Siddiqui</dc:creator>
      <pubDate>Thu, 01 Jan 2026 09:43:31 +0000</pubDate>
      <link>https://dev.to/afiya/breaking-the-loop-how-i-finally-stopped-restarting-web-development-1pl7</link>
      <guid>https://dev.to/afiya/breaking-the-loop-how-i-finally-stopped-restarting-web-development-1pl7</guid>
      <description>&lt;p&gt;If you looked at my laptop's file history, you'd see a tragedy in three parts.&lt;br&gt;
There's a folder from 2023 named "Learn to Code." There's another from early 2024 named "Web Dev Authentic." And there's a third one, created just a few months ago, named "Final Attempt."&lt;br&gt;
Inside every single one of them is the same file: index.html. And inside that file is the same line of code: &lt;/p&gt;
&lt;h1&gt;Hello World&lt;/h1&gt;.&lt;br&gt;
For the longest time, I was stuck in the "Tutorial Hell" loop. I would start learning with high motivation, watch three hours of videos, and feel like a hacker. Then, reality would hit. Midterms would arrive, university assignments would pile up, or I'd just get tired. I'd take a two-week break.&lt;br&gt;
When I came back, I would feel like I had forgotten everything. Panic would set in. "I can't remember the difference between a div and a span. I better start over to make sure I get the basics right."&lt;br&gt;
So, I would delete the folder. I would restart the course. I would type "Hello World" again.&lt;br&gt;
This is the confession of a serial restarter. But this post is different because, for the first time in two years, I didn't hit delete. I finished HTML&lt;br&gt;
Being a university student learning to code on the side is a specific kind of difficult. We aren't just battling laziness; we are battling cognitive load.&lt;br&gt;
When you spend all day studying for a Calculus or Literature exam, your brain is fried. The idea of sitting down to learn the syntax of an ordered list feels impossible.&lt;br&gt;
My mistake was trying to treat coding like a university cram session. I would try to study it for four hours on a Saturday. Then, when exams hit, I did zero hours for a month. That gap is what killed my progress. It created the "amnesia" that made me want to restart.&lt;br&gt;
How I Finally Finished HTML&lt;br&gt;
I stopped trying to memorize every tag. In my previous attempts, I thought I was a "fake" developer if I had to Google how to make a table. This time, I accepted that even seniors Google things.&lt;br&gt;
I focused on the structure, not the syntax. I learned that HTML is just a skeleton. It's the bones of the house. Once I understood the parent-child relationship of elements, I stopped worrying about memorizing the specific spelling of every attribute.&lt;br&gt;
I built a messy, ugly, unstyled webpage. It had no colors. The font was Times New Roman. But it was done. And I didn't delete it.&lt;br&gt;
My Advice to Fellow Students&lt;br&gt;
If you are a student stuck in the same restart loop, here is what I've learned:&lt;br&gt;
Don't "Clean Slate": If you take a break for exams, don't start over when you come back. Pick up exactly where you left off, even if you feel lost. The confusion will clear up in 20 minutes.&lt;br&gt;
Build, Don't Watch: You can't learn to ride a bike by watching YouTube videos of people riding bikes. You have to type the code.&lt;br&gt;
20 Minutes is Enough: You don't need 4 hours. 20 minutes of coding between classes keeps the memory fresh.

&lt;p&gt;My journey isn't over. In fact, the hard part is just starting. But the folder on my desktop isn't called "Final Attempt" anymore. It's just called "My Projects."&lt;br&gt;
And that's enough for me.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>web3</category>
      <category>seo</category>
    </item>
    <item>
      <title>Unboxing CSS: Four Surprising Truths About How Web Layouts Really Work</title>
      <dc:creator>Afiya Siddiqui</dc:creator>
      <pubDate>Thu, 01 Jan 2026 09:13:03 +0000</pubDate>
      <link>https://dev.to/afiya/unboxing-css-four-surprising-truths-about-how-web-layouts-really-work-300p</link>
      <guid>https://dev.to/afiya/unboxing-css-four-surprising-truths-about-how-web-layouts-really-work-300p</guid>
      <description>&lt;p&gt;If you've ever tried designing a web page and wondered why elements don't align perfectly, chances are the CSS Box Model is behind it. Understanding this fundamental concept is crucial for any front-end developer or designer seeking precise control over layouts and visual structure.&lt;br&gt;
What is the CSS Box Model?&lt;br&gt;
The CSS Box Model is the blueprint of how every HTML element is rendered on a web page. No matter if it's text, images, or interactive graphics, every element is treated as a rectangular box. Learning how this box is structured enables developers to accurately manipulate spacing, borders, and alignment, ensuring your designs appear exactly as intended.&lt;br&gt;
The Four Layers of the Box Model&lt;br&gt;
Every element in CSS has four layers, each wrapping around the previous:&lt;br&gt;
Content: The innermost part, containing text, images, or other media.&lt;br&gt;
Padding: The space between the content and the border - think of it as the element's internal cushion.&lt;br&gt;
Border: Surrounds the padding and content; it can be visible or invisible.&lt;br&gt;
Margin: The outermost layer, controlling the space between this element and its neighbours.&lt;/p&gt;

&lt;p&gt;Understanding these layers is key to creating layouts that don't feel cramped or misaligned.&lt;br&gt;
Borders: Adding Structure and Style&lt;br&gt;
Borders define the edges of an element and can be fully customised:&lt;br&gt;
Style, Width, and Color: From solid to dotted or dashed, you can define the appearance and thickness of borders.&lt;br&gt;
Shorthand Notation: Write less code with syntax like border: solid brown 5px; which sets style, color, and width in one line.&lt;br&gt;
Directional Borders: Apply borders to specific sides using border-top, border-left, etc.&lt;br&gt;
Border Radius: Round the corners of your boxes with border-radius, either uniformly or individually (border-top-left-radius)&lt;/p&gt;

&lt;p&gt;Borders aren't just decorative - they help define hierarchy, separation, and focus on your page.&lt;br&gt;
Padding vs. Margin: Controlling Space&lt;br&gt;
Many beginners confuse padding and margin, but they serve distinct purposes:&lt;br&gt;
Padding: Adds space inside the border, between the content and its frame.&lt;br&gt;
Margin: Adds space outside the border, separating the element from others.&lt;/p&gt;

&lt;p&gt;Both properties accept multiple formats:&lt;br&gt;
Single value: Applies the same spacing to all sides.&lt;br&gt;
Two values: First value → top/bottom, second → left/right.&lt;br&gt;
Four values: Control each side individually in the order: Top, Right, Bottom, Left.&lt;/p&gt;

&lt;p&gt;Mastering these can prevent overlapping elements and messy layouts.&lt;br&gt;
Height, Width, and Element Behavior&lt;br&gt;
While you can set a box's dimensions using height and width, not all elements behave the same. For example, &lt;span&gt; tags are inline by default, so applying height and width may not visually affect them. Knowing the difference between inline, block, and inline-block elements is crucial for effective layout design.&lt;br&gt;
Modern Development Best Practices&lt;br&gt;
Reset Default Styles: Browsers add default padding and margins to elements, which can break layouts. Using the universal selector (* { margin: 0; padding: 0; }) gives you consistent control.&lt;br&gt;
Use Developer Tools: Inspect Element allows you to visualise the box model in real-time. You can see exactly how content, padding, border, and margin interact - making debugging and design adjustments faster and more precise.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;br&gt;
The CSS Box Model is the cornerstone of web layout architecture. By mastering its four layers, understanding padding vs. margin, and leveraging borders and dimension properties, designers and developers gain full control over the appearance and spacing of their elements. Whether you're creating a minimalist landing page or a complex dashboard, the box model ensures your designs are clean, precise, and visually appealing.&lt;/p&gt;

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