<?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[Semantic tags]]></title><description><![CDATA[Semantic tags]]></description><link>https://semantic-tags.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 22 Oct 2026 19:34:49 GMT</lastBuildDate><atom:link href="https://semantic-tags.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Understanding Semantic HTML — Cleaner & Accessible Web Pages]]></title><description><![CDATA[Learn how to use semantic HTML tags like <header>, <nav>, <article>, and <aside> to build accessible, SEO-friendly, and well-structured web pages. Real…]]></description><link>https://semantic-tags.hashnode.dev/understanding-semantic-html-cleaner-and-accessible-web-pages</link><guid isPermaLink="true">https://semantic-tags.hashnode.dev/understanding-semantic-html-cleaner-and-accessible-web-pages</guid><category><![CDATA[HTML5]]></category><category><![CDATA[semantichtml]]></category><category><![CDATA[SEO]]></category><dc:creator><![CDATA[krishan]]></dc:creator><pubDate>Mon, 07 Apr 2025 13:18:11 GMT</pubDate><content:encoded><![CDATA[<hr />
<p>This week I explored <strong>Semantic HTML</strong> as part of my frontend learning journey.</p>
<p>📌 <strong>What is Semantic HTML?</strong></p>
<p>Semantic HTML uses tags that convey meaning about the content inside them. Instead of generic <code>&lt;div&gt;</code>s and <code>&lt;span&gt;</code>s, you use:</p>
<ul>
<li><p><code>&lt;header&gt;</code> — intro/header content</p>
</li>
<li><p><code>&lt;nav&gt;</code> — site navigation</p>
</li>
<li><p><code>&lt;section&gt;</code> — grouped content sections</p>
</li>
<li><p><code>&lt;article&gt;</code> — independent content like blog posts or product cards</p>
</li>
<li><p><code>&lt;aside&gt;</code> — related or side content (like sidebars)</p>
</li>
<li><p><code>&lt;footer&gt;</code> — footer content</p>
</li>
<li><p><code>&lt;figure&gt;</code> &amp; <code>&lt;figcaption&gt;</code> — for images, diagrams, or code blocks with captions</p>
</li>
</ul>
<p>✅ <strong>Why Use Semantic HTML?</strong></p>
<ul>
<li><p><strong>Accessibility</strong>: Helps screen readers and assistive tech understand content structure</p>
</li>
<li><p><strong>SEO</strong>: Search engines can better interpret your page</p>
</li>
<li><p><strong>Maintainability</strong>: Cleaner, more meaningful code for developers</p>
</li>
</ul>
<p>🧪 <strong>Practice</strong></p>
<p>I created a simple blog layout using only semantic tags. Here's a quick example using <code>&lt;article&gt;</code> to group independent content:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">article</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>Google Chrome<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Google Chrome is a web browser developed by Google, released in 2008.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">article</span>&gt;</span>
</code></pre>
<p>You can also nest them, like this:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">article</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"all-browsers"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Most Popular Browsers<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">article</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"browser"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>Mozilla Firefox<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>Open-source browser by Mozilla. Second most popular since 2018.<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">article</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">article</span>&gt;</span>
</code></pre>
<p>And here’s how I used <code>&lt;aside&gt;</code> for extra, relevant content:</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">aside</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>The Epcot Center is a theme park at Walt Disney World Resort...<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">aside</span>&gt;</span>
</code></pre>
<p>📂 <strong>GitHub</strong>: <a target="_blank" href="https://github.com/krish868496/Frontend-Elevate/tree/main/week%201/Day%201">Semantic HTML Practice + Notes</a><br />(Feel free to clone the repo and follow along!)</p>
<p>Stay tuned as I continue sharing what I learn each week. 🙌</p>
<p>#frontenddevelopment #html #semantic #a11y #buildinpublic #webdev #krishanCode</p>
]]></content:encoded></item></channel></rss>