<?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: Miguel Ouma</title>
    <description>The latest articles on DEV Community by Miguel Ouma (@miguel_ouma_aa1c6e6377ec9).</description>
    <link>https://dev.to/miguel_ouma_aa1c6e6377ec9</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4073223%2Fb3c99c76-506e-4c99-976f-fb8c93216eb4.png</url>
      <title>DEV Community: Miguel Ouma</title>
      <link>https://dev.to/miguel_ouma_aa1c6e6377ec9</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miguel_ouma_aa1c6e6377ec9"/>
    <language>en</language>
    <item>
      <title>Title: Why Semantic HTML and Accessibility</title>
      <dc:creator>Miguel Ouma</dc:creator>
      <pubDate>Tue, 11 Aug 2026 13:53:29 +0000</pubDate>
      <link>https://dev.to/miguel_ouma_aa1c6e6377ec9/title-why-semantic-html-and-accessibility-2m3c</link>
      <guid>https://dev.to/miguel_ouma_aa1c6e6377ec9/title-why-semantic-html-and-accessibility-2m3c</guid>
      <description>&lt;p&gt;Matter: Lessons From My Portfolio Audit&lt;/p&gt;

&lt;p&gt;Introduction&lt;/p&gt;

&lt;p&gt;When building web applications, it is easy to default to using &lt;/p&gt; elements for everything. However, writing clean, semantic HTML and prioritizing web accessibility (a11y) makes websites more navigable for users, screen readers, and search engine crawlers alike. In this post, I will break down why semantic HTML matters, share a before-and-after refactoring example, and highlight key accessibility fixes from my recent portfolio audit.

&lt;ol&gt;
&lt;li&gt;What is Semantic HTML and Why Does It Matter?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Semantic HTML means using HTML markup to reinforce the meaning or context of the content rather than just defining its appearance. Elements like &lt;/p&gt;, , , , and  tell both browsers and assistive technologies (such as screen readers) exactly what purpose a section serves.

&lt;p&gt;Key benefits include:&lt;/p&gt;

&lt;p&gt;Accessibility: Screen readers can easily jump between regions (e.g., directly to &lt;/p&gt; or ).

&lt;p&gt;SEO Benefits: Search engines better understand content hierarchy and context.&lt;/p&gt;

&lt;p&gt;Maintainability: Clean code structure makes collaboration and debugging significantly easier.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Before &amp;amp; After: Semantic HTML Refactoring&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is an example of refactoring non-semantic code into semantic HTML:&lt;/p&gt;

&lt;p&gt;Before (Non-Semantic):&lt;/p&gt;

&lt;p&gt;HTML&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    Home
    About





    Welcome
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;After (Semantic):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;HTML&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    &amp;lt;ul&amp;gt;
        &amp;lt;li&amp;gt;&amp;lt;a href="index.html"&amp;gt;Home&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;&amp;lt;a href="about.html"&amp;gt;About&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
    &amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;br&gt;
    &lt;br&gt;
        &lt;h1&gt;Welcome&lt;/h1&gt;
&lt;br&gt;
    &lt;br&gt;


&lt;ol&gt;
&lt;li&gt;Key Accessibility Fixes from My Portfolio Audit&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;During an accessibility audit of my portfolio using Chrome DevTools Lighthouse, I identified and fixed three critical issues:&lt;/p&gt;

&lt;p&gt;Adding Image Alt Attributes: Images lacked descriptive alt text. Adding descriptive attributes allows screen readers to announce image context to visually impaired users.&lt;/p&gt;

&lt;p&gt;Explicit Form Labels: Ensured every form input was explicitly paired with a  element using matching for and id attributes.&lt;/p&gt;

&lt;p&gt;Language Declaration: Added lang="en" to the  root tag to help screen readers select the correct text-to-speech pronunciation engine.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Building accessible, semantic web pages from day one ensures that the web remains inclusive for everyone.&lt;/p&gt;

&lt;p&gt;Check out my live portfolio hosted on GitHub Pages:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://pilotjuen-hash.github.io/iyf-s11-week-01-pilotjuen-hash/" rel="noopener noreferrer"&gt;https://pilotjuen-hash.github.io/iyf-s11-week-01-pilotjuen-hash/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
