<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ali Hamza</title>
    <description>The latest articles on Forem by Ali Hamza (@ali_hamza_589ec7b3eb6688d).</description>
    <link>https://forem.com/ali_hamza_589ec7b3eb6688d</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%2F3939488%2Fffc69754-c900-4599-b972-2a8d900525dd.png</url>
      <title>Forem: Ali Hamza</title>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ali_hamza_589ec7b3eb6688d"/>
    <language>en</language>
    <item>
      <title>#css #webdev #beginners #codenewbie</title>
      <dc:creator>Ali Hamza</dc:creator>
      <pubDate>Sun, 24 May 2026 05:58:58 +0000</pubDate>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d/css-webdev-beginners-codenewbie-3akn</link>
      <guid>https://forem.com/ali_hamza_589ec7b3eb6688d/css-webdev-beginners-codenewbie-3akn</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;It is officially &lt;strong&gt;Day 5&lt;/strong&gt; of my journey toward the MERN stack! Yesterday, I learned how to add colors and fonts using CSS selectors. Today, I tackled the absolute core of CSS layout design: &lt;strong&gt;The Box Model&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before today, whenever I tried to move an element, it would randomly overlap or break the layout. Today, I finally understood &lt;em&gt;why&lt;/em&gt; that happens.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Key Learnings From Day 5
&lt;/h2&gt;

&lt;p&gt;I learned that the browser treats every single HTML element as a rectangular box. This box consists of four distinct layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Content:&lt;/strong&gt; The actual text, image, or video inside the element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Padding:&lt;/strong&gt; The transparent space &lt;em&gt;inside&lt;/em&gt; the element, between the content and its border. (Great for making buttons look spacious!).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Border:&lt;/strong&gt; The line wrapped around the padding and content (I experimented with &lt;code&gt;border-radius&lt;/code&gt; to make smooth, rounded corners).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Margin:&lt;/strong&gt; The transparent space &lt;em&gt;outside&lt;/em&gt; the element, separating it from other surrounding boxes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  ⚡ The Life-Saving Property: &lt;code&gt;box-sizing: border-box;&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;One major headache I faced was that adding padding or borders increased the actual width of my elements, ruining my layout math. &lt;/p&gt;

&lt;p&gt;Then I learned about a universal reset that senior developers use. Adding this to the top of my CSS file fixed everything instantly:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
css
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>#css #webdev #beginners #codenewbie</title>
      <dc:creator>Ali Hamza</dc:creator>
      <pubDate>Fri, 22 May 2026 12:24:53 +0000</pubDate>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d/css-webdev-beginners-codenewbie-5d9d</link>
      <guid>https://forem.com/ali_hamza_589ec7b3eb6688d/css-webdev-beginners-codenewbie-5d9d</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;It is &lt;strong&gt;Day 4&lt;/strong&gt; of my journey toward mastering the MERN stack. For the past three days, I was busy building skeletons with HTML. Today, I finally started bringing those dry structures to life using &lt;strong&gt;CSS (Cascading Style Sheets)&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;It felt amazing to move away from black text on a plain white screen and actually control how things look.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Key Learnings From Day 4
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The Three Ways to Add CSS
&lt;/h3&gt;

&lt;p&gt;I learned that there are three methods to attach styles to HTML, but one is clearly the professional standard:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Inline CSS:&lt;/strong&gt; Writing styles directly inside the HTML tag (makes code messy).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internal CSS:&lt;/strong&gt; Writing styles inside the &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag in the HTML head.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;External CSS (The Winner):&lt;/strong&gt; Creating a separate &lt;code&gt;.css&lt;/code&gt; file and linking it via &lt;code&gt;&amp;lt;link rel="stylesheet"&amp;gt;&lt;/code&gt;. I chose this method because it keeps my HTML clean and modular.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. CSS Syntax &amp;amp; Basic Selectors
&lt;/h3&gt;

&lt;p&gt;I mastered the basic anatomy of a CSS rule: &lt;code&gt;Selector { Property: Value; }&lt;/code&gt;. I experimented with three primary selectors today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Element Selector:&lt;/strong&gt; Targeting tags directly (e.g., &lt;code&gt;body&lt;/code&gt;, &lt;code&gt;h1&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Class Selector (&lt;code&gt;.&lt;/code&gt;):&lt;/strong&gt; The most reusable way to style elements (e.g., &lt;code&gt;.btn-primary&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ID Selector (&lt;code&gt;#&lt;/code&gt;):&lt;/strong&gt; For styling a single, unique element (e.g., &lt;code&gt;#main-header&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🛠️ What I Actually Built / Styled
&lt;/h2&gt;

&lt;p&gt;I took the semantic "About Me" page and navigation bar that I refactored yesterday and created an external &lt;code&gt;style.css&lt;/code&gt; file for it. &lt;/p&gt;

&lt;p&gt;Today, I didn't worry about complex layouts. Instead, I focused on the basics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changed the background color of the body to a clean, modern off-white.&lt;/li&gt;
&lt;li&gt;Styled my headings with different font families and dark gray tones.&lt;/li&gt;
&lt;li&gt;Turned my navigation list items (&lt;code&gt;&amp;lt;li&amp;gt;&lt;/code&gt;) into an inline layout so they sit horizontally like a real navbar, instead of a vertical bulleted list.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎯 My Goal for Tomorrow (Day 5)
&lt;/h2&gt;

&lt;p&gt;Tomorrow, I'm diving into the absolute core of CSS layouts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understanding the &lt;strong&gt;CSS Box Model&lt;/strong&gt; (Margin, Border, Padding, Content).&lt;/li&gt;
&lt;li&gt;Learning how space works between elements so my layout stops overlapping.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  💬 Let's Connect!
&lt;/h2&gt;

&lt;p&gt;To the senior engineers: What is your favorite CSS font stack for clean, readable code? To fellow beginners: Did you start with Inline CSS or go straight to External files?&lt;/p&gt;

&lt;p&gt;My styled code and repository are up to date on GitHub!&lt;br&gt;
[Links in the Comments]&lt;/p&gt;

&lt;p&gt;Keep coding! 🚀&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>#html #beginners #codenewbie #webdev</title>
      <dc:creator>Ali Hamza</dc:creator>
      <pubDate>Thu, 21 May 2026 12:31:09 +0000</pubDate>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d/html-beginners-codenewbie-webdev-5gm3</link>
      <guid>https://forem.com/ali_hamza_589ec7b3eb6688d/html-beginners-codenewbie-webdev-5gm3</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;It's &lt;strong&gt;Day 3&lt;/strong&gt; of my journey to master full-stack development (MERN stack). After learning forms and fixing my file paths yesterday, today was all about making my HTML code smart, accessible, and clean.&lt;/p&gt;

&lt;p&gt;Up until yesterday, I was using generic blocks like &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; for everything. Today, I unlocked the true power of &lt;strong&gt;Semantic HTML&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Key Learnings From Day 3
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. What is Semantic HTML?
&lt;/h3&gt;

&lt;p&gt;Semantic means "relating to meaning." Semantic tags tell both the browser and search engines (SEO) exactly what kind of content is inside them, instead of just being a blind container. &lt;/p&gt;

&lt;p&gt;Here are the tags I practiced today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;: Specifically for navigation links.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;: For the introductory content or banner at the top.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;: To group related content together (like an "About" or "Contact" area).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;: For the bottom copyright and link layout.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Building a Structured Navigation Bar
&lt;/h3&gt;

&lt;p&gt;Instead of randomly putting links (&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;), I learned the professional way to structure a header and navbar using lists:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
html
&amp;lt;header&amp;gt;
    &amp;lt;div class="logo"&amp;gt;MyBrand&amp;lt;/div&amp;gt;
    &amp;lt;nav&amp;gt;
        &amp;lt;ul&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;a href="#home"&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;a href="#about"&amp;gt;About&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;a href="#contact"&amp;gt;Contact&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
    &amp;lt;/nav&amp;gt;
&amp;lt;/header&amp;gt;
&amp;lt;footer&amp;gt;Footer&amp;lt;/footer&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>#Input #form #button #img</title>
      <dc:creator>Ali Hamza</dc:creator>
      <pubDate>Wed, 20 May 2026 12:23:16 +0000</pubDate>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d/input-form-button-img-2ab4</link>
      <guid>https://forem.com/ali_hamza_589ec7b3eb6688d/input-form-button-img-2ab4</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;This is officially &lt;strong&gt;Day 2&lt;/strong&gt; of my web development journey (as part of my MERN stack goal). After successfully laying down the foundational skeleton yesterday, today was about refinement and expansion.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 Key Learnings From Day 2
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The Trap of Absolute Image Paths
&lt;/h3&gt;

&lt;p&gt;Yesterday, I added my first image, but I used an &lt;strong&gt;Absolute Path&lt;/strong&gt; (pointing directly to a specific folder on my computer's drive). A fellow developer politely pointed out that while this works for me, it will fail for everyone else once the site is deployed.&lt;/p&gt;

&lt;p&gt;I learned about &lt;strong&gt;Relative Paths&lt;/strong&gt;, which define the image’s location relative to the HTML file. It makes the codebase portable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My Fix Today:&lt;/strong&gt;&lt;br&gt;
I took control of my asset organization! I moved the image into a dedicated &lt;code&gt;assets&lt;/code&gt; folder within my project structure and updated my &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; tag:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
html
&amp;lt;img src="D:\My Code Base\Quaid e Azam.jpg" alt="Quaid"&amp;gt;

&amp;lt;img src="assets/Quaid e Azam.jpg" alt="Quaid"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>beginners</category>
      <category>devjournal</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>#html #beginners #codenewbie #webdev</title>
      <dc:creator>Ali Hamza</dc:creator>
      <pubDate>Tue, 19 May 2026 06:46:36 +0000</pubDate>
      <link>https://forem.com/ali_hamza_589ec7b3eb6688d/html-beginners-codenewbie-webdev-2i96</link>
      <guid>https://forem.com/ali_hamza_589ec7b3eb6688d/html-beginners-codenewbie-webdev-2i96</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;Today marks the official &lt;strong&gt;Day 1&lt;/strong&gt; of my web development journey. I have decided to learn the MERN stack, and naturally, I am starting from the absolute foundation: &lt;strong&gt;HTML (HyperText Markup Language)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I believe the best way to retain what I learn is to write about it and share it with the community. So, here is a quick breakdown of what I managed to build and understand today.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 What I Learned Today
&lt;/h2&gt;

&lt;p&gt;Before writing code, I learned that HTML isn't a programming language—it's a markup language that acts as the skeleton or structure of any website. &lt;/p&gt;

&lt;p&gt;Here are the core concepts I mastered today:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Essential Tags
&lt;/h3&gt;

&lt;p&gt;I learned that HTML uses tags enclosed in angle brackets (&lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt;), and most of them come in pairs (an opening tag and a closing tag).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;: Headings (where &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; is the biggest and most important).&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;: Paragraphs for adding regular text.&lt;/li&gt;
&lt;li&gt;  &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;: Anchor tags for adding links to other websites.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. The Boilerplate Structure
&lt;/h3&gt;

&lt;p&gt;Every HTML document needs a specific structural setup to tell the browser how to read it. I learned how to set up the basic skeleton:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
html
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;title&amp;gt;My First Webpage&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Hello, World!&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;This is officially my first day learning HTML.&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

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