<?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: JMwaniki003</title>
    <description>The latest articles on DEV Community by JMwaniki003 (@jmwaniki003).</description>
    <link>https://dev.to/jmwaniki003</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%2F3467420%2Fa2857a83-da08-4aa5-91b5-afb4280de00d.png</url>
      <title>DEV Community: JMwaniki003</title>
      <link>https://dev.to/jmwaniki003</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jmwaniki003"/>
    <language>en</language>
    <item>
      <title>HTML</title>
      <dc:creator>JMwaniki003</dc:creator>
      <pubDate>Sat, 30 Aug 2025 14:26:11 +0000</pubDate>
      <link>https://dev.to/jmwaniki003/html-4j1b</link>
      <guid>https://dev.to/jmwaniki003/html-4j1b</guid>
      <description>&lt;p&gt;*&lt;strong&gt;&lt;em&gt;TECHNICAL ARTICLE&lt;/em&gt;&lt;/strong&gt;*&lt;br&gt;
How semantic html tags improve search engine &lt;/p&gt;

&lt;p&gt;Search engines like Google rely on semantic html to understand hierarchy context and meaning of your context. Using the right tags help with:&lt;br&gt;
&lt;strong&gt;Crawlability&lt;/strong&gt;: Bots easily navigate content sections(&lt;code&gt;main&lt;/code&gt;,&lt;code&gt;nav&lt;/code&gt;,&lt;code&gt;footer&lt;/code&gt;)&lt;br&gt;
&lt;strong&gt;Indexing accuracy&lt;/strong&gt;:Tags like &lt;code&gt;article&lt;/code&gt; &lt;br&gt;
 and &lt;code&gt;section&lt;/code&gt; provide structure for featured snippets.&lt;br&gt;
&lt;strong&gt;Rich results&lt;/strong&gt;: Correct semantics improve eligibility for structured data and featured snippets &lt;br&gt;
For accessibility &lt;br&gt;
Semantic html works with assistive technologies(like  screen readers) to provide logical reading order.It eliminates guess work by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enhancing keyboard Navigation 
Providing landmarks( ARIA roles are often auto-applied by semantic tags)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Key semantic elements for SEO&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;header&lt;/code&gt;defines header for page or section &lt;br&gt;
&lt;code&gt;nav&lt;/code&gt; Defines Navigation links&lt;br&gt;
&lt;code&gt;main&lt;/code&gt; main content area&lt;br&gt;
&lt;code&gt;article&lt;/code&gt; self contained content&lt;br&gt;
&lt;code&gt;section&lt;/code&gt; Thematic group of content &lt;br&gt;
&lt;code&gt;footer&lt;/code&gt; footer for page or section&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Semantic vs non-semantic approaches &lt;br&gt;
**&lt;br&gt;
**Non semantic approaches&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;div Id="top"&lt;/code&gt;&lt;br&gt;
    &lt;code&gt;div class=menu&lt;/code&gt;Home|About|contact&lt;code&gt;/div&lt;/code&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`div class="content"`
 `div class="block"`
  `h1`welcome to my blog`/h1`
  `p`Latest updates here,`/p`
  `/div`
   `/div` 
     `/div`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Semantic approaches&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;header&lt;/code&gt;&lt;br&gt;
 &lt;code&gt;nav&lt;/code&gt;&lt;br&gt;
    &lt;code&gt;ul&lt;/code&gt;&lt;br&gt;
       &lt;code&gt;li&lt;/code&gt;&lt;code&gt;a href=&lt;/code&gt;/&lt;code&gt;Home&lt;/code&gt;/a&lt;code&gt;/li`&lt;br&gt;
        `li&lt;/code&gt;a href=/"about"&lt;code&gt;a out&lt;/code&gt;/a&lt;code&gt;/li`&lt;br&gt;
        `li&lt;/code&gt;a href=/"contact"&lt;code&gt;contact&lt;/code&gt;/a`&lt;code&gt;/li&lt;/code&gt;&lt;br&gt;
   &lt;code&gt;/ul&lt;/code&gt;&lt;br&gt;
  &lt;code&gt;/nav&lt;/code&gt;&lt;br&gt;
&lt;code&gt;/header&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main&lt;/code&gt;&lt;br&gt;
 &lt;code&gt;article&lt;/code&gt;&lt;br&gt;
  &lt;code&gt;header&lt;/code&gt;&lt;br&gt;
   &lt;code&gt;h1&lt;/code&gt;welcome to my blog&lt;code&gt;/h1&lt;/code&gt;&lt;br&gt;
 &lt;code&gt;/header&lt;/code&gt;&lt;br&gt;
 &lt;code&gt;p&lt;/code&gt;latest updates here,&lt;code&gt;/p&lt;/code&gt;&lt;br&gt;
 &lt;code&gt;/article&lt;/code&gt;&lt;br&gt;
&lt;code&gt;/main&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;More examples of semantic &amp;amp;non semantic, click the link &lt;a href="https://github.com/JMwaniki003/Semantic-html-example" rel="noopener noreferrer"&gt;https://github.com/JMwaniki003/Semantic-html-example&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;COMMON HTML MISTAKES AND HOW TO AVOID THEM *&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Missing or incorrect Doctype
2.
Forgetting to close tags- causes broken layouts and DOM issues
3.
Using Deprecated Tags or Attributes
These are not supported in HTML5.
4.
Missing alt attributes on images-
Bad for accessibility and SEO
5.
Overusing Inline styles 
6.
Ignoring semantic html &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;*&lt;em&gt;HOW TO AVOID THE MISTAKES &lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use an HTML Validator like W3C Validator.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-Follow HTML5 standards.&lt;br&gt;
 -Use semantic tags for better structure.&lt;br&gt;
 -Always test across browsers and devices.&lt;br&gt;
 -Separate content (HTML) from style (CSS) and behavior (JavaScript).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TECHNICAL TESTING AND VALIDATION&lt;/strong&gt;&lt;br&gt;
HTML Syntax Validation&lt;/p&gt;

&lt;p&gt;Purpose: Check if your HTML follows W3C standards and is free of syntax errors.&lt;/p&gt;

&lt;p&gt;Methods &amp;amp; Tools:&lt;/p&gt;

&lt;p&gt;W3C Markup Validator: &lt;/p&gt;

&lt;p&gt;Upload a file, enter a URL, or paste code.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Semantic Validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Purpose: Ensure correct usage of semantic tags for better accessibility and SEO.&lt;/p&gt;

&lt;p&gt;How to Test:&lt;/p&gt;

&lt;p&gt;Check if &lt;code&gt;header&lt;/code&gt; &lt;code&gt;main&lt;/code&gt;&lt;code&gt;footer&lt;/code&gt;&lt;code&gt;article&lt;/code&gt; are used appropriately.&lt;/p&gt;

&lt;p&gt;Verify heading structure &lt;code&gt;h1&lt;/code&gt;followed by &lt;code&gt;h2&lt;/code&gt;, etc.).&lt;/p&gt;

&lt;p&gt;Use Lighthouse in Chrome DevTools → Accessibility and SEO audits.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;. Accessibility Validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Purpose: Validate HTML for screen reader compatibility and ARIA roles.&lt;/p&gt;

&lt;p&gt;Methods &amp;amp; Tools:&lt;/p&gt;

&lt;p&gt;WAVE Web Accessibility Evaluation Tool: &lt;br&gt;
&lt;a href="https://wave.webaim.org/" rel="noopener noreferrer"&gt;https://wave.webaim.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;axe DevTools (Chrome extension).&lt;br&gt;
Manual Testing:&lt;br&gt;
Check for alt attributes in &lt;code&gt;img&lt;/code&gt;&lt;br&gt;
Ensure form inputs have &lt;code&gt;label&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Responsive and Mobile Validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Purpose: Ensure HTML works well on different screen sizes.&lt;/p&gt;

&lt;p&gt;Methods:&lt;/p&gt;

&lt;p&gt;Chrome DevTools → Device Toolbar.&lt;/p&gt;

&lt;p&gt;Responsinator or Screenfly.&lt;/p&gt;

&lt;p&gt;Checks:&lt;/p&gt;

&lt;p&gt; tag is present.&lt;/p&gt;

&lt;p&gt;No fixed-width elements breaking layout.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SEO &amp;amp; Metadata Validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Purpose: Validate HTML tags important for search engines.&lt;/p&gt;

&lt;p&gt;Methods:&lt;/p&gt;

&lt;p&gt;Lighthouse SEO Audit.&lt;/p&gt;

&lt;p&gt;Check:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;title&lt;/code&gt;and &lt;code&gt;meta description&lt;/code&gt; present.&lt;/p&gt;

&lt;p&gt;Correct &lt;code&gt;lang&lt;/code&gt; attribute in &lt;code&gt;html&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;No duplicate &lt;code&gt;h1&lt;/code&gt;tags.&lt;br&gt;
*&lt;em&gt;PERFORMANCE IMPACT ANALYSIS OF SEMANTIC HTML *&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rendering performance &lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Browsers build the DOM (Document Object Model) based on HTML structure.
Semantic HTML provides meaningful elements (&lt;code&gt;header&lt;/code&gt; &lt;code&gt;main&lt;/code&gt;, &lt;code&gt;article&lt;/code&gt;) instead of multiple &lt;code&gt;div&lt;/code&gt; tags.
This helps the browser parse and render faster because:
The structure is clearer.
Default styles for semantic elements reduce the need for extra CSS rules.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.Reduced CSS Complexity&lt;/p&gt;

&lt;p&gt;Impact:&lt;/p&gt;

&lt;p&gt;Non-semantic markup often uses many nested &lt;code&gt;div&lt;/code&gt;s requiring complex selectors like:&lt;br&gt;
Semantic tags reduce complexity&lt;/p&gt;

&lt;p&gt;3.Improved Accessibility (Indirect Performance Gain)&lt;/p&gt;

&lt;p&gt;Impact:&lt;br&gt;
Semantic HTML works better with assistive technologies like screen readers.&lt;br&gt;
4.SEO Performance (Search Engine Crawling)&lt;/p&gt;

&lt;p&gt;Impact:&lt;/p&gt;

&lt;p&gt;🔗Semantic tags help search engines understand content hierarchy.&lt;br&gt;
🔗Better structured data reduces crawler parsing time.&lt;br&gt;
🔗It Improves Page Experience signals for Core Web Vitals.&lt;/p&gt;

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