<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Html on My New Hugo Site</title><link>https://example.org/tags/html/</link><description>Recent content from My New Hugo Site</description><generator>Hugo</generator><language>en</language><managingEditor>pathakdivy03@gmail.com (Divy Pathak)</managingEditor><webMaster>pathakdivy03@gmail.com (Divy Pathak)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Wed, 01 Oct 2025 22:07:57 +0530</lastBuildDate><atom:link href="https://example.org/tags/html/index.xml" rel="self" type="application/rss+xml"/><item><title>Semantic Tags</title><link>https://example.org/post/semantic-tags/</link><pubDate>Sun, 14 Sep 2025 20:12:52 +0800</pubDate><author>pathakdivy03@gmail.com (Divy Pathak)</author><guid>https://example.org/post/semantic-tags/</guid><description>
<![CDATA[<h1>Semantic Tags</h1><p>Author: Divy Pathak(pathakdivy03@gmail.com)</p>
        
          <p>Semantic HTML tags are <strong>meaningful tags</strong> that describe the purpose of the content inside them — both to the <strong>browser</strong> and to <strong>developers</strong> (and also screen readers for accessibility).</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">header</span><span class="p">&gt;</span> for top section (logo, nav, intro)
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">nav</span><span class="p">&gt;</span> for nav menu with nav-links
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">main</span><span class="p">&gt;</span> for main content of the doc
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">section</span><span class="p">&gt;</span> sections of content 
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">article</span><span class="p">&gt;</span> for blog post, news article
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">aside</span><span class="p">&gt;</span> sidebar content, i.e. not related to main content
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">footer</span><span class="p">&gt;</span> bottom section with links and copyright license
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">figure</span><span class="p">&gt;</span> to wrap media images, diagrams, charts with captions
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">figcaption</span><span class="p">&gt;</span> caption for figure
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">mark</span><span class="p">&gt;</span> highlight text with yellow
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">time</span><span class="p">&gt;</span> represent datetime=&#34;&#34; attribute for machine readability  
</span></span></code></pre></div><p>also a new semantic tag added <!-- raw HTML omitted --> which is used to wrap personal social media address like email, linkedin, etc and <strong>NOT</strong> the actual postal address.</p>
        
        <hr><p>Published on 2025-09-14 at <a href='https://example.org/'>My New Hugo Site</a>, last modified on 2025-10-01</p>]]></description><category>prep</category></item><item><title>HTML</title><link>https://example.org/post/html/</link><pubDate>Sun, 14 Sep 2025 20:12:52 +0800</pubDate><author>pathakdivy03@gmail.com (Divy Pathak)</author><guid>https://example.org/post/html/</guid><description>
<![CDATA[<h1>HTML</h1><p>Author: Divy Pathak(pathakdivy03@gmail.com)</p>
        
          <p>Hyper Text Markup Language is the backbone of any website.</p>
<ul>
<li>Avoid using more than 1 <!-- raw HTML omitted -->  as it is the biggest heading, only one h1 should be present in one sheet.</li>
<li>Always use headings in order, first h1 then h2 and so on.</li>
<li>Always use img tag inside a figure tag when images have caption</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">figure</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">   <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;&#34;</span> <span class="p">/&gt;</span>
</span></span><span class="line"><span class="cl">   <span class="p">&lt;</span><span class="nt">figcaption</span><span class="p">&gt;</span>Caption<span class="p">&lt;/</span><span class="nt">figcaption</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">figure</span><span class="p">&gt;</span>
</span></span></code></pre></div><ul>
<li>Use [[Semantic Tags]] like header, footer, section, article</li>
<li>Avoid using <!-- raw HTML omitted -->, <!-- raw HTML omitted --> for bold and italics, instead use [[CSS]] properties like font-weight and font-style: &ldquo;italic&rdquo; or use <!-- raw HTML omitted --> for bold and <!-- raw HTML omitted --> for emphasis/italics.</li>
<li>Don&rsquo;t use <a href="/post/html/#block-and-inline-element">block</a> elements inside <a href="/post/html/#block-and-inline-element">inline</a> elements</li>
</ul>
<h3 id="block-and-inline-element">
<a class="header-anchor" href="#block-and-inline-element"></a>
Block and Inline element
</h3><blockquote>
<p>Block elements always start on a new line and take up the <strong>full width</strong> available.</p>
        
        <hr><p>Published on 2025-09-14 at <a href='https://example.org/'>My New Hugo Site</a>, last modified on 2025-10-01</p>]]></description><category>prep</category></item></channel></rss>