<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oscar Kipngetich Ronoh on Medium]]></title>
        <description><![CDATA[Stories by Oscar Kipngetich Ronoh on Medium]]></description>
        <link>https://medium.com/@ronohoscar?source=rss-88824e9d00ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Wb3KjS9Ns7_sng1HqcgSRw.jpeg</url>
            <title>Stories by Oscar Kipngetich Ronoh on Medium</title>
            <link>https://medium.com/@ronohoscar?source=rss-88824e9d00ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:14:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ronohoscar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Semantic HTML]]></title>
            <link>https://ronohoscar.medium.com/semantic-html-bf4d0b1a79c0?source=rss-88824e9d00ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf4d0b1a79c0</guid>
            <category><![CDATA[semantic-html]]></category>
            <dc:creator><![CDATA[Oscar Kipngetich Ronoh]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 07:47:06 GMT</pubDate>
            <atom:updated>2025-10-15T09:24:34.035Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JCO8b081fzGzDml1atLNDw.jpeg" /><figcaption>The Power of Semantic HTML: Why It Matters and How to Use It</figcaption></figure><p>If you’ve ever found yourself wrapping everything in &lt;div&gt;s and &lt;span&gt;s, you’re not alone. Many developers start that way — until they discover <strong>Semantic HTML</strong>, a small shift in writing markup that brings <strong>massive benefits in accessibility, SEO, and maintainability</strong>.</p><p>In this article, we’ll break down what Semantic HTML is, why it matters, the most important semantic elements you should be using, and how to apply them in real-world projects — including a <strong>fully semantic blog layout you can copy and use today</strong>.</p><h3>What Is Semantic HTML?</h3><p><strong>Semantic HTML</strong> refers to using HTML elements that <strong>describe their purpose and meaning</strong>, rather than generic containers like &lt;div&gt; or &lt;span&gt;. For example:</p><p>Non-Semantic Semantic Equivalent &lt;div id=&quot;header&quot;&gt; &lt;header&gt; &lt;div class=&quot;nav&quot;&gt; &lt;nav&gt; &lt;div class=&quot;footer&quot;&gt; &lt;footer&gt;</p><p>These semantic tags tell <strong>browsers</strong>, <strong>screen readers</strong>, and <strong>developers</strong> what role each part of the page plays. The result? Cleaner structure, improved accessibility, and a better developer experience.</p><h3>Why Semantic HTML Matters</h3><p><strong>Accessibility</strong> — Screen readers rely on element roles (like header, nav, main, etc.) to let users jump between sections efficiently.</p><p><strong>SEO</strong> — Search engines interpret semantic structure to better understand content hierarchy, which can improve ranking and generate rich snippets.</p><p><strong>Maintainability</strong> — A well-structured document is easier to read, debug, and scale.</p><p><strong>Performance &amp; Compatibility</strong> — Many modern tools (including browser features and assistive tech) work best when markup is meaningful.</p><h3>Core Semantic Elements (and When to Use Them)</h3><p>Here’s a quick guide to the most essential semantic elements:</p><ul><li><strong>&lt;header&gt;</strong> — Intro content or navigation for a page/section (logo, site title, menus).</li><li><strong>&lt;nav&gt;</strong> — Contains navigation links (main menu, table of contents, pagination).</li><li><strong>&lt;main&gt;</strong> — The primary content of the page. Only <strong>one</strong> per document.</li><li><strong>&lt;section&gt;</strong> — A thematically grouped chunk of content <em>with its own heading</em>.</li><li><strong>&lt;article&gt;</strong> — A stand-alone piece (blog post, comment, news item).</li><li><strong>&lt;aside&gt;</strong> — Secondary or related content (sidebar, ads, related links).</li><li><strong>&lt;footer&gt;</strong> — Metadata about a section/page (author, copyright, related links).</li><li><strong>&lt;figure&gt; + </strong><strong>&lt;figcaption&gt;</strong> — Media with captions.</li><li><strong>&lt;time&gt;</strong> — Machine-readable dates.</li></ul><p>Inline semantics also matter:</p><ul><li><strong>&lt;strong&gt; / </strong><strong>&lt;em&gt;</strong> — Emphasis with meaning (not just bold/italic like &lt;b&gt;/&lt;i&gt;).</li><li><strong>&lt;abbr&gt;</strong> — Abbreviations with tooltips.</li><li><strong>&lt;blockquote&gt; / </strong><strong>&lt;q&gt;</strong> — Long and short quotations.</li></ul><h3>Section vs Article — When to Use What</h3><p>Use &lt;article&gt; when… Use &lt;section&gt; when… The content could stand alone (e.g. blog post, forum reply) You’re grouping topics inside a page (e.g. chapters, panels)</p><h3>Accessibility Best Practices (ARIA &amp; Landmarks)</h3><p>Semantic HTML already solves most accessibility concerns — but here are some key guidelines:</p><ul><li>Use <strong>only one </strong><strong>&lt;main&gt; per page</strong>.</li><li>Label multiple navs: &lt;nav aria-label=&quot;Footer navigation&quot;&gt;.</li><li>Add <strong>skip links</strong> for keyboard users:</li></ul><pre>&lt;a class=&quot;skip-link&quot; href=&quot;#main&quot;&gt;Skip to main content&lt;/a&gt;</pre><ul><li>Don’t use ARIA roles <strong>when native elements already cover it</strong>.</li></ul><h3>SEO and Headings</h3><p>Headings (&lt;h1&gt;–&lt;h6&gt;) create the content hierarchy. Follow these rules:</p><ul><li>One &lt;h1&gt; per page (usually the title).</li><li>Nest headings logically: &lt;h2&gt; inside &lt;article&gt;, &lt;h3&gt; inside &lt;section&gt;, etc.</li></ul><p>Search engines understand your structure better when semantic tags and headings are used together.</p><h3>Common Mistakes to Avoid</h3><p>Overusing &lt;div&gt;s when semantic tags exist</p><p>Skipping heading levels (&lt;h1&gt; → &lt;h4&gt; directly)</p><p>Multiple &lt;main&gt; elements</p><p>Using &lt;b&gt; / &lt;i&gt; where &lt;strong&gt; / &lt;em&gt; would add meaning</p><p>Using &lt;section&gt; without headings</p><h3>Styling Semantic Elements (Yes, You Can!)</h3><p>Semantic elements behave just like &lt;div&gt;s when it comes to styling:</p><pre>&lt;header class=&quot;site-header&quot;&gt;<br>  &lt;h1&gt;My Blog&lt;/h1&gt;<br>  &lt;nav class=&quot;main-nav&quot;&gt;…&lt;/nav&gt;<br>&lt;/header&gt;</pre><p>You can still apply custom classes and CSS — but the <strong>meaning remains intact</strong> even without styling.</p><h3>Full Project Example: Semantic Blog Layout</h3><p>Want to see Semantic HTML in action? Below is a complete blog layout you can copy into index.html and run.</p><pre>[Code block intentionally preserved — see full layout below in the next section.]</pre><h3>Conclusion</h3><p>Semantic HTML isn’t just “nice to have” — it’s the backbone of <strong>accessible, maintainable, and search-friendly web development</strong>.</p><p>Start small:</p><ul><li>Replace &lt;div id=&quot;header&quot;&gt; with &lt;header&gt;</li><li>Wrap blog posts in &lt;article&gt;</li><li>Use &lt;main&gt; for your page’s core content</li></ul><p>Over time, your markup will become cleaner, more professional, and future-proof.</p><p><strong>Your HTML shouldn’t just <em>look</em> right — it should <em>mean</em> something.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf4d0b1a79c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Tip]]></title>
            <link>https://ronohoscar.medium.com/html-tip-994e69663873?source=rss-88824e9d00ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/994e69663873</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[website-design]]></category>
            <dc:creator><![CDATA[Oscar Kipngetich Ronoh]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 12:39:47 GMT</pubDate>
            <atom:updated>2022-04-11T12:39:47.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>The HTML &lt;mark&gt; tag is used to mark or highlight text that is of special interest or relevance in an HTML document. Browsers often render marked text as yellow but you can style it using CSS.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_ZV4NUGzvvhfGy0DxP8mw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=994e69663873" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>