<?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: MrDavis25</title>
    <description>The latest articles on DEV Community by MrDavis25 (@mrdavis25).</description>
    <link>https://dev.to/mrdavis25</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%2F3473838%2Fdde3c498-d108-4022-9939-4696a621ff37.png</url>
      <title>DEV Community: MrDavis25</title>
      <link>https://dev.to/mrdavis25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrdavis25"/>
    <language>en</language>
    <item>
      <title>How to implement Semantic HTML</title>
      <dc:creator>MrDavis25</dc:creator>
      <pubDate>Mon, 01 Sep 2025 17:24:54 +0000</pubDate>
      <link>https://dev.to/mrdavis25/how-to-implement-semantic-html-53fh</link>
      <guid>https://dev.to/mrdavis25/how-to-implement-semantic-html-53fh</guid>
      <description>&lt;p&gt;Implementing Semantic HTML: What I Learned&lt;/p&gt;

&lt;p&gt;Tags: Web development, Semantic html, SEO, Accessibility, A11y&lt;/p&gt;

&lt;p&gt;This is my blog on implementing semantic html . Before this I just used &lt;/p&gt; and &lt;span&gt; everywhere without thinking much. But now I learned about semantic HTML and I see it makes a difference not only for the browser but also for SEO and accessibility.



&lt;p&gt;What I Think Semantic HTML Means&lt;/p&gt;

&lt;p&gt;Semantic HTML is just using tags that describe what they are.&lt;/p&gt;

&lt;p&gt;Some examples I wrote down:&lt;/p&gt;

 = top of the page or section

 = the main content

 = links for navigation

 = one piece of content

 = a group of things that go together

 = side content

 = bottom of the page or section


Before I didn’t care about this. I just wanted the page to show something. But then I noticed with semantic tags it looks cleaner and also easier to understand.


---

My Example

Before (non semantic)


  
    &lt;a href="/"&gt;Home&lt;/a&gt;
    &lt;a href="/about"&gt;About&lt;/a&gt;
  



  
    Learning Semantic HTML
    This is my second assignment in programming.
  



  &lt;p&gt;© 2025 My Blog&lt;/p&gt;


This works but it looks messy to me now.


---

After (semantic)


  
    &lt;a href="/"&gt;Home&lt;/a&gt;
    &lt;a href="/about"&gt;About&lt;/a&gt;
  



&lt;h1&gt;Learning Semantic HTML&lt;/h1&gt;
&lt;br&gt;
    &lt;br&gt;
    &lt;br&gt;
      &lt;p&gt;This is my blog in implementing semantic html .&lt;/p&gt;
&lt;br&gt;
    &lt;br&gt;
  &lt;br&gt;



&lt;p&gt;© 2025 My Blog&lt;/p&gt;

&lt;p&gt;This looks much clearer. When I just read the code I can tell where the header, main content and footer are.&lt;/p&gt;




&lt;p&gt;Why It Matters&lt;/p&gt;

&lt;p&gt;SEO: search engines can tell what’s important on the page.&lt;/p&gt;

&lt;p&gt;Accessibility: people with screen readers can skip around to  or  quickly.&lt;/p&gt;

&lt;p&gt;Readability: even I can read my own code better.&lt;/p&gt;




&lt;p&gt;Mistakes I Made&lt;/p&gt;

&lt;p&gt;I tried to add 2  tags (but there should only be one).&lt;/p&gt;

&lt;p&gt;I used  without putting a heading inside it.&lt;/p&gt;

&lt;p&gt;I also wrote extra ARIA roles when I didn’t need to.&lt;/p&gt;




&lt;p&gt;How I Tested&lt;/p&gt;

&lt;p&gt;I used Lighthouse in Chrome and it gave me SEO and accessibility scores.&lt;/p&gt;

&lt;p&gt;I used Tab on the keyboard to move through links and check the flow.&lt;/p&gt;

&lt;p&gt;I also checked my HTML in the W3C Validator.&lt;/p&gt;




&lt;p&gt;My Takeaway&lt;/p&gt;

&lt;p&gt;I thought HTML was just about putting things on the page, but now I see structure matters a lot. Using semantic HTML makes the page better for search engines, for accessibility, and for me when I come back later.&lt;/p&gt;

&lt;p&gt;I’m still a beginner but I feel like I’m starting to write code the “right” way.&lt;br&gt;
Here is my GitHub link &lt;a href="https://github.com/MrDavis25" rel="noopener noreferrer"&gt;https://github.com/MrDavis25&lt;/a&gt;&lt;/p&gt;

&lt;/span&gt;

</description>
    </item>
  </channel>
</rss>
