<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Styling Your Web Journey]]></title><description><![CDATA[Styling Your Web Journey]]></description><link>https://styling-your-web-journey.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 15:20:07 GMT</lastBuildDate><atom:link href="https://styling-your-web-journey.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Styling Your Web Journey]]></title><description><![CDATA[Your First Brush with Style: A Beginner's Guide to CSS
Ever wonder how websites transform from plain black-and-white text into the vibrant, engaging experiences we love? That magic, my friends, is largely thanks to CSS. If HTML is the skeleton of a w...]]></description><link>https://styling-your-web-journey.hashnode.dev/styling-your-web-journey</link><guid isPermaLink="true">https://styling-your-web-journey.hashnode.dev/styling-your-web-journey</guid><category><![CDATA[HTML5]]></category><category><![CDATA[CSS]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[React]]></category><category><![CDATA[Angular]]></category><dc:creator><![CDATA[Ashish Kumar]]></dc:creator><pubDate>Sat, 21 Jun 2025 08:14:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1750493288676/df470839-bf63-4e8f-9be8-b42b02c36cc5.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-your-first-brush-with-style-a-beginners-guide-to-css">Your First Brush with Style: A Beginner's Guide to CSS</h2>
<p>Ever wonder how websites transform from plain black-and-white text into the vibrant, engaging experiences we love? That magic, my friends, is largely thanks to CSS. If HTML is the skeleton of a webpage, CSS (Cascading Style Sheets) is the skin, hair, and clothing – making it look good!</p>
<p>If you're just starting your web development journey, understanding CSS is a crucial step. Let's dive in!</p>
<h3 id="heading-what-exactly-is-css">What Exactly is CSS?</h3>
<p>At its core, <strong>CSS is a stylesheet language used to describe the presentation of a document written in HTML (or XML).</strong> Think of it as a set of instructions that tells your web browser <em>how</em> to display the HTML elements.</p>
<p>Without CSS, your webpages would look like something out of the early 90s: unstyled text, unformatted images, and a generally unappealing layout. CSS allows you to control:</p>
<ul>
<li><p><strong>Colors:</strong> Of text, backgrounds, borders.</p>
</li>
<li><p><strong>Fonts:</strong> Typeface, size, weight.</p>
</li>
<li><p><strong>Layout:</strong> How elements are positioned, spaced, and aligned.</p>
</li>
<li><p><strong>Animations &amp; Transitions:</strong> Making elements move and change smoothly.</p>
</li>
<li><p>And so much more!</p>
</li>
</ul>
<h3 id="heading-how-do-you-link-css-to-your-html-the-three-ways">How Do You Link CSS to Your HTML? (The Three Ways)</h3>
<p>There are three primary ways to apply CSS to your HTML documents. As a beginner, it's good to know all of them, though one stands out as the best practice.</p>
<h4 id="heading-1-inline-styles-avoid-for-most-cases">1. Inline Styles (Avoid for Most Cases)</h4>
<p>Inline styles are applied directly to individual HTML elements using the <code>style</code> attribute.</p>
<p>Pros: Quick for very specific, one-off changes.</p>
<p>Cons: Clutters your HTML, hard to manage, doesn't promote reusability.</p>
<p><strong>Example:</strong></p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">"color: blue; font-size: 16px;"</span>&gt;</span>This text is blue and 16px.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
</code></pre>
<h4 id="heading-2-internal-or-embedded-styles">2. Internal (or Embedded) Styles</h4>
<p>Internal styles are placed within a <code>&lt;style&gt;</code> tag inside the <code>&lt;head&gt;</code> section of your HTML document.</p>
<p>Pros: Good for single-page applications or when styles are unique to one page.</p>
<p>Cons: Not reusable across multiple pages, still mixes style with content to some extent.</p>
<p><strong>Example:</strong></p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>My Awesome Page<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="css">
        <span class="hljs-selector-tag">h1</span> {
            <span class="hljs-attribute">color</span>: green;
            <span class="hljs-attribute">text-align</span>: center;
        }
        <span class="hljs-selector-tag">p</span> {
            <span class="hljs-attribute">font-family</span>: Arial, sans-serif;
        }
    </span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Welcome to My Styled Page!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This is some content with internal styling.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<h4 id="heading-3-external-stylesheet-the-best-practice">3. External Stylesheet (The Best Practice!)</h4>
<p>This is the most common and recommended way to link CSS. You write all your CSS in a separate file (e.g., <code>style.css</code>) and link it to your HTML using the <code>&lt;link&gt;</code> tag in the <code>&lt;head&gt;</code> section.</p>
<p><strong>Pros:</strong></p>
<ul>
<li><p><strong>Separation of Concerns:</strong> Keeps your HTML clean and focused on structure, and your CSS focused on style.</p>
</li>
<li><p><strong>Reusability:</strong> The same CSS file can be linked to multiple HTML pages, ensuring consistent styling across your entire website.</p>
</li>
<li><p><strong>Maintainability:</strong> Easier to update and manage styles from a central location.</p>
</li>
</ul>
<p><strong>Example (</strong><code>index.html</code>):</p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>My External CSS Page<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">"stylesheet"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"style.css"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Hello from External CSS!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This paragraph is styled from a separate file.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"my-button"</span>&gt;</span>Click Me<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p><strong>Example (</strong><code>style.css</code>):</p>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-comment">/* This is a comment in CSS */</span>
<span class="hljs-selector-tag">body</span> {
    <span class="hljs-attribute">font-family</span>: <span class="hljs-string">'Segoe UI'</span>, Tahoma, Geneva, Verdana, sans-serif;
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#f4f4f4</span>;
    <span class="hljs-attribute">margin</span>: <span class="hljs-number">20px</span>;
}

<span class="hljs-selector-tag">h1</span> {
    <span class="hljs-attribute">color</span>: <span class="hljs-number">#333</span>;
    <span class="hljs-attribute">text-align</span>: center;
}

<span class="hljs-selector-tag">p</span> {
    <span class="hljs-attribute">color</span>: <span class="hljs-number">#555</span>;
    <span class="hljs-attribute">line-height</span>: <span class="hljs-number">1.6</span>;
}

<span class="hljs-selector-class">.my-button</span> {
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#007bff</span>;
    <span class="hljs-attribute">color</span>: white;
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">10px</span> <span class="hljs-number">15px</span>;
    <span class="hljs-attribute">border</span>: none;
    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">5px</span>;
    <span class="hljs-attribute">cursor</span>: pointer;
}
</code></pre>
<h3 id="heading-basic-css-selectors-targeting-elements">Basic CSS Selectors: Targeting Elements</h3>
<p>To apply styles, you first need to tell CSS <em>which</em> HTML element(s) you want to style. This is where <strong>selectors</strong> come in.</p>
<h4 id="heading-1-element-selector">1. Element Selector</h4>
<p>Targets all instances of a specific HTML element.</p>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-comment">/* Styles ALL &lt;p&gt; tags on the page */</span>
<span class="hljs-selector-tag">p</span> {
    <span class="hljs-attribute">color</span>: <span class="hljs-number">#666</span>;
    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">18px</span>;
}
</code></pre>
<h4 id="heading-2-class-selector">2. Class Selector</h4>
<p>Targets elements that have a specific <code>class</code> attribute. You can apply the same class to multiple elements, and an element can have multiple classes. Class names start with a dot (<code>.</code>).</p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"intro-text"</span>&gt;</span>Welcome to our site!<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"intro-text"</span>&gt;</span>Some more intro text.<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
</code></pre>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-comment">/* Styles any element with class="intro-text" */</span>
<span class="hljs-selector-class">.intro-text</span> {
    <span class="hljs-attribute">font-weight</span>: bold;
    <span class="hljs-attribute">text-transform</span>: uppercase;
}
</code></pre>
<h4 id="heading-3-id-selector">3. ID Selector</h4>
<p>Targets a <em>single</em> unique element with a specific <code>id</code> attribute. An ID should be unique on a page. ID names start with a hash (<code>#</code>).</p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"main-header"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>My Website<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-comment">/* Styles the element with id="main-header" */</span>
<span class="hljs-selector-id">#main-header</span> {
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#eee</span>;
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">20px</span>;
    <span class="hljs-attribute">border-bottom</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#ccc</span>;
}
</code></pre>
<h3 id="heading-common-css-properties-your-styling-toolbox">Common CSS Properties: Your Styling Toolbox</h3>
<p>Once you've selected an element, you apply styles using <strong>properties</strong> and <strong>values</strong>.</p>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-selector-tag">selector</span> {
    <span class="hljs-attribute">property</span>: value;
    <span class="hljs-attribute">property</span>: value;
    <span class="hljs-comment">/* ... more properties */</span>
}
</code></pre>
<p>Here are some fundamental properties you'll use constantly:</p>
<ul>
<li><p><code>color</code>: Sets the color of the text. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">color</span>: <span class="hljs-selector-tag">red</span>;
  <span class="hljs-selector-tag">color</span>: <span class="hljs-selector-id">#336699</span>; <span class="hljs-comment">/* Hex code */</span>
  <span class="hljs-selector-tag">color</span>: <span class="hljs-selector-tag">rgb</span>(255, 0, 0); <span class="hljs-comment">/* RGB value */</span>
</code></pre>
</li>
<li><p><code>font-size</code>: Controls the size of the text. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">font-size</span>: 16<span class="hljs-selector-tag">px</span>;
  <span class="hljs-selector-tag">font-size</span>: 1<span class="hljs-selector-class">.2em</span>; <span class="hljs-comment">/* Relative to parent's font-size */</span>
</code></pre>
</li>
<li><p><code>background-color</code>: Sets the background color of an element. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">background-color</span>: <span class="hljs-selector-tag">lightblue</span>;
</code></pre>
</li>
<li><p><code>margin</code>: Creates space <em>outside</em> an element's border, pushing other elements away. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">margin</span>: 10<span class="hljs-selector-tag">px</span>; <span class="hljs-comment">/* All sides */</span>
  <span class="hljs-selector-tag">margin</span>: 10<span class="hljs-selector-tag">px</span> 20<span class="hljs-selector-tag">px</span>; <span class="hljs-comment">/* Top/bottom 10px, Left/right 20px */</span>
  <span class="hljs-selector-tag">margin-top</span>: 15<span class="hljs-selector-tag">px</span>;
</code></pre>
</li>
<li><p><code>padding</code>: Creates space <em>inside</em> an element's border, between the content and the border. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">padding</span>: 15<span class="hljs-selector-tag">px</span>; <span class="hljs-comment">/* All sides */</span>
  <span class="hljs-selector-tag">padding</span>: 5<span class="hljs-selector-tag">px</span> 10<span class="hljs-selector-tag">px</span> 15<span class="hljs-selector-tag">px</span> 20<span class="hljs-selector-tag">px</span>; <span class="hljs-comment">/* Top, Right, Bottom, Left */</span>
  <span class="hljs-selector-tag">padding-left</span>: 20<span class="hljs-selector-tag">px</span>;
</code></pre>
</li>
<li><p><code>text-align</code>: Aligns the inline content (like text) within an element. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">text-align</span>: <span class="hljs-selector-tag">center</span>;
  <span class="hljs-selector-tag">text-align</span>: <span class="hljs-selector-tag">left</span>;
  <span class="hljs-selector-tag">text-align</span>: <span class="hljs-selector-tag">right</span>;
</code></pre>
</li>
<li><p><code>width</code> / <code>height</code>: Sets the dimensions of an element. CSS</p>
<pre><code class="lang-css">  <span class="hljs-selector-tag">width</span>: 300<span class="hljs-selector-tag">px</span>;
  <span class="hljs-selector-tag">height</span>: 100<span class="hljs-selector-tag">px</span>;
  <span class="hljs-selector-tag">width</span>: 50%; <span class="hljs-comment">/* 50% of parent's width */</span>
</code></pre>
</li>
</ul>
<h3 id="heading-your-first-styled-page-putting-it-all-together">Your First Styled Page - Putting It All Together!</h3>
<p>Let's create a simple example using what we've learned:</p>
<p><code>index.html</code>:</p>
<p>HTML</p>
<pre><code class="lang-xml"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span> <span class="hljs-attr">lang</span>=<span class="hljs-string">"en"</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">"UTF-8"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"viewport"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"width=device-width, initial-scale=1.0"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>My First Styled Page<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">"stylesheet"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"style.css"</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">header</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"main-header"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Welcome to My CSS Journey!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">header</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">section</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"intro-section"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This is a paragraph to introduce you to the power of CSS.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"highlight"</span>&gt;</span>Notice how different elements can have different styles!<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">section</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">footer</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span><span class="hljs-symbol">&amp;copy;</span> 2025 My Awesome Blog<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">footer</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p><code>style.css</code>:</p>
<p>CSS</p>
<pre><code class="lang-css"><span class="hljs-comment">/* General Body Styling */</span>
<span class="hljs-selector-tag">body</span> {
    <span class="hljs-attribute">font-family</span>: <span class="hljs-string">'Segoe UI'</span>, Arial, sans-serif;
    <span class="hljs-attribute">margin</span>: <span class="hljs-number">0</span>;
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">0</span>;
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#e0f2f7</span>; <span class="hljs-comment">/* Light blue background */</span>
    <span class="hljs-attribute">color</span>: <span class="hljs-number">#333</span>;
}

<span class="hljs-comment">/* Header Styling */</span>
<span class="hljs-selector-id">#main-header</span> {
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#007bff</span>; <span class="hljs-comment">/* Primary blue */</span>
    <span class="hljs-attribute">color</span>: white;
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">20px</span> <span class="hljs-number">0</span>;
    <span class="hljs-attribute">text-align</span>: center;
    <span class="hljs-attribute">box-shadow</span>: <span class="hljs-number">0</span> <span class="hljs-number">2px</span> <span class="hljs-number">4px</span> <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0.1</span>); <span class="hljs-comment">/* Subtle shadow */</span>
}

<span class="hljs-selector-id">#main-header</span> <span class="hljs-selector-tag">h1</span> {
    <span class="hljs-attribute">margin</span>: <span class="hljs-number">0</span>; <span class="hljs-comment">/* Remove default margin */</span>
    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">2.5em</span>;
}

<span class="hljs-comment">/* Section Styling */</span>
<span class="hljs-selector-class">.intro-section</span> {
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">40px</span> <span class="hljs-number">20px</span>;
    <span class="hljs-attribute">max-width</span>: <span class="hljs-number">800px</span>; <span class="hljs-comment">/* Limit content width */</span>
    <span class="hljs-attribute">margin</span>: <span class="hljs-number">20px</span> auto; <span class="hljs-comment">/* Center the section */</span>
    <span class="hljs-attribute">background-color</span>: white;
    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">8px</span>;
    <span class="hljs-attribute">box-shadow</span>: <span class="hljs-number">0</span> <span class="hljs-number">0</span> <span class="hljs-number">10px</span> <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,<span class="hljs-number">0.05</span>);
}

<span class="hljs-selector-class">.intro-section</span> <span class="hljs-selector-tag">p</span> {
    <span class="hljs-attribute">line-height</span>: <span class="hljs-number">1.6</span>;
    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">15px</span>;
}

<span class="hljs-selector-class">.highlight</span> {
    <span class="hljs-attribute">color</span>: <span class="hljs-number">#d9534f</span>; <span class="hljs-comment">/* Reddish color */</span>
    <span class="hljs-attribute">font-weight</span>: bold;
    <span class="hljs-attribute">font-style</span>: italic;
}

<span class="hljs-comment">/* Footer Styling */</span>
<span class="hljs-selector-tag">footer</span> {
    <span class="hljs-attribute">background-color</span>: <span class="hljs-number">#333</span>;
    <span class="hljs-attribute">color</span>: white;
    <span class="hljs-attribute">text-align</span>: center;
    <span class="hljs-attribute">padding</span>: <span class="hljs-number">15px</span> <span class="hljs-number">0</span>;
    <span class="hljs-attribute">margin-top</span>: <span class="hljs-number">30px</span>;
}
</code></pre>
<p>Save these two files in the same folder (e.g., <code>my-first-css-project/index.html</code> and <code>my-first-css-project/style.css</code>), then open <code>index.html</code> in your web browser. You'll see a beautifully styled page, all thanks to CSS!</p>
<h3 id="heading-whats-next">What's Next?</h3>
<p>This is just the tip of the iceberg! CSS is incredibly powerful. As you continue your journey, explore topics like:</p>
<ul>
<li><p><strong>The Box Model:</strong> Understanding how elements occupy space.</p>
</li>
<li><p><strong>Display Properties:</strong> <code>block</code>, <code>inline</code>, <code>inline-block</code>, and the mighty <code>flexbox</code> and <code>grid</code>.</p>
</li>
<li><p><strong>Positioning:</strong> <code>static</code>, <code>relative</code>, <code>absolute</code>, <code>fixed</code>.</p>
</li>
<li><p><strong>Responsive Design:</strong> Making your websites look good on all devices.</p>
</li>
</ul>
<p>Keep practising, keep experimenting, and don't be afraid to view the source code and styles of websites you admire. Happy styling!</p>
]]></content:encoded></item></channel></rss>