<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML &#8211; Bits of .NET</title>
	<atom:link href="http://blog.ercanopak.com/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ercanopak.com</link>
	<description>Daily micro-tips for C#, SQL, performance, and scalable backend engineering.</description>
	<lastBuildDate>Mon, 30 Mar 2026 17:51:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>http://blog.ercanopak.com/wp-content/uploads/2018/06/cropped-EO_LOGO_32-32x32.png</url>
	<title>HTML &#8211; Bits of .NET</title>
	<link>http://blog.ercanopak.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>HTML: Use Semantic HTML5 Elements for Better SEO and Accessibility</title>
		<link>http://blog.ercanopak.com/html-use-semantic-html5-elements-for-better-seo-and-accessibility/</link>
					<comments>http://blog.ercanopak.com/html-use-semantic-html5-elements-for-better-seo-and-accessibility/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Mon, 30 Mar 2026 17:51:00 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Screen Readers]]></category>
		<category><![CDATA[Semantic Elements]]></category>
		<category><![CDATA[Semantic HTML]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Standards]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html-use-semantic-html5-elements-for-better-seo-and-accessibility/</guid>

					<description><![CDATA[📝 Meaningful HTML Markup Everything is a div? Search engines confused, screen readers lost. Semantic HTML5 uses elements that describe their purpose: &#60;header&#62;, &#60;nav&#62;, &#60;article&#62;, &#60;section&#62;. Better SEO, better accessibility. The Div Soup Problem Home About ... Article Title ... © 2024 Semantic HTML5 Solution Home About ... Article Title Article content... Section Heading Section [&#8230;]]]></description>
										<content:encoded><![CDATA[<div style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; padding: 50px 40px; border-radius: 16px; margin: 40px 0; box-shadow: 0 20px 60px rgba(0,0,0,0.3);">
<h2 style="margin: 0 0 20px 0; font-size: 2.8em; font-weight: 800; line-height: 1.2;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4dd.png" alt="📝" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Meaningful HTML Markup</h2>
<p style="font-size: 1.4em; line-height: 1.8; margin: 0; opacity: 0.95;">Everything is a div? Search engines confused, screen readers lost. <strong>Semantic HTML5</strong> uses elements that describe their purpose: &lt;header&gt;, &lt;nav&gt;, &lt;article&gt;, &lt;section&gt;. Better SEO, better accessibility.</p>
</p></div>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #f5576c; padding-left: 20px;">The Div Soup Problem</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!-- &#x274c; Non-Semantic (Div Soup) -->
<div class="header">
  <div class="nav">
    <div class="nav-item">Home</div>
    <div class="nav-item">About</div>
  </div>
</div>

<div class="main">
  <div class="sidebar">
    <div class="widget">...</div>
  </div>
  
  <div class="content">
    <div class="post">
      <div class="post-title">Article Title</div>
      <div class="post-content">...</div>
    </div>
  </div>
</div>

<div class="footer">
  <div class="copyright">© 2024</div>
</div>

<!-- Problems:
     - No meaning for search engines
     - Screen readers can't identify sections
     - Harder to style and maintain
     - Poor SEO -->
</pre>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #27ae60; padding-left: 20px;">Semantic HTML5 Solution</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!-- &#x2705; Semantic HTML5 -->
<header>
  <nav>
    <a href="/">Home</a>
    <a href="/about">About</a>
  </nav>
</header>

<main>
  <aside>
    <section class="widget">...</section>
  </aside>
  
  <article>
    <h1>Article Title</h1>
    <p>Article content...</p>
    
    <section>
      <h2>Section Heading</h2>
      <p>Section content...</p>
    </section>
  </article>
</main>

<footer>
  <p>© 2024 Company Name</p>
</footer>

<!-- Benefits:
     ✓ Search engines understand structure
     ✓ Screen readers navigate easily
     ✓ Better SEO rankings
     ✓ Cleaner code -->
</pre>
<div style="background: #f8f9fa; padding: 40px; border-radius: 12px; margin: 40px 0; border: 2px solid #f093fb;">
<h4 style="color: #f5576c; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3af.png" alt="🎯" class="wp-smiley" style="height: 1em; max-height: 1em;" /> HTML5 Semantic Elements</h4>
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
<tr style="background: #f093fb; color: white;">
<th style="padding: 15px; text-align: left;">Element</th>
<th style="padding: 15px; text-align: left;">Purpose</th>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;header&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Page or section header (logo, nav)</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;nav&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Navigation links</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;main&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Main content (only one per page)</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;article&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Self-contained content (blog post, news)</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;section&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Thematic grouping of content</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;aside&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Sidebar, related content</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;footer&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Page or section footer</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;figure&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Image with caption</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;time&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Date/time with machine-readable format</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px;">&lt;mark&gt;</td>
<td style="padding: 12px;">Highlighted/emphasized text</td>
</tr>
</table></div>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #667eea; padding-left: 20px;">Complete Blog Page Example</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Blog Post Title</title>
</head>
<body>
  
  <header>
    <h1>My Blog</h1>
    <nav>
      <a href="/">Home</a>
      <a href="/about">About</a>
      <a href="/contact">Contact</a>
    </nav>
  </header>

  <main>
    <article>
      <header>
        <h1>How to Use Semantic HTML</h1>
        <p>Published on <time datetime="2024-03-19">March 19, 2024</time></p>
        <p>By <a href="/author/john">John Doe</a></p>
      </header>

      <section>
        <h2>Introduction</h2>
        <p>Semantic HTML makes your code meaningful...</p>
      </section>

      <section>
        <h2>Why It Matters</h2>
        <p>Search engines love semantic markup...</p>
        
        <figure>
          <img decoding="async" src="seo-graph.png" alt="SEO improvement graph">
          <figcaption>SEO rankings after using semantic HTML</figcaption>
        </figure>
      </section>

      <footer>
        <p>Tags: <a href="/tag/html">HTML</a>, <a href="/tag/seo">SEO</a></p>
      </footer>
    </article>

    <aside>
      <section>
        <h3>Related Posts</h3>
        <ul>
          <li><a href="/post1">CSS Best Practices</a></li>
          <li><a href="/post2">JavaScript Tips</a></li>
        </ul>
      </section>

      <section>
        <h3>Newsletter</h3>
        <form>
          <label for="email">Subscribe:</label>
          <input type="email" id="email" name="email">
          <button type="submit">Subscribe</button>
        </form>
      </section>
    </aside>
  </main>

  <footer>
    <p>© 2024 My Blog. All rights reserved.</p>
    <nav>
      <a href="/privacy">Privacy</a>
      <a href="/terms">Terms</a>
    </nav>
  </footer>

</body>
</html>
</pre>
<div style="background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; padding: 35px; border-radius: 12px; margin: 40px 0;">
<h4 style="margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50d.png" alt="🔍" class="wp-smiley" style="height: 1em; max-height: 1em;" /> SEO Benefits</h4>
<ul style="line-height: 2.2; font-size: 1.1em; margin: 15px 0;">
<li><strong>Better crawling:</strong> Search bots understand page structure</li>
<li><strong>Rich snippets:</strong> Google can extract &lt;article&gt;, &lt;time&gt; for results</li>
<li><strong>Featured snippets:</strong> Properly marked up content ranks higher</li>
<li><strong>Content hierarchy:</strong> &lt;h1&gt; to &lt;h6&gt; in &lt;section&gt; shows importance</li>
</ul></div>
<div style="background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); padding: 35px; border-radius: 12px; margin: 40px 0; border-left: 5px solid #28a745;">
<h4 style="color: #155724; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Accessibility Benefits</h4>
<ul style="color: #155724; font-size: 1.15em; line-height: 2.2; margin: 20px 0;">
<li><strong>Screen readers:</strong> Jump to &lt;nav&gt;, &lt;main&gt;, &lt;footer&gt; easily</li>
<li><strong>Keyboard navigation:</strong> Tab through landmarks efficiently</li>
<li><strong>ARIA roles:</strong> Semantic elements have implicit roles</li>
<li><strong>Better UX:</strong> Users with disabilities navigate faster</li>
</ul></div>
<div style="background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%); border-left: 5px solid #ffc107; padding: 35px; margin: 50px 0; border-radius: 12px;">
<h4 style="color: #856404; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Best Practices</h4>
<ul style="color: #856404; font-size: 1.15em; line-height: 2.2; margin: 20px 0;">
<li><strong>One &lt;main&gt; per page:</strong> Main content area</li>
<li><strong>One &lt;h1&gt; per page:</strong> Page title</li>
<li><strong>Nest headings properly:</strong> h1 → h2 → h3 (don&#8217;t skip)</li>
<li><strong>Use &lt;article&gt; for standalone:</strong> Could exist independently</li>
<li><strong>Use &lt;section&gt; for grouping:</strong> Related content with heading</li>
<li><strong>Add lang attribute:</strong> &lt;html lang=&#8221;en&#8221;&gt;</li>
</ul></div>
<div style="background: #f8f9fa; padding: 40px; border-radius: 12px; margin: 40px 0; border: 2px solid #f093fb;">
<h4 style="color: #f5576c; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3af.png" alt="🎯" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Quick Decision Guide</h4>
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
<tr style="background: #f093fb; color: white;">
<th style="padding: 15px; text-align: left;">Question</th>
<th style="padding: 15px; text-align: left;">Use This</th>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Is it main navigation?</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">&lt;nav&gt;</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Can it stand alone as content?</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">&lt;article&gt;</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Is it tangentially related?</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">&lt;aside&gt;</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Generic grouping with heading?</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">&lt;section&gt;</td>
</tr>
<tr>
<td style="padding: 12px;">No semantic meaning?</td>
<td style="padding: 12px;">&lt;div&gt; (it&#8217;s OK!)</td>
</tr>
</table></div>
<blockquote style="background: linear-gradient(to right, #fce4ec, #f8bbd0); border-left: 6px solid #e91e63; padding: 40px; margin: 50px 0; border-radius: 12px;">
<p style="font-size: 1.5em; line-height: 1.9; margin: 0; color: #880e4f; font-style: italic; font-weight: 500;">&#8220;Rewrote site with semantic HTML. Google Search Console showed 40% better crawl coverage. Accessibility score went from 65 to 95. Screen reader users sent thank you emails. Took 2 hours to refactor.&#8221;</p>
<footer style="margin-top: 20px; color: #ad1457; font-size: 1.15em; font-weight: 600;">— Frontend Developer</footer>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html-use-semantic-html5-elements-for-better-seo-and-accessibility/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Use Semantic Elements for Better SEO and Accessibility</title>
		<link>http://blog.ercanopak.com/html5-use-semantic-elements-for-better-seo-and-accessibility/</link>
					<comments>http://blog.ercanopak.com/html5-use-semantic-elements-for-better-seo-and-accessibility/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sun, 22 Mar 2026 09:04:26 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Google Rankings]]></category>
		<category><![CDATA[HTML Best Practices]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Screen Readers]]></category>
		<category><![CDATA[Semantic HTML]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Standards]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-use-semantic-elements-for-better-seo-and-accessibility/</guid>

					<description><![CDATA[🎯 Meaningful HTML, Better Rankings div soup everywhere? Google confused, screen readers lost. Semantic HTML tells machines what content means. The Div Soup Problem Home My Article Article content... © 2024 Semantic HTML Home My Article Article content... © 2024 📚 Essential Semantic Elements Element Purpose &#60;header&#62; Top of page/section &#60;nav&#62; Navigation links &#60;main&#62; Main [&#8230;]]]></description>
										<content:encoded><![CDATA[<div style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; padding: 50px 40px; border-radius: 16px; margin: 40px 0; box-shadow: 0 20px 60px rgba(0,0,0,0.3);">
<h2 style="margin: 0 0 20px 0; font-size: 2.8em; font-weight: 800; line-height: 1.2;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3af.png" alt="🎯" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Meaningful HTML, Better Rankings</h2>
<p style="font-size: 1.4em; line-height: 1.8; margin: 0; opacity: 0.95;">div soup everywhere? Google confused, screen readers lost. <strong>Semantic HTML</strong> tells machines what content means.</p>
</p></div>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #f5576c; padding-left: 20px;">The Div Soup Problem</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!-- &#x274c; Bad: Generic divs -->
<div class="header">
  <div class="nav">
    <div class="menu-item">Home</div>
  </div>
</div>

<div class="content">
  <div class="post">
    <div class="title">My Article</div>
    <div class="text">Article content...</div>
  </div>
</div>

<div class="footer">
  <div class="copyright">© 2024</div>
</div>

<!-- Google sees: divs, divs everywhere -->
<!-- Screen readers: No structure, no meaning -->
</pre>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #27ae60; padding-left: 20px;">Semantic HTML</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!-- &#x2705; Good: Semantic elements -->
<header>
  <nav>
    <a href="/">Home</a>
  </nav>
</header>

<main>
  <article>
    <h1>My Article</h1>
    <p>Article content...</p>
  </article>
</main>

<footer>
  <p>© 2024</p>
</footer>

<!-- Google sees: Clear document structure -->
<!-- Screen readers: Landmarks for navigation -->
</pre>
<div style="background: #f8f9fa; padding: 40px; border-radius: 12px; margin: 40px 0; border: 2px solid #f093fb;">
<h4 style="color: #f5576c; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4da.png" alt="📚" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Essential Semantic Elements</h4>
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
<tr style="background: #f093fb; color: white;">
<th style="padding: 15px; text-align: left;">Element</th>
<th style="padding: 15px; text-align: left;">Purpose</th>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;header&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Top of page/section</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;nav&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Navigation links</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;main&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Main content (one per page)</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;article&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Self-contained content</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;section&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Thematic grouping</td>
</tr>
<tr style="background: #f8f9fa;">
<td style="padding: 12px; border-bottom: 1px solid #ddd; font-weight: bold;">&lt;aside&gt;</td>
<td style="padding: 12px; border-bottom: 1px solid #ddd;">Sidebar, related content</td>
</tr>
<tr>
<td style="padding: 12px;">&lt;footer&gt;</td>
<td style="padding: 12px;">Bottom of page/section</td>
</tr>
</table></div>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #667eea; padding-left: 20px;">Complete Blog Page Example</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>My Blog</title>
</head>
<body>
  <header>
    <h1>My Tech Blog</h1>
    <nav>
      <ul>
        <li><a href="/">Home</a></li>
        <li><a href="/about">About</a></li>
      </ul>
    </nav>
  </header>

  <main>
    <article>
      <header>
        <h2>Learning React Hooks</h2>
        <time datetime="2024-03-19">March 19, 2024</time>
      </header>
      
      <section>
        <h3>Introduction</h3>
        <p>Hooks changed everything...</p>
      </section>
      
      <section>
        <h3>useState Explained</h3>
        <p>useState is...</p>
      </section>
      
      <footer>
        <p>Tags: React, Hooks, JavaScript</p>
      </footer>
    </article>

    <aside>
      <h3>Related Posts</h3>
      <ul>
        <li><a href="/react-basics">React Basics</a></li>
      </ul>
    </aside>
  </main>

  <footer>
    <p>© 2024 My Blog</p>
  </footer>
</body>
</html>
</pre>
<div style="background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); padding: 35px; border-radius: 12px; margin: 40px 0; border-left: 5px solid #28a745;">
<h4 style="color: #155724; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> SEO Benefits</h4>
<ul style="color: #155724; font-size: 1.15em; line-height: 2.2; margin: 20px 0;">
<li><strong>Better rankings:</strong> Google understands page structure</li>
<li><strong>Rich snippets:</strong> Article markup enables special search results</li>
<li><strong>Featured snippets:</strong> Proper headings help Google extract answers</li>
<li><strong>Mobile-first:</strong> Clear structure = better mobile experience</li>
</ul></div>
<div style="background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); padding: 35px; border-radius: 12px; margin: 40px 0; border-left: 5px solid #2196f3;">
<h4 style="color: #1565c0; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/267f.png" alt="♿" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Accessibility Benefits</h4>
<ul style="color: #0d47a1; font-size: 1.15em; line-height: 2.2; margin: 20px 0;">
<li><strong>Screen readers:</strong> Can jump to nav, main, aside directly</li>
<li><strong>Keyboard navigation:</strong> Landmarks make navigation faster</li>
<li><strong>Voice control:</strong> &#8220;Navigate to main content&#8221; works</li>
<li><strong>ARIA implicit:</strong> Semantic elements have built-in ARIA roles</li>
</ul></div>
<blockquote style="background: linear-gradient(to right, #fce4ec, #f8bbd0); border-left: 6px solid #e91e63; padding: 40px; margin: 50px 0; border-radius: 12px;">
<p style="font-size: 1.5em; line-height: 1.9; margin: 0; color: #880e4f; font-style: italic; font-weight: 500;">&#8220;Converted blog from div soup to semantic HTML. Google rankings improved within 2 weeks. Site now appears in featured snippets. Accessibility score: 95/100. Zero CSS changes needed.&#8221;</p>
<footer style="margin-top: 20px; color: #ad1457; font-size: 1.15em; font-weight: 600;">— Content Manager</footer>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-use-semantic-elements-for-better-seo-and-accessibility/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Use  for Art Direction and Responsive Images</title>
		<link>http://blog.ercanopak.com/html5-use-for-art-direction-and-responsive-images/</link>
					<comments>http://blog.ercanopak.com/html5-use-for-art-direction-and-responsive-images/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Thu, 19 Mar 2026 20:28:26 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Art Direction]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Image Optimization]]></category>
		<category><![CDATA[Modern HTML]]></category>
		<category><![CDATA[Picture Element]]></category>
		<category><![CDATA[Responsive Images]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[webp]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-use-for-art-direction-and-responsive-images/</guid>

					<description><![CDATA[🖼️ Serve Perfect Image for Every Device Desktop gets landscape. Mobile gets portrait. WebP for modern browsers, JPEG fallback. &#60;picture&#62; handles it all. Basic Responsive Images Art Direction (Different Crops) 🎯 Advanced: Resolution + Format 💡 Why Use &#60;picture&#62;? Performance: Serve WebP (30% smaller) to supporting browsers Art Direction: Show different crops on different screens [&#8230;]]]></description>
										<content:encoded><![CDATA[<div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 50px 40px; border-radius: 16px; margin: 40px 0; box-shadow: 0 20px 60px rgba(0,0,0,0.3);">
<h2 style="margin: 0 0 20px 0; font-size: 2.8em; font-weight: 800; line-height: 1.2;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f5bc.png" alt="🖼" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Serve Perfect Image for Every Device</h2>
<p style="font-size: 1.4em; line-height: 1.8; margin: 0; opacity: 0.95;">Desktop gets landscape. Mobile gets portrait. WebP for modern browsers, JPEG fallback. <strong>&lt;picture&gt; handles it all.</strong></p>
</p></div>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #764ba2; padding-left: 20px;">Basic Responsive Images</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<picture>
  <!-- WebP for modern browsers -->
  <source srcset="hero.webp" type="image/webp">
  
  <!-- JPEG fallback -->
  <img decoding="async" src="hero.jpg" alt="Hero image">
</picture>

<!-- Browser picks best format automatically -->
</pre>
<h3 style="color: #2c3e50; font-size: 2.2em; margin: 50px 0 30px 0; font-weight: 700; border-left: 5px solid #f39c12; padding-left: 20px;">Art Direction (Different Crops)</h3>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<picture>
  <!-- Mobile: Portrait crop -->
  <source media="(max-width: 768px)" srcset="portrait.jpg">
  
  <!-- Tablet: Square crop -->
  <source media="(max-width: 1024px)" srcset="square.jpg">
  
  <!-- Desktop: Landscape crop -->
  <img decoding="async" src="landscape.jpg" alt="Responsive hero">
</picture>
</pre>
<div style="background: #f8f9fa; padding: 40px; border-radius: 12px; margin: 40px 0; border: 2px solid #667eea;">
<h4 style="color: #667eea; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3af.png" alt="🎯" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Advanced: Resolution + Format</h4>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<picture>
  <!-- Retina WebP -->
  <source srcset="hero-2x.webp 2x, hero-1x.webp 1x" type="image/webp">
  
  <!-- Retina JPEG -->
  <source srcset="hero-2x.jpg 2x, hero-1x.jpg 1x" type="image/jpeg">
  
  <!-- Fallback -->
  <img decoding="async" src="hero-1x.jpg" alt="Hero">
</picture>
</pre>
</p></div>
<div style="background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); padding: 35px; border-radius: 12px; margin: 40px 0; border-left: 5px solid #28a745;">
<h4 style="color: #155724; margin-top: 0; font-size: 1.7em; font-weight: 700;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Why Use &lt;picture&gt;?</h4>
<ul style="color: #155724; font-size: 1.15em; line-height: 2.2; margin: 20px 0;">
<li><strong>Performance:</strong> Serve WebP (30% smaller) to supporting browsers</li>
<li><strong>Art Direction:</strong> Show different crops on different screens</li>
<li><strong>Bandwidth:</strong> Mobile gets smaller images automatically</li>
<li><strong>SEO:</strong> Proper fallback for all browsers</li>
</ul></div>
<blockquote style="background: linear-gradient(to right, #e8eaf6, #c5cae9); border-left: 6px solid #5c6bc0; padding: 40px; margin: 50px 0; border-radius: 12px;">
<p style="font-size: 1.5em; line-height: 1.9; margin: 0; color: #1a237e; font-style: italic; font-weight: 500;">&#8220;Switched to &lt;picture&gt; for product images. Page weight dropped 40%. Mobile users see optimized crops. LCP improved from 4.2s to 1.8s.&#8221;</p>
<footer style="margin-top: 20px; color: #283593; font-size: 1.15em; font-weight: 600;">— E-commerce Developer</footer>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-use-for-art-direction-and-responsive-images/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Use  for Accordion Without JavaScript</title>
		<link>http://blog.ercanopak.com/html5-use-for-accordion-without-javascript/</link>
					<comments>http://blog.ercanopak.com/html5-use-for-accordion-without-javascript/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Thu, 19 Mar 2026 20:07:28 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[Collapsible Content]]></category>
		<category><![CDATA[details element]]></category>
		<category><![CDATA[FAQ]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Native HTML]]></category>
		<category><![CDATA[No JavaScript]]></category>
		<category><![CDATA[Web Standards]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-use-for-accordion-without-javascript/</guid>

					<description><![CDATA[Building FAQ accordion? Writing 50 lines of JavaScript? HTML does it natively. What is HTML5? &#160; HTML5 is the latest version of HTML&#8230; &#160; &#160; Already expanded &#160; Use &#8216;open&#8217; attribute to start expanded &#160; &#160; Features: Click to expand/collapse. Keyboard accessible. SEO-friendly (content readable by search engines). Style: Use CSS to customize summary arrow, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Building FAQ accordion? Writing 50 lines of JavaScript? HTML does it natively.</p>
<details>
<summary>What is HTML5?</summary>
<p>&nbsp;</p>
<p>HTML5 is the latest version of HTML&#8230;</p>
<p>&nbsp;</p>
</details>
<p>&nbsp;</p>
<details open="">
<summary>Already expanded</summary>
<p>&nbsp;</p>
<p>Use &#8216;open&#8217; attribute to start expanded</p>
<p>&nbsp;</p>
</details>
<p>&nbsp;</p>
<p><strong>Features:</strong> Click to expand/collapse. Keyboard accessible. SEO-friendly (content readable by search engines).</p>
<p><strong>Style:</strong> Use CSS to customize summary arrow, spacing, colors.</p>
<p>Zero JavaScript, full accessibility.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-use-for-accordion-without-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Use  for Autocomplete Without JavaScript</title>
		<link>http://blog.ercanopak.com/html5-use-for-autocomplete-without-javascript/</link>
					<comments>http://blog.ercanopak.com/html5-use-for-autocomplete-without-javascript/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Thu, 19 Mar 2026 19:31:16 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[datalist]]></category>
		<category><![CDATA[Form Elements]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Input Suggestions]]></category>
		<category><![CDATA[Native HTML]]></category>
		<category><![CDATA[No JavaScript]]></category>
		<category><![CDATA[Web Forms]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-use-for-autocomplete-without-javascript/</guid>

					<description><![CDATA[📝 Native Autocomplete Building autocomplete dropdown? No React Select needed. HTML does it natively. Dynamic Options: Populate datalist with JavaScript/API. Still native rendering. Browser Support: 97% (all modern browsers). Benefit: Zero bytes JavaScript, accessible by default, mobile keyboard optimized.]]></description>
										<content:encoded><![CDATA[<div style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; padding: 40px; border-radius: 12px; margin: 25px 0;">
<h2 style="margin-top: 0; font-size: 2.2em;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4dd.png" alt="📝" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Native Autocomplete</h2>
<p style="font-size: 1.3em; line-height: 1.8;">Building autocomplete dropdown? No React Select needed. HTML does it natively.</p>
</div>
<pre class="EnlighterJSRAW" data-enlighter-language="html"><input list="browsers" name="browser" type="text" placeholder="Choose browser" /><datalist id="browsers">
<option value="Chrome">
</option>
<option value="Firefox">
</option>
<option value="Safari">
</option>
<option value="Edge">
</option></datalist>

<!-- User types 'Ch' → Shows 'Chrome' suggestion -->
<!-- Works on mobile too! -->
</pre>
<p><strong>Dynamic Options:</strong> Populate datalist with JavaScript/API. Still native rendering.</p>
<p><strong>Browser Support:</strong> 97% (all modern browsers).</p>
<p><strong>Benefit:</strong> Zero bytes JavaScript, accessible by default, mobile keyboard optimized.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-use-for-autocomplete-without-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Creating Modern FAQ Accordions Without JavaScript</title>
		<link>http://blog.ercanopak.com/html5-creating-modern-faq-accordions-without-javascript/</link>
					<comments>http://blog.ercanopak.com/html5-creating-modern-faq-accordions-without-javascript/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sun, 01 Mar 2026 10:55:39 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Clean Code]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[No-JS]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[UI Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-creating-modern-faq-accordions-without-javascript/</guid>

					<description><![CDATA[🚀 Lightweight UI Don&#8217;t load heavy JS libraries for simple accordions. Use the native &#60;details&#62; element. Is this SEO Friendly? Yes! Google crawls content inside details tags even when they are closed. It&#8217;s clean, accessible, and works on every browser perfectly.]]></description>
										<content:encoded><![CDATA[<div style="border:1px solid #ddd; border-radius:10px; padding:20px; background:#fff;">
<h3 style="color:#e34c26;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f680.png" alt="🚀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Lightweight UI</h3>
<p>Don&#8217;t load heavy JS libraries for simple accordions. Use the native <code>&lt;details&gt;</code> element.</p>
<details style="background:#f4f4f4; padding:10px; border-radius:5px; margin-bottom:10px;">
<summary style="font-weight:bold; cursor:pointer;">Is this SEO Friendly?</summary>
<p>Yes! Google crawls content inside details tags even when they are closed.</p>
</details>
<p>It&#8217;s clean, accessible, and works on every browser perfectly.</p>
</p></div>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-creating-modern-faq-accordions-without-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Encapsulating Styles with Shadow DOM and Web Components</title>
		<link>http://blog.ercanopak.com/html5-encapsulating-styles-with-shadow-dom-and-web-components-2/</link>
					<comments>http://blog.ercanopak.com/html5-encapsulating-styles-with-shadow-dom-and-web-components-2/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sun, 01 Mar 2026 10:47:20 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Clean Code]]></category>
		<category><![CDATA[Frontend Architecture]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Modern Web]]></category>
		<category><![CDATA[Shadow DOM]]></category>
		<category><![CDATA[UI Design]]></category>
		<category><![CDATA[Web Components]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-encapsulating-styles-with-shadow-dom-and-web-components-2/</guid>

					<description><![CDATA[🏗️ The Architecture of Web Components Avoid CSS collisions forever. Shadow DOM allows you to attach a &#8216;private&#8217; DOM tree to an element that cannot be accessed by global CSS. const host = document.querySelector('#host'); const shadowRoot = host.attachShadow({mode: 'closed'}); shadowRoot.innerHTML = 'Private Text'; This is the standard for building reusable UI libraries that work across [&#8230;]]]></description>
										<content:encoded><![CDATA[<div style="border:1px solid #ddd; padding:20px; border-radius:10px; background:#fff;">
<h4 style="color:#e34c26;"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3d7.png" alt="🏗" class="wp-smiley" style="height: 1em; max-height: 1em;" /> The Architecture of Web Components</h4>
<p>Avoid CSS collisions forever. Shadow DOM allows you to attach a &#8216;private&#8217; DOM tree to an element that cannot be accessed by global CSS.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="javascript">
const host = document.querySelector('#host');
const shadowRoot = host.attachShadow({mode: 'closed'});
shadowRoot.innerHTML = '<style>p { color: red; }</style><p>Private Text</p>';</pre>
<p>This is the standard for building reusable UI libraries that work across any framework (React, Vue, Angular) without style leakage.</p>
</p></div>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-encapsulating-styles-with-shadow-dom-and-web-components-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Real Art Direction with the  Element</title>
		<link>http://blog.ercanopak.com/html5-real-art-direction-with-the-element/</link>
					<comments>http://blog.ercanopak.com/html5-real-art-direction-with-the-element/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sun, 01 Mar 2026 10:37:54 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Mobile Optimization]]></category>
		<category><![CDATA[Modern Web]]></category>
		<category><![CDATA[Responsive Images]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[UI/UX]]></category>
		<category><![CDATA[Web Performance]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-real-art-direction-with-the-element/</guid>

					<description><![CDATA[Don&#8217;t just resize images; change them. The &#60;picture&#62; element allows for &#8216;Art Direction&#8217;. This ensures mobile users see a tight, meaningful crop while desktop users see the full cinematic landscape, optimizing both UX and bandwidth.]]></description>
										<content:encoded><![CDATA[<p>Don&#8217;t just resize images; change them. The <code>&lt;picture&gt;</code> element allows for &#8216;Art Direction&#8217;.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<picture>
  <source media="(max-width: 600px)" srcset="mobile-crop.jpg">
  <source media="(min-width: 601px)" srcset="wide-landscape.jpg">
  <img decoding="async" src="default.jpg" alt="Hero Image">
</picture></pre>
<p>This ensures mobile users see a tight, meaningful crop while desktop users see the full cinematic landscape, optimizing both UX and bandwidth.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-real-art-direction-with-the-element/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Predicting the User&#8217;s Next Move with </title>
		<link>http://blog.ercanopak.com/html5-predicting-the-users-next-move-with/</link>
					<comments>http://blog.ercanopak.com/html5-predicting-the-users-next-move-with/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sat, 28 Feb 2026 12:01:22 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Coding Tips]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Modern Web]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Speed Hacks]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[Web Performance]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-predicting-the-users-next-move-with/</guid>

					<description><![CDATA[What if the next page the user clicks on loads instantly? You can achieve this by prefetching assets. The Strategy: Use this on your &#8216;Home&#8217; page to pre-load the &#8216;Pricing&#8217; or &#8216;Login&#8217; pages. The browser downloads them in the background during idle time.]]></description>
										<content:encoded><![CDATA[<p>What if the next page the user clicks on loads instantly? You can achieve this by prefetching assets.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<link rel="prefetch" href="next-page.html">
<link rel="dns-prefetch" href="//api.example.com"></pre>
<p><strong>The Strategy:</strong> Use this on your &#8216;Home&#8217; page to pre-load the &#8216;Pricing&#8217; or &#8216;Login&#8217; pages. The browser downloads them in the background during idle time.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-predicting-the-users-next-move-with/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HTML5: Building Native Modals with the  Element</title>
		<link>http://blog.ercanopak.com/html5-building-native-modals-with-the-element/</link>
					<comments>http://blog.ercanopak.com/html5-building-native-modals-with-the-element/#respond</comments>
		
		<dc:creator><![CDATA[ErcanOPAK]]></dc:creator>
		<pubDate>Sat, 28 Feb 2026 11:56:07 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[a11y]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[Clean Code]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Modern Web]]></category>
		<category><![CDATA[No-JS]]></category>
		<category><![CDATA[UI Components]]></category>
		<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://blog.ercanopak.com/html5-building-native-modals-with-the-element/</guid>

					<description><![CDATA[Forget heavy JavaScript modal libraries. HTML5 now has a native &#60;dialog&#62; element with a built-in backdrop. This is a native modal! Close Open Pro Advantage: It automatically handles focus management and &#8216;Escape&#8217; key closing, which is vital for accessibility (A11y).]]></description>
										<content:encoded><![CDATA[<p>Forget heavy JavaScript modal libraries. HTML5 now has a native <code>&lt;dialog&gt;</code> element with a built-in backdrop.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="html">
<dialog id="myModal">
  <p>This is a native modal!</p>
  <button onclick="myModal.close()">Close</button>
</dialog>
<button onclick="myModal.showModal()">Open</button></pre>
<p><strong>Pro Advantage:</strong> It automatically handles focus management and &#8216;Escape&#8217; key closing, which is vital for accessibility (A11y).</p>
]]></content:encoded>
					
					<wfw:commentRss>http://blog.ercanopak.com/html5-building-native-modals-with-the-element/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
