<?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>Forem: Raja B</title>
    <description>The latest articles on Forem by Raja B (@raja_b_0c9d242e2c26cf063b).</description>
    <link>https://forem.com/raja_b_0c9d242e2c26cf063b</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3925346%2Fbffb7c55-205b-4544-be72-cc6fc499f1ee.png</url>
      <title>Forem: Raja B</title>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/raja_b_0c9d242e2c26cf063b"/>
    <language>en</language>
    <item>
      <title>Question And Answer</title>
      <dc:creator>Raja B</dc:creator>
      <pubDate>Sun, 24 May 2026 15:32:49 +0000</pubDate>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b/question-and-answer-48pd</link>
      <guid>https://forem.com/raja_b_0c9d242e2c26cf063b/question-and-answer-48pd</guid>
      <description>&lt;h1&gt;What is the purpose of box-sizing: border-box in your project?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;1. Purpose of box-sizing: border-box&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;box-sizing: border-box means: when you set width or height, that size &lt;b&gt;already includes&lt;/b&gt;&lt;br&gt;
padding and border.&lt;br&gt;
So if you say width: 300px, the total box (content + padding + border) will be 300px, not bigger. This makes layouts easier and avoids unexpected overflow.&lt;/p&gt;

&lt;h1&gt;How does grid-template-columns: 2fr 1fr work?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;2. How grid-template-columns: 2fr 1fr works&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;In CSS Grid, fr means “fraction of available space”.&lt;/p&gt;

&lt;p&gt;grid-template-columns: 2fr 1fr creates 2 columns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;First column = 2 parts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Second column = 1 part&lt;br&gt;
Total = 3 parts → first gets 2/3 of the width, second gets 1/3.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h1&gt;What is the difference between semantic tags like &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt; versus normal &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; tags?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;3. Semantic tags (&lt;code&gt;&amp;lt;main&amp;gt;, &amp;lt;footer&amp;gt;&lt;/code&gt;) vs &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;: no meaning, just a generic box. You use it only for layout/styling.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Semantic tags like &lt;code&gt;&amp;lt;main&amp;gt;, &amp;lt;header&amp;gt;, &amp;lt;footer&amp;gt;, &amp;lt;nav&amp;gt;&lt;/code&gt;: names show &lt;b&gt;what that section is&lt;/b&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Search engines, screen readers, and other tools understand your page structure better.&lt;br&gt;
So the browser looks almost the same, but semantic tags improve &lt;b&gt;accessibility, SEO, and code readability.&lt;/b&gt;&lt;/p&gt;

&lt;h1&gt;Why is vh used instead of px?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;4. Why use vh instead of px&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;px = fixed size, does not change with screen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;vh = “viewport height”. 1vh = 1% of browser window height.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you write height: 100vh, the element will always match the screen height, so it’s good for full‑screen sections and responsive designs.&lt;/p&gt;

&lt;h1&gt;Difference between padding and margin?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;5. Difference between padding and margin&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Padding&lt;/b&gt;: space &lt;b&gt;inside&lt;/b&gt; the element, between content and border. Makes the content “breathe” inside the box.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Margin&lt;/b&gt;: space &lt;b&gt;outside&lt;/b&gt; the element, between this element and other elements.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shortcut:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Padding = “inner space”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Margin = “outer space”&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;Difference between Grid and Flexbox?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;6. Difference between Grid and Flexbox&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Flexbox&lt;/b&gt;: one-dimensional → you mainly control layout in &lt;b&gt;one direction&lt;/b&gt; (row or column). Great for navbars, buttons in a row, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Grid&lt;/b&gt;: two-dimensional → you control &lt;b&gt;rows and columns together&lt;/b&gt;. Great for full page layouts, dashboards, card grids, etc.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;What are self-closing tags?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;7. What are self‑closing tags&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Self-closing tags are elements that &lt;b&gt;do not have content inside &lt;/b&gt;and traditionally don’t need a separate closing tag. &lt;b&gt;Examples:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;img&amp;gt;, &amp;lt;br&amp;gt;, &amp;lt;hr&amp;gt;, &amp;lt;input&amp;gt;, &amp;lt;meta&amp;gt;, &amp;lt;link&amp;gt;.&lt;/code&gt;&lt;br&gt;
In HTML5 you usually write them as &lt;code&gt;&amp;lt;img src="..."&amp;gt; (no need for &amp;lt;/img&amp;gt;)&lt;/code&gt;.&lt;/p&gt;

&lt;h1&gt;What is the purpose of the meta viewport tag?&lt;/h1&gt;

&lt;p&gt;&lt;b&gt;8. Purpose of the meta viewport tag&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Typical code:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;This tells the browser on mobile:&lt;/b&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Page width = device screen width&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Start at normal zoom (no auto zoom‑out)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;So the page becomes &lt;b&gt;mobile-friendly and responsive.&lt;/b&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;Reference:&lt;/h6&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.perplexity.ai/search/fea411f2-7a88-4922-8091-96ef9ada1157" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;perplexity.ai&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>beginners</category>
      <category>css</category>
      <category>frontend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>NonSemantic Tags in HTML</title>
      <dc:creator>Raja B</dc:creator>
      <pubDate>Sun, 24 May 2026 14:31:54 +0000</pubDate>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b/nonsemantic-tags-in-html-3kae</link>
      <guid>https://forem.com/raja_b_0c9d242e2c26cf063b/nonsemantic-tags-in-html-3kae</guid>
      <description>&lt;h2&gt;What are Non Semantic Tags in HTML?&lt;/h2&gt;

&lt;p&gt;&lt;b&gt;Non semantic tags&lt;/b&gt; are HTML tags that &lt;b&gt;do not tell&lt;/b&gt; you what kind of content they contain. They are &lt;b&gt;just general-purpose containers&lt;/b&gt; with &lt;b&gt;no clear meaning.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Let’s understand step-by-step.&lt;/p&gt;

&lt;h4&gt;1. What Does “Non Semantic” Mean?&lt;/h4&gt;

&lt;p&gt;The word &lt;b&gt;“non semantic”&lt;/b&gt; means &lt;b&gt;“no meaning.”&lt;/b&gt; So, non semantic tags don’t tell anything about &lt;b&gt;what’s inside them.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;For example, if you see:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;div&amp;gt;This is something&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You have &lt;b&gt;no idea&lt;/b&gt; what “something” is. It could be:

- a paragraph
 

-  a form 

-  a sidebar 

- a heading 

- or anything else.
 
This is why it’s called &lt;b&gt;non semantic&lt;/b&gt; — it &lt;b&gt;doesn’t give meaning&lt;/b&gt; to the content.&lt;/p&gt;

&lt;h4&gt;2. Why Are Non Semantic Tags Used?&lt;/h4&gt;

&lt;p&gt;Even though they don’t have meaning, non-semantic tags are still very useful. Here’s why developers use them:&lt;/p&gt;

&lt;p&gt;&lt;b&gt;a) Flexible Containers&lt;/b&gt;&lt;br&gt;
You can put any content inside a non semantic tag. It acts like an &lt;b&gt;empty box&lt;/b&gt; or a &lt;b&gt;wrapper&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;b) Grouping Elements&lt;/b&gt;&lt;br&gt;
They help you &lt;b&gt;group multiple elements&lt;/b&gt; together to apply styles or scripts.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;pre&gt;
&amp;lt;div class="card"&amp;gt;
  &amp;lt;h2&amp;gt;Title&amp;lt;/h2&amp;gt;
  &amp;lt;p&amp;gt;Description&amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;

&lt;p&gt;Here, the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; groups the title and paragraph so you can style them as one unit.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;c) Used with CSS and JavaScript&lt;/b&gt;&lt;br&gt;
You can add &lt;b&gt;classes or IDs&lt;/b&gt; to these tags to apply CSS styles or add JavaScript functionality.&lt;/p&gt;

&lt;h4&gt;3. Common Non Semantic Tags&lt;/h4&gt;

&lt;p&gt;Here are the most common non semantic tags:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;tr&gt;
    &lt;th&gt;Tag&lt;/th&gt;
    &lt;th&gt;Meaning (in simple words)&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&amp;lt;div&amp;gt;&lt;/td&gt;
    &lt;td&gt;A container or block-level box (used for layout)&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&amp;lt;span&amp;gt;&lt;/td&gt;
    &lt;td&gt;An inline container (used for small styling)&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;1. &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;: It’s short for “division”. It’s used to create sections or blocks in a webpage.&lt;br&gt;
&lt;b&gt;Example:&lt;/b&gt; &lt;code&gt;&amp;lt;div class="footer"&amp;gt;This is footer&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;2. &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;: It’s used for inline elements, like styling a single word or phrase inside a sentence.&lt;br&gt;
&lt;b&gt;Example:&lt;/b&gt; &lt;code&gt;&amp;lt;p&amp;gt;This is a &amp;lt;span class="highlight"&amp;gt;special&amp;lt;/span&amp;gt; word.&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;4. When Should You Use Non Semantic Tags?&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;There is &lt;b&gt;no suitable semantic tag&lt;/b&gt; for your content&lt;/li&gt;
  &lt;li&gt;You are &lt;b&gt;just grouping elements&lt;/b&gt; for design or scripting&lt;/li&gt;
  &lt;li&gt;You want &lt;b&gt;full control&lt;/b&gt; using CSS or JavaScript&lt;/li&gt;
  &lt;li&gt;You are creating &lt;b&gt;custom layouts&lt;/b&gt; that don’t fit standard tag meanings&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;Will be learn&lt;/h5&gt;

&lt;p&gt;Non-semantic tags are like blank boxes in HTML. They &lt;b&gt;don’t explain what’s inside&lt;/b&gt;, but they &lt;b&gt;help you group and control content&lt;/b&gt; using CSS or JavaScript.&lt;/p&gt;

&lt;p&gt;The most common non semantic tags are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; — for block-level containers&lt;/li&gt;
  &lt;li&gt;
&lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; — for inline-level containers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use them &lt;b&gt;wisely&lt;/b&gt; when there is &lt;b&gt;no meaningful tag&lt;/b&gt; available.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw9z7a5z7rfisfaz935wi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw9z7a5z7rfisfaz935wi.png" alt="NonSemantic" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;Reference:&lt;/h6&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href="https://eduitlearning.in/semantic-and-non-semantic-tags/" rel="noopener noreferrer"&gt;https://eduitlearning.in/semantic-and-non-semantic-tags/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>nonsemantic</category>
    </item>
    <item>
      <title>Semantic Tags in HTML</title>
      <dc:creator>Raja B</dc:creator>
      <pubDate>Sun, 24 May 2026 11:41:13 +0000</pubDate>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b/semantic-tags-in-html-m4n</link>
      <guid>https://forem.com/raja_b_0c9d242e2c26cf063b/semantic-tags-in-html-m4n</guid>
      <description>&lt;h1&gt;What are Semantic Tags in HTML?&lt;h1&gt;

&lt;/h1&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;b&gt;Semantic tags&lt;/b&gt; are HTML tags that clearly &lt;b&gt;describe the meaning or purpose of the content&lt;/b&gt; inside them.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;semantic&lt;/b&gt; means “with meaning.” So, a semantic tag &lt;b&gt;tells both the developer and the browser what the content is about.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Let’s break it down step by step.&lt;/p&gt;

&lt;h4&gt;1. Why Are They Called “Semantic”?&lt;/h4&gt;

&lt;p&gt;The word &lt;b&gt;“semantic”&lt;/b&gt; comes from &lt;b&gt;“meaning.”&lt;/b&gt;&lt;br&gt;
When you use semantic tags, you’re telling the browser, &lt;b&gt;“Hey, this part is a heading”&lt;/b&gt; or &lt;b&gt;“This section is a navigation bar”&lt;/b&gt; or &lt;b&gt; “This area is the main content.”&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This helps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Browsers&lt;/b&gt; understand how to display it&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Search engines&lt;/b&gt;understand what’s important&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;b&gt;Screen readers&lt;/b&gt;(used by blind users) read the content properly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A &lt;b&gt;semantic tag &lt;/b&gt;(like , , , etc.) clearly tells you what the content is for.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;article&amp;gt;This is a blog post&amp;lt;/article&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now, even without looking at the content, we know it’s a blog post, because it’s inside an &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;tag.&lt;/p&gt;

&lt;h4&gt;2. Why Should You Use Semantic Tags?&lt;/h4&gt;

&lt;p&gt;Using semantic tags has many benefits:&lt;/p&gt;

&lt;h5&gt;a) Improves Code Readability&lt;/h5&gt;

&lt;p&gt;When other developers (or even future-you) read your HTML code, it’s easier to understand.&lt;/p&gt;

&lt;p&gt;Instead of seeing this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;”header”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;”nav”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;”main”&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can write this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;header&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;main&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is much cleaner and meaningful.&lt;/p&gt;

&lt;h5&gt;b) Helps Search Engines (SEO)&lt;/h5&gt;

&lt;p&gt;Search engines like Google look at your HTML tags to decide what your page is about.&lt;/p&gt;

&lt;p&gt;Using semantic tags helps them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Index your site correctly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Show your site in search results more accurately&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;b&gt;c) Better for Accessibility&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;People who can’t see use screen readers. These tools read your HTML and speak it aloud.&lt;/p&gt;

&lt;p&gt;If you use proper tags, the tool can say:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;“This is the main content”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“This is a navigation menu”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;“This is a footer”&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives a better experience for disabled users.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;d) Future-Proof Your Code&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Browsers and tools are built to understand semantic tags better. They may add new features, improve performance, or give better support in future updates if your code is semantic.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Semantic Tags&lt;/b&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Tag          Meaning (in simple words)
&amp;lt;header&amp;gt;     Top part of the page (like a title or logo)
&amp;lt;nav&amp;gt;            Navigation menu (links to other pages)
&amp;lt;main&amp;gt;           Main content area of the page
&amp;lt;section&amp;gt;    A section of content (like a chapter)
&amp;lt;article&amp;gt;    An independent piece (like a blog post)
&amp;lt;aside&amp;gt;          Side content (like ads or side notes)
&amp;lt;footer&amp;gt;     Bottom part of the page (like copyright)
&amp;lt;figure&amp;gt;     A picture or diagram with a caption
&amp;lt;figcaption&amp;gt;     The caption for a figure or image
&amp;lt;time&amp;gt;           Shows a date or time value
&amp;lt;mark&amp;gt;           Highlights important text
&amp;lt;address&amp;gt;    Contact information
&amp;lt;summary&amp;gt;    Summary of collapsible content
&amp;lt;details&amp;gt;    Expandable section for hidden content
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;b&gt;3. Do Semantic Tags Affect How the Website Looks?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;No, not directly.&lt;/b&gt; Semantic tags don’t change the appearance of the webpage by default.&lt;/p&gt;

&lt;p&gt;You need to use &lt;b&gt;CSS&lt;/b&gt; to style them. But their main job is to &lt;b&gt;add meaning&lt;/b&gt;, not design.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;4. Where Are Semantic Tags Used?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;You use semantic tags almost everywhere in an HTML document:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Website layout (header, footer, main)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Blog posts (article, section)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Menus (nav)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Images with captions (figure, figcaption)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They make the entire HTML page more understandable.&lt;/p&gt;

&lt;h4&gt;Will be learn&lt;/h4&gt;

&lt;p&gt;Semantic tags are like &lt;b&gt;labels&lt;/b&gt; that explain what each part of your page does.&lt;/p&gt;

&lt;p&gt;Without them, your HTML is just a pile of boxes.&lt;br&gt;
With them, it becomes a &lt;b&gt;well-organized, meaningful structure &lt;/b&gt;that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Easier to read&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Easier to maintain&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Better for Google&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Better for users&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzijxvrfm3xv11kaiz3xd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzijxvrfm3xv11kaiz3xd.png" alt="Semantic Tag"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;Reference:&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://eduitlearning.in/semantic-and-non-semantic-tags/" rel="noopener noreferrer"&gt;https://eduitlearning.in/semantic-and-non-semantic-tags/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.w3schools.com/html/html5_semantic_elements.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/html/html5_semantic_elements.asp&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>semantic</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>HTML and CSS Basic</title>
      <dc:creator>Raja B</dc:creator>
      <pubDate>Sun, 17 May 2026 13:42:58 +0000</pubDate>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b/html-and-css-basic-dfm</link>
      <guid>https://forem.com/raja_b_0c9d242e2c26cf063b/html-and-css-basic-dfm</guid>
      <description>&lt;h6&gt;HTML and CSS,&lt;/h6&gt; every element is considered a rectangular "box". This concept is known as the CSS Box Model, which determines how elements are sized and spaced on a webpage

&lt;h2&gt;The Four Layers of the Box Model&lt;/h2&gt;

Each box consists of four distinct areas, layered from the inside out:

- &lt;h5&gt;Content Box:&lt;/h5&gt; 

The inner area where the actual text, images, or child elements reside

- &lt;h5&gt;Padding Box:&lt;/h5&gt; 

The transparent space between the content and the border. It inherits the background of the element.

- &lt;h5&gt;Border Box:&lt;/h5&gt;
 
A stroke or line that wraps around the padding and content

- &lt;h5&gt;Margin Box:&lt;/h5&gt;
 
The outermost transparent area that creates space between the element and its neighbors.

&lt;h2&gt;Visualization&lt;/h2&gt;

![CSS Box model]
(https://devtouploads.s3.amazonaws.com/uploads/articles/er2utzn5gdvhrcejdche.png)

&lt;h2&gt;Key Box Properties&lt;/h2&gt;

&lt;h5&gt;Box Sizing (box-sizing):&lt;/h5&gt;

- &lt;h6&gt;content-box (Default):&lt;/h6&gt;

&lt;p&gt;Width and height apply only to the content. Padding and borders are added on top, increasing the element's total size.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;h6&gt;border-box:&lt;/h6&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Width and height include content, padding, and border. This makes layout sizing more predictable.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;h5&gt;Display Types&lt;/h5&gt;&lt;/li&gt;
&lt;li&gt;

&lt;h6&gt;Block Elements:&lt;/h6&gt; Take up the full width available and start on a new line &lt;code&gt;(e.g., &amp;lt;div&amp;gt;, &amp;lt;h1&amp;gt;, &amp;lt;p&amp;gt;).&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;

&lt;h6&gt;Inline Elements:&lt;/h6&gt; Only take up as much width as necessary and do not start on new lines &lt;code&gt;(e.g., &amp;lt;span&amp;gt;, &amp;lt;a&amp;gt;)&lt;/code&gt;.What to learn first&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;Start with these HTML basics:&lt;/h6&gt;

&lt;p&gt;Page structure: &lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;, &amp;lt;html&amp;gt;, &amp;lt;head&amp;gt;, &amp;lt;body&amp;gt;.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Text tags:&lt;code&gt;&amp;lt;h1&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;strong&amp;gt;, &amp;lt;em&amp;gt;.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Links and images: &lt;code&gt;&amp;lt;a&amp;gt;, &amp;lt;img&amp;gt;.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Lists and tables: &lt;code&gt;&amp;lt;ul&amp;gt;, &amp;lt;ol&amp;gt;, &amp;lt;table&amp;gt;.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Forms: &lt;code&gt;&amp;lt;input&amp;gt;, &amp;lt;button&amp;gt;, abel&amp;gt;.&lt;/code&gt;&lt;/p&gt;

&lt;h6&gt;Then learn these CSS basics:&lt;/h6&gt;

&lt;p&gt;Selectors.&lt;/p&gt;

&lt;p&gt;Colors and backgrounds.&lt;/p&gt;

&lt;p&gt;Fonts and text styling.&lt;/p&gt;

&lt;p&gt;Box model: margin, padding, border.&lt;/p&gt;

&lt;p&gt;Layout with Flexbox and Grid.&lt;/p&gt;

&lt;p&gt;Responsive design with media queries.&lt;/p&gt;

&lt;h6&gt;Reference:&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.w3schools.com/htmlcss/htmlcss_intro.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/htmlcss/htmlcss_intro.asp&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>raja</category>
    </item>
    <item>
      <title>Basic of HTML</title>
      <dc:creator>Raja B</dc:creator>
      <pubDate>Fri, 15 May 2026 16:48:12 +0000</pubDate>
      <link>https://forem.com/raja_b_0c9d242e2c26cf063b/basic-of-html-4ffo</link>
      <guid>https://forem.com/raja_b_0c9d242e2c26cf063b/basic-of-html-4ffo</guid>
      <description>&lt;h1&gt;What is HTML?&lt;/h1&gt;

&lt;p&gt;HTML is one of the most widely used markup languages in web design worldwide. Its strengths lie in its uniform, clearly struc­tured syntax, a free open-source approach, and a rapid learning curve. If you want to get a quick start in web design without a lot of effort, HTML is a great way to design a modern, appealing website with in­ter­ac­tive elements.&lt;/p&gt;

&lt;h1&gt;What does HTML stand for?&lt;/h1&gt;

&lt;p&gt;HTML stands for “Hypertext Markup Language” and, along with Java and CSS, is one of the most widely used text-based markup languages in the world. Tim Berners-Lee, the inventor of the World Wide Web, laid the foun­da­tion of HTML in 1992 with the first HTML spec­i­fi­ca­tion. The World Wide Web Con­sor­tium (W3C) declared HTML 4.0 to be the official standard in December 1999. Since then, about 63% of all websites are based on HTML code. Currently (as of 2023), the versions XHTML and HTML5 are the most widely used for creating SEO-optimized websites.&lt;/p&gt;

&lt;h1&gt;Is HTML a pro­gram­ming language?&lt;/h1&gt;

&lt;p&gt;HTML isn’t a pro­gram­ming language. Unlike pro­gram­ming and scripting languages like PHP or JavaScript, HTML cannot be used to create al­go­rithms, tasks, con­di­tions, or loops due to its lack of command structure. That’s why HTML belongs to the markup languages. While HTML describes and struc­tures a web page with text-based, static syntax, pro­gram­ming languages create dynamic content, complex logical tasks, commands, and al­go­rithms.&lt;/p&gt;

&lt;h1&gt;HTML: HyperText Markup Language&lt;/h1&gt;


&lt;h3&gt;HTML (HyperText Markup Language)&lt;/h3&gt;is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation (CSS) or functionality/behavior (JavaScript).


&lt;h3&gt;"Hypertext"&lt;/h3&gt;refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web.

&lt;p&gt;HTML uses&lt;/p&gt;
&lt;h3&gt;"markup"&lt;/h3&gt;to annotate text, images, and other content for display in a Web browser. HTML markup includes special "elements" such as&lt;code&gt;&amp;lt;head&amp;gt;, &amp;lt;title&amp;gt;, &amp;lt;body&amp;gt;, &amp;lt;header&amp;gt;, &amp;lt;footer&amp;gt;, &amp;lt;article&amp;gt;, &amp;lt;section&amp;gt;, &amp;lt;p&amp;gt;, &amp;lt;div&amp;gt;, &amp;lt;span&amp;gt;, &amp;lt;img&amp;gt;, &amp;lt;aside&amp;gt;, &amp;lt;audio&amp;gt;, &amp;lt;canvas&amp;gt;, &amp;lt;datalist&amp;gt;, &amp;lt;details&amp;gt;, &amp;lt;embed&amp;gt;, &amp;lt;nav&amp;gt;, &amp;lt;search&amp;gt;, &amp;lt;output&amp;gt;, &amp;lt;progress&amp;gt;, &amp;lt;video&amp;gt;, &amp;lt;ul&amp;gt;, &amp;lt;ol&amp;gt;, &amp;lt;li&amp;gt;&lt;/code&gt;and many others.

&lt;h1&gt;Basic structure of an HTML document&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Page Title&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;My First Heading&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;My first paragraph.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Example Explained:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &amp;lt;!DOCTYPE html&amp;gt; declaration defines that this document is an HTML5 document&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The  element is the root element of an HTML page&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; element contains meta information about the HTML page&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;element defines a large heading&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;element defines a paragraph&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The syntax&lt;code&gt;&amp;lt;!-- This is a comment --&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;h6&gt;is used in HTML to add notes, explanations, or to disable code that you do not want the browser to display&lt;/h6&gt;

&lt;h4&gt;Short Key for Comments:&lt;/h4&gt;

&lt;p&gt;To quickly comment out a line or a selected block of code, use these shortcuts in VS Code, Sublime Text, and many other IDEs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Windows / Linux : &lt;/p&gt;

&lt;p&gt;Ctrl + /&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;macOS : &lt;/p&gt;

&lt;p&gt;Cmd + /&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;Key Points&lt;/h4&gt;

&lt;h5&gt;What it does : &lt;/h5&gt;

&lt;p&gt;Allows you to leave notes to yourself or others without the text appearing on the web page.&lt;/p&gt;

&lt;h5&gt;Debugging : &lt;/h5&gt;

&lt;p&gt;Useful for hiding code temporarily to find errors.&lt;/p&gt;

&lt;h5&gt;Alternative : &lt;/h5&gt;

&lt;p&gt;For CSS/JS, use /* comment */. For Python, use # comment.&lt;/p&gt;


&lt;h5&gt;Multi-line : &lt;h5&gt;

&lt;/h5&gt;
&lt;/h5&gt;
&lt;p&gt;On some platforms, Shift + Alt + A (Windows) &lt;br&gt;
or Shift + Option + A (Mac) can be used for block comments.&lt;/p&gt;

&lt;h6&gt;&lt;u&gt;Reference :&lt;/u&gt;&lt;/h6&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.w3schools.com/html/html_intro.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/html/html_intro.asp&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.ionos.com/digitalguide/websites/web-development/what-is-html/" rel="noopener noreferrer"&gt;https://www.ionos.com/digitalguide/websites/web-development/what-is-html/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML" rel="noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/HTML&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>basic</category>
      <category>html</category>
      <category>raja</category>
    </item>
  </channel>
</rss>
