<?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: Bhargab B</title>
    <description>The latest articles on DEV Community by Bhargab B (@bhargablinx).</description>
    <link>https://dev.to/bhargablinx</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%2F1548919%2F519bca4f-6938-43e7-857b-4640ec534f6e.png</url>
      <title>DEV Community: Bhargab B</title>
      <link>https://dev.to/bhargablinx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bhargablinx"/>
    <language>en</language>
    <item>
      <title>What is Execution Context In JavaScript?</title>
      <dc:creator>Bhargab B</dc:creator>
      <pubDate>Sat, 08 Jun 2024 08:02:38 +0000</pubDate>
      <link>https://dev.to/bhargablinx/what-is-execution-context-in-javascript-4k5g</link>
      <guid>https://dev.to/bhargablinx/what-is-execution-context-in-javascript-4k5g</guid>
      <description>&lt;h2&gt;
  
  
  JavaScript Execution Context - Internal Working of JS
&lt;/h2&gt;

&lt;h3&gt;
  
  
  In Simple Terms
&lt;/h3&gt;

&lt;p&gt;In simple terms when you run a JavaScript program, the whole program runs inside a container or box, and remember this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Everything in JavaScript happens inside an Execution Content"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Look at the diagram again! Yes, execution context in javascript has two components: memory; and code component.&lt;/p&gt;

&lt;p&gt;Let's understand both components and then we can at last we will combine all these pieces and we will be able to understand JavaScript Execution Context.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzvebcn508dgtrdw1hel.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwzvebcn508dgtrdw1hel.png" alt="What is Execution Context In JavaScript" width="700" height="700"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Memory Component&lt;/strong&gt;&lt;br&gt;
This is the section where all the variables and functions we declare in our program are stored. These variables are stored as key-value pairs i.e., &lt;code&gt;key: value&lt;/code&gt;. This memory component is also known as the variable environment&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code Component&lt;/strong&gt;&lt;br&gt;
This is the section where the codes are executed line by line (one line at a time). There is a fancy name for it &lt;strong&gt;Thread of Execution&lt;/strong&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Phases of the JavaScript Execution Context
&lt;/h3&gt;

&lt;p&gt;When you execute a &lt;code&gt;JS&lt;/code&gt; code, it goes through 2 phases in order:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;These are not official terminology, I am using them to make you understand Execution Context In JavaScript.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scanning Phase&lt;/strong&gt;: In this phase, the &lt;code&gt;JS&lt;/code&gt; engine creates the container that we discussed earlier (Execution Context). It allocates memory for the variables and functions in the memory component. The variables are assigned the value of &lt;code&gt;undefined&lt;/code&gt; and the functions are directly copied from the code to the memory component.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Execution phase&lt;/strong&gt;: In this phase, the magic happens and the &lt;code&gt;JS&lt;/code&gt; engine executes the code one line at a time. You remember in the scanning phase it assigns the value of &lt;code&gt;undefined&lt;/code&gt; to the variables, and in the execution phase the &lt;code&gt;undefined&lt;/code&gt; is replaced with the value that is declared in our code.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's understand with the help of a simple program:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt; &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

 &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addOne&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the scanning phase:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0h3e9dt6zrbdymzaify.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn0h3e9dt6zrbdymzaify.png" alt="Creation or Scanning Phase" width="700" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the execution phase:&lt;br&gt;
That &lt;code&gt;undefined&lt;/code&gt; is replaced with the actual value, which we assign in our code &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This as a whole is known as the Execution Context In JavaScript.&lt;br&gt;
I hope you understand it clearly, but if not then below is a real-life example that will help you understand it even more!&lt;/p&gt;

&lt;h3&gt;
  
  
  JavaScript Execution Context With Real Life Example
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Imagine You're at a Restaurant
&lt;/h4&gt;

&lt;p&gt;Think of &lt;code&gt;JS&lt;/code&gt; as a restaurant, where different chefs (functions) are preparing meals (executing code).&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;Execution Context&lt;/strong&gt; is like the kitchen workspace that each chef uses to prepare their meal.&lt;/p&gt;

&lt;p&gt;When the restaurant opens, the head chef (JavaScript engine) sets up the Global Execution Context. This is the main kitchen workspace where everything starts. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ingredients (variables and functions) that are available to all chefs.&lt;/li&gt;
&lt;li&gt;Utensils (methods and objects) that everyone can use.&lt;/li&gt;
&lt;li&gt;Recipes (global functions) that any chef can follow.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;makeSalad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ingredient&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;dressing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Olive Oil&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Using ingredient: &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;ingredient&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; with &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;dressing&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nf"&gt;makeSalad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Lettuce&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the function makeSalad("Lettuce") is called, the following happens:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Creation&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The workspace (Execution Context) is set up.&lt;/li&gt;
&lt;li&gt;Local ingredients (variables and functions) are declared.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ingredient&lt;/code&gt; is set to "Lettuce".&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dressing&lt;/code&gt; is declared but not yet defined.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;Execution Phase:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Local ingredients are assigned values.&lt;/li&gt;
&lt;li&gt;The function's code runs using these local items.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Execution Context (EC) is created by &lt;code&gt;js&lt;/code&gt; engine whenever a code is run&lt;/li&gt;
&lt;li&gt;EC contains two phases: creation, and execution phase&lt;/li&gt;
&lt;li&gt;When a variable is declared or a function is created, and completely new EC is created inside the global EC.&lt;/li&gt;
&lt;li&gt;The EC is the chef's workspace.&lt;/li&gt;
&lt;li&gt;The Global Execution Context is the main kitchen setup.&lt;/li&gt;
&lt;li&gt;Each Function Execution Context is a new chef's workspace, created and stacked as needed.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>jsengine</category>
      <category>developers</category>
      <category>fundamentals</category>
    </item>
    <item>
      <title>Pseudocode: Everything you need to know</title>
      <dc:creator>Bhargab B</dc:creator>
      <pubDate>Sun, 02 Jun 2024 10:00:33 +0000</pubDate>
      <link>https://dev.to/bhargablinx/pseudocode-everything-you-need-to-know-3lj2</link>
      <guid>https://dev.to/bhargablinx/pseudocode-everything-you-need-to-know-3lj2</guid>
      <description>&lt;h2&gt;
  
  
  The Ultimate Pseudocode Guide | How to use it effectively
&lt;/h2&gt;

&lt;p&gt;Before understanding how to use pseudocode, you must understand what it is and its importance. Let's get right onto it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Pseudocode is a way of describing how a computer program should work using a human-readable language, generally English. In other words, it's a simplified version of programming code written in plain English before implementing it in a specific programming language. Think of it as a bridge between how humans think and how computers operate.&lt;/p&gt;

&lt;p&gt;Pseudocode can also be referred to as a syntactical representation of a program and lacks strict syntax since it only represents the programmer's thinking process.&lt;/p&gt;

&lt;h3&gt;
  
  
  Importance of Pseudcode
&lt;/h3&gt;

&lt;p&gt;Here are the points why pseudocode is important&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Language Agnostic&lt;/strong&gt;: Pseudocode helps programmers understand and write code because it is language agnostic and allows them to focus on solving the problem at hand without getting bogged down in the exact syntax of a programming language. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visualization&lt;/strong&gt;: It also enables visualization of the entire solution to an algorithmic problem and helps break down large problems into smaller, manageable pieces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simplicity&lt;/strong&gt;: It uses simple, everyday words and phrases, avoiding the complex syntax and strict rules of programming languages.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to use pseudocode effectively?
&lt;/h3&gt;

&lt;p&gt;Here is the step-by-step guide for using pseudocode effectively:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Understand the Problem in Depth&lt;/strong&gt;: Ensure you thoroughly understand the problem without worrying about edge cases initially.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identify the Approach for Solving It&lt;/strong&gt;: Plan your approach and outline the steps needed to solve the problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start Writing&lt;/strong&gt;: Focus on the logic rather than syntax. Write down the steps in plain English.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Consistent Formatting&lt;/strong&gt;: Maintain a consistent format throughout your pseudocode. Avoid using technical jargon.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iterate and Refine&lt;/strong&gt;: Review your pseudocode, refine it, and check for potential bugs.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Examples
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Example 1: Making a Cup of Tea
&lt;/h4&gt;

&lt;p&gt;Imagine you want to write a program that makes a cup of tea. Here’s how you might write the pseudocode for that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Boil water
2. Place a tea bag in a cup
3. Pour the boiling water into the cup
4. Let the tea steep for a few minutes
5. Remove the tea bag
6. Add sugar or milk if desired
7. Stir the tea
8. Serve the tea
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Example 2: Finding the Largest Number in a List
&lt;/h4&gt;

&lt;p&gt;Imagine you want to write a program that finds the largest number in a list of numbers. Here’s how you might write the pseudocode for that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Start with an empty list of numbers
2. Initialize a variable 'largest' to be the first number in the list
3. For each number in the list:
    a. If the current number is greater than 'largest':
        i. Update 'largest' to be the current number
4. After checking all the numbers, 'largest' will hold the largest number in the list
5. Print or return 'largest'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Pseudocode is a valuable tool for programmers to understand, write, and solve coding problems. By following suggested guidelines for writing pseudocode and practicing regularly, programmers can develop a personalized style that makes sense to them and improves their overall programming skills.&lt;/p&gt;

</description>
      <category>coding</category>
      <category>pseudocode</category>
      <category>dsa</category>
      <category>problemsolving</category>
    </item>
    <item>
      <title>Ultimate HTML Reference | HTML Cheatsheet</title>
      <dc:creator>Bhargab B</dc:creator>
      <pubDate>Sat, 01 Jun 2024 09:51:16 +0000</pubDate>
      <link>https://dev.to/bhargablinx/ultimate-html-reference-html-cheatsheet-b62</link>
      <guid>https://dev.to/bhargablinx/ultimate-html-reference-html-cheatsheet-b62</guid>
      <description>&lt;h2&gt;
  
  
  A concise HTML cheatsheet for developers
&lt;/h2&gt;

&lt;p&gt;If you are someone who has just started to learn web development or an experienced web developer, this ultimate guide to HTML will be the only reference you will ever need.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note: This article is a reference material not for learning HTML. If you want to learn HTML basic &lt;a href="https://youtu.be/qz0aGYrrlhU?si=LoLe3MIR071sY2_E"&gt;click here&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Basic Tags
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Boilerplate
&lt;/h4&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&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&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;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Your 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="c"&gt;&amp;lt;!-- Your Body --&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;This is the code that every HTML file must contain.&lt;/p&gt;

&lt;h4&gt;
  
  
  Title
&lt;/h4&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;title&amp;gt;&lt;/span&gt;Your Webpage Title&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whatever you write here is shown in the title bar of the browser. Also when you bookmark the page, this is what the title of the bookmark is written by default.&lt;/p&gt;

&lt;h4&gt;
  
  
  Headings
&lt;/h4&gt;

&lt;p&gt;In HTML, there are six headings,  starting from&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;.  Here &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; is the largest among all the heading and &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; is the smallest&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;h1&amp;gt;&lt;/span&gt; Heading 1 &lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt; Heading 2 &lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt; Heading 3 &lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h4&amp;gt;&lt;/span&gt; Heading 4 &lt;span class="nt"&gt;&amp;lt;/h4&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h5&amp;gt;&lt;/span&gt; Heading 5 &lt;span class="nt"&gt;&amp;lt;/h5&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h6&amp;gt;&lt;/span&gt; Heading 6 &lt;span class="nt"&gt;&amp;lt;/h6&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Typography
&lt;/h4&gt;

&lt;h5&gt;
  
  
  paragraph tag
&lt;/h5&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;p&amp;gt;&lt;/span&gt; Hi I am a paragraph &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tag is used to create a paragraph.&lt;/p&gt;

&lt;h5&gt;
  
  
  quote tag
&lt;/h5&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;blockquote&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/blockquote&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Used to put quote - indents text from both sides&lt;/p&gt;

&lt;h5&gt;
  
  
  bold tag
&lt;/h5&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;b&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Creates bold text (not recommended instead use &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt;)&lt;/p&gt;

&lt;h5&gt;
  
  
  italic tag
&lt;/h5&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;i&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/i&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Creates italicized text (not recommended instead use &lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt;)&lt;/p&gt;

&lt;h5&gt;
  
  
  code tag
&lt;/h5&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;code&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/code&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Define some text as computer code in a document.&lt;/p&gt;

&lt;h5&gt;
  
  
  strong tag
&lt;/h5&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;strong&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/strong&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use for showing the importance of a word (usually processed in bold)&lt;/p&gt;

&lt;h5&gt;
  
  
  emphasizes tag
&lt;/h5&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;em&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;/em&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Emphasizes a word (usually processed in italics)&lt;/p&gt;

&lt;h5&gt;
  
  
  subscript tag
&lt;/h5&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;sub&amp;gt;&lt;/span&gt;Subscript&lt;span class="nt"&gt;&amp;lt;/sub&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  superscript tag
&lt;/h5&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;sup&amp;gt;&lt;/span&gt;Superscript&lt;span class="nt"&gt;&amp;lt;/sup&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h5&gt;
  
  
  Others (not used often)
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;small&amp;gt;&lt;/code&gt; reduces the size of text.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt; defines deleted text by striking a line through the text.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; defines inserted text which is usually underlined.&lt;/li&gt;
&lt;li&gt; &lt;code&gt;&amp;lt;q&amp;gt;&lt;/code&gt; is used for shorter inline quotes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;cite&amp;gt;&lt;/code&gt; is used for citing the author of a quote.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt; is used for showing the author's contact information.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;abbr&amp;gt;&lt;/code&gt; denotes an abbreviation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt; highlights text.
### Links
&lt;/li&gt;
&lt;/ul&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;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://x.com/BhargabLinx"&lt;/span&gt; &lt;span class="na"&gt;target=&lt;/span&gt;&lt;span class="s"&gt;"_blank"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; My Twitter Handle &lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The anchor tag denoted by &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;, is used to define hyperlinks that link to other pages external as well as internal&lt;br&gt;
&lt;strong&gt;Most used attributes&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;href&lt;/code&gt; specifies the URL the link takes the user to when clicked.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;download&lt;/code&gt; specifies that the target or resource clicked is downloadable.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;target&lt;/code&gt; specifies where the link is to be opened. This could be in the same or separate window.

&lt;ul&gt;
&lt;li&gt;_blank&lt;/li&gt;
&lt;li&gt;_parent&lt;/li&gt;
&lt;li&gt;_self&lt;/li&gt;
&lt;li&gt;_top&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Lists
&lt;/h3&gt;

&lt;p&gt;There are two types of lists &lt;code&gt;unordered list&lt;/code&gt; and &lt;code&gt;ordered list&lt;/code&gt;.&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="c"&gt;&amp;lt;!-- Unordered list --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;ul&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; HTML &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; CSS &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; JavaScrip t&lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- Ordered list --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;ol&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; HTML &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; CSS &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&lt;/span&gt; JavaScript &lt;span class="nt"&gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ol&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Container
&lt;/h3&gt;

&lt;p&gt;Container tags don't have any meaning on their own, they are the tags that contain some data such as text, images, etc. There are many container tags in HTML. Some of the most used container tags are:&lt;/p&gt;

&lt;h4&gt;
  
  
  div tag
&lt;/h4&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&amp;gt;&lt;/span&gt; This is block &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The div tag is used to make blocks in the document. It is a block element.&lt;/p&gt;

&lt;h4&gt;
  
  
  span tag
&lt;/h4&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;span&amp;gt;&lt;/span&gt; This is span block &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similar to &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; but it is inclined to content&lt;/p&gt;

&lt;h3&gt;
  
  
  Forms
&lt;/h3&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;form&amp;gt;&lt;/span&gt;
.
form elements
.
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tag is used to create a form in HTML, which is used to get user inputs. The &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element is a container for different types of input elements, such as text fields, checkboxes, radio buttons, submit buttons, etc. Here we have included text and password input, a checkbox, a radio and submit button, a dropdown list, and many more. &lt;br&gt;
Here are the list of elements that can be added to the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt; element to make it useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;: This element can be displayed in several ways, depending on the type attribute.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt;: This element defines a label for several form elements.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;select&amp;gt;&lt;/code&gt;: This element defines a drop-down list&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;textarea&amp;gt;&lt;/code&gt;: This element defines a multi-line input field (a text area):&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt;: This element defines a clickable button&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt;: This element is used to group related data in a form&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;legend&amp;gt;&lt;/code&gt;: The &lt;code&gt;&amp;lt;legend&amp;gt;&lt;/code&gt; element defines a caption for the &lt;code&gt;&amp;lt;fieldset&amp;gt;&lt;/code&gt; element.
&lt;/li&gt;
&lt;/ul&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;form&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;"/action_page.php"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;fieldset&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;legend&amp;gt;&lt;/span&gt;Personalia:&lt;span class="nt"&gt;&amp;lt;/legend&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"fname"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;First name:&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"fname"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"fname"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"Bhargab"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for=&lt;/span&gt;&lt;span class="s"&gt;"lname"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Last name:&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"lname"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"lname"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"Unknow"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"Submit"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/fieldset&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_legend"&gt;Click Here&lt;/a&gt;: for live preview&lt;/p&gt;

&lt;p&gt;Learn more about it &lt;a href="https://www.w3schools.com/html/html_form_elements.asp"&gt;here!&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Symbols
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Less than (&amp;lt;)
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h4&gt;
  
  
  Greater than (&amp;gt;)
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h4&gt;
  
  
  Dollar ($)
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h4&gt;
  
  
  Copyright Symbol (©)
&lt;/h4&gt;



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

&lt;/div&gt;



&lt;h3&gt;
  
  
  Semantic Elements
&lt;/h3&gt;

&lt;p&gt;Semantic elements mean elements with a meaning. In simple terms, semantic elements are those that convey their purpose clearly through their name.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;: This element specifies independent, self-contained content.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;: This element defines a section in a document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;: This element defines a section for the navigation bar&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;: This element defines the heading section of a web page&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;: This element defines the footer section of a web page&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt;: This element defines some content aside from the content it is placed in (like a sidebar).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;figure&amp;gt;&lt;/code&gt;: This element defines a figure in the content
Other are:&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;figcaption&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt;`&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;time&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuidai4uw7m9f903ei2p4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuidai4uw7m9f903ei2p4.png" alt="Image Credit: [W3School](https://www.w3schools.com/)" width="219" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Meta Tags
&lt;/h3&gt;

&lt;p&gt;This is data about the document, which is not part of the main content.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;meta charset="UTF-8"&amp;gt;&lt;/code&gt;&lt;/p&gt;

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