<?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: Stacy Otieno</title>
    <description>The latest articles on DEV Community by Stacy Otieno (@stacy_otieno_9130c039d330).</description>
    <link>https://dev.to/stacy_otieno_9130c039d330</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%2F3239867%2Fe613350d-6cb4-4907-8917-af94afed1917.jpg</url>
      <title>DEV Community: Stacy Otieno</title>
      <link>https://dev.to/stacy_otieno_9130c039d330</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stacy_otieno_9130c039d330"/>
    <language>en</language>
    <item>
      <title>Improving Web Accessibility Through Semantic HTML: Lessons from My Personal Portfolio</title>
      <dc:creator>Stacy Otieno</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:07:37 +0000</pubDate>
      <link>https://dev.to/stacy_otieno_9130c039d330/improving-web-accessibility-through-semantic-html-lessons-from-my-personal-portfolio-4khc</link>
      <guid>https://dev.to/stacy_otieno_9130c039d330/improving-web-accessibility-through-semantic-html-lessons-from-my-personal-portfolio-4khc</guid>
      <description>&lt;p&gt;Introduction&lt;br&gt;
As I continue learning web development, I have discovered that building a website is not just about making it visually appealing. It is also about ensuring that everyone, including people with disabilities, can access and interact with its content.&lt;br&gt;
Recently, I conducted an accessibility audit on my personal portfolio website using Google Chrome Lighthouse and the WAVE Web Accessibility Evaluation Tool. This exercise helped me understand the importance of semantic HTML and how small changes in code can improve the accessibility of a website.&lt;/p&gt;

&lt;p&gt;What Is Semantic HTML and Why Does It Matter?&lt;br&gt;
Semantic HTML refers to using HTML elements that clearly describe the meaning and purpose of the content they contain.&lt;br&gt;
For example, instead of using generic &lt;/p&gt; elements for everything, developers can use elements such as , , , , and .&lt;br&gt;
Semantic HTML matters because it:&lt;br&gt;
• Helps screen readers understand and navigate website content.&lt;br&gt;
• Improves the overall structure and readability of HTML.&lt;br&gt;
• Makes websites easier to maintain.&lt;br&gt;
• Helps browsers and search engines understand the content.

&lt;p&gt;Before and After: Non-Semantic vs Semantic HTML&lt;br&gt;
During my learning process, I explored how semantic elements improve the structure of a webpage.&lt;br&gt;
Before: Non-semantic HTML&lt;/p&gt;


&lt;h1&gt;Welcome to My Portfolio&lt;/h1&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h3&amp;gt;About Me&amp;lt;/h3&amp;gt;
&amp;lt;p&amp;gt;I am Stacy Otieno.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;After: Semantic HTML&lt;/p&gt;


&lt;h1&gt;Welcome to My Portfolio&lt;/h1&gt;


&lt;br&gt;
  &lt;br&gt;
    &lt;h2&gt;About Me&lt;/h2&gt;
&lt;br&gt;
    &lt;p&gt;I am Stacy Otieno.&lt;/p&gt;
&lt;br&gt;
  &lt;br&gt;
&lt;br&gt;
The improved version uses meaningful HTML elements and follows a logical heading hierarchy.&lt;br&gt;
Accessibility Issues I Identified and Fixed&lt;br&gt;
During my audit, I identified several areas that needed improvement.

&lt;ol&gt;
&lt;li&gt;Image Alternative Text
My portfolio image initially had a short alternative description: "Stacy".
I changed it to:
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/knt.jpg" alt="Photograph of Stacy Otieno" width="800" height="400"&gt;
This provides a more meaningful description for users who rely on screen readers.&lt;/li&gt;
&lt;li&gt;Incorrect Heading Hierarchy
My webpage jumped directly from an &lt;h1&gt; to an &lt;/h1&gt;
&lt;h3&gt;. This disrupted the logical structure of the page.
I introduced appropriate &lt;/h3&gt;
&lt;h2&gt; headings to ensure the hierarchy followed a logical order.&lt;/h2&gt;
&lt;/li&gt;
&lt;li&gt;Descriptive Links
My email link initially displayed only my name, "Stacy". I changed the link text to "Email Stacy Otieno" so users could understand its purpose more easily.
&lt;a href="mailto:your-email@example.com"&gt;
Email Stacy Otieno
&lt;/a&gt;
Testing and Results
After implementing the improvements, I tested my portfolio using:
• Google Chrome Lighthouse
• WAVE Web Accessibility Evaluation Tool
My final Lighthouse accessibility score was 89/100.
Although there is still room for improvement, the exercise helped me understand how accessibility testing can reveal problems that might otherwise go unnoticed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conclusion&lt;br&gt;
This exercise taught me that accessibility should be considered from the beginning of web development rather than treated as an afterthought.&lt;br&gt;
Using semantic HTML, meaningful alternative text, logical heading structures, and descriptive links makes websites more inclusive and easier to navigate.&lt;/p&gt;

&lt;p&gt;As I continue developing my programming skills, I intend to make accessibility an important part of every website I build.&lt;br&gt;
View my portfolio: [Insert your deployed GitHub Pages URL here]&lt;br&gt;
Connect with me: Stacy Otieno&lt;/p&gt;

</description>
      <category>programming</category>
      <category>semantic</category>
    </item>
  </channel>
</rss>
