<?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: Akhlak Hossain Jim</title>
    <description>The latest articles on DEV Community by Akhlak Hossain Jim (@akhlakhossainjim).</description>
    <link>https://dev.to/akhlakhossainjim</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%2F776333%2F96690a35-8b1c-41cf-afda-e8e783eb047c.jpeg</url>
      <title>DEV Community: Akhlak Hossain Jim</title>
      <link>https://dev.to/akhlakhossainjim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/akhlakhossainjim"/>
    <language>en</language>
    <item>
      <title>HTML Attributes</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Thu, 10 Mar 2022 06:25:24 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/html-attributes-1b42</link>
      <guid>https://dev.to/akhlakhossainjim/html-attributes-1b42</guid>
      <description>&lt;h2&gt;
  
  
  What are attributes?
&lt;/h2&gt;

&lt;p&gt;In an easy way, it's the first creepy thing you will learn in HTML that won't make any sense at the time. Because, well it doesn't affect much for most of them.&lt;/p&gt;

&lt;p&gt;But for some, it's necessary like &lt;code&gt;img&lt;/code&gt;, &lt;code&gt;a&lt;/code&gt;, etc.&lt;/p&gt;

&lt;p&gt;In a professional way, as a web developer, we develop code for vast fo people and we need a beautiful and interactive website that a user will love. So we use them.&lt;/p&gt;

&lt;p&gt;I will talk about the common attributes,&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;src&lt;/code&gt; and &lt;code&gt;alt&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;src&lt;/code&gt; is an essential attribute for the &lt;code&gt;&amp;lt;audio&amp;gt;, &amp;lt;embed&amp;gt;, &amp;lt;iframe&amp;gt;, &amp;lt;img&amp;gt;, &amp;lt;input&amp;gt;, &amp;lt;script&amp;gt;, &amp;lt;source&amp;gt;, &amp;lt;track&amp;gt;, &amp;lt;video&amp;gt;&lt;/code&gt; tag to function. So in &lt;code&gt;img&lt;/code&gt; tag, we use something like this &lt;code&gt;&amp;lt;img src="my_image.png" alt="" &amp;gt;&lt;/code&gt; So, &lt;code&gt;src&lt;/code&gt; use for mentioning the URL for the image. And don't forget to use a descriptive &lt;code&gt;alt&lt;/code&gt; tag, because if anything goes wrong with the URL it will show the text instead. So finally It will look something like this &lt;code&gt;&amp;lt;img src="my_image.png" alt="a demo image" &amp;gt;&lt;/code&gt;. Another reason for using &lt;code&gt;alt&lt;/code&gt; text is, the people uses a browser reader for their browsing experience the browser reader reads the &lt;code&gt;alt&lt;/code&gt; text for an &lt;code&gt;img&lt;/code&gt; tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;href&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;It is necessary for the &lt;code&gt;a&lt;/code&gt; tag to work. It defines the address you will be going after clicking the text within an &lt;code&gt;a&lt;/code&gt; tag. So, we use it like &lt;code&gt;&amp;lt;a href="https://ah-jim-seed.web.app/"&amp;gt;my website&amp;lt;/a&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  class and id
&lt;/h3&gt;

&lt;p&gt;Oh man, These are the most common day-to-day used attributes for you as a web developer. You will use them to style an element or make that interactive. You can use in any HTML element in the opening tag like &lt;code&gt;&amp;lt;tagName class="" id=""&amp;gt;&lt;/code&gt; ie, &lt;code&gt;&amp;lt;div class="demo__class" id="unique_ID"&amp;gt;&lt;/code&gt;. One thing to keep in mind here, the &lt;code&gt;class&lt;/code&gt; can be repeatable on the page but the &lt;code&gt;id&lt;/code&gt;s should be unique on that particular page and they are not required to write HTML code.&lt;/p&gt;

&lt;h3&gt;
  
  
  height, width, and style
&lt;/h3&gt;

&lt;p&gt;These are optional and you use them in any of the tags you can use in the &lt;code&gt;body&lt;/code&gt; tag. So, height defines the right of that element, width defines the width, and style let you use CSS within the tag itself. you can write them this way &lt;code&gt;&amp;lt;p height="100px" width="20px" style="color: red;"&amp;gt;...&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  lang
&lt;/h3&gt;

&lt;p&gt;Lang is used to defining the language used in the element. The value are language code, it can be used as &lt;code&gt;&amp;lt;html lang="en"&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In the &lt;code&gt;head&lt;/code&gt; tag we use different sets of tags and attributes we will discuss them next week.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Reat.js Internationalization</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Wed, 02 Mar 2022 17:03:52 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/reatjs-internationalization-45me</link>
      <guid>https://dev.to/akhlakhossainjim/reatjs-internationalization-45me</guid>
      <description>&lt;p&gt;I recently learned about the implementation of internationalization in react app. Let me tell you the process.&lt;/p&gt;

&lt;p&gt;There is a lot of libraries to help you implement i18n in React.js but I used i18next for the task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install i18next react-i18next i18next-browser-languagedetector
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let's install a few packages to make it work. Like &lt;strong&gt;i18next&lt;/strong&gt;, &lt;strong&gt;react-i18next&lt;/strong&gt;, and &lt;strong&gt;i18next-browser-languagedetector&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Just run the snippet in the terminal.&lt;/p&gt;

&lt;p&gt;Then create a file named "&lt;strong&gt;i18n.js&lt;/strong&gt;" or whatever you have chosen to, then add the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector";


import English from "./en/translations";
import Bangla from "./bn/translations";


i18n
  .use(LanguageDetector)
  .use(initReactI18next)
  .init({
    // we init with resources
    resources: {
      English: English,
      Bangla: Bangla,

    },
    fallbackLng: "English",
    debug: true,


    // have a common namespace used around the full app
    ns: ["translations"],
    defaultNS: "translations",


    keySeparator: false, // we use content as keys


    interpolation: {
      escapeValue: false,
    },
  });


export default i18n;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I know there is no such file called &lt;strong&gt;English&lt;/strong&gt; in the "&lt;em&gt;./en/translations&lt;/em&gt;" folder, and we will create that later. But for now, let's move on to the next step.&lt;/p&gt;

&lt;p&gt;In the index.js file add the following line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import "./i18n";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By this translations are now globally accessible.&lt;/p&gt;

&lt;p&gt;Now let's create the translations,&lt;/p&gt;

&lt;p&gt;First, create folders and files in the following structure:&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%2Fyeqyyrorfc0qrt8m0g8b.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%2Fyeqyyrorfc0qrt8m0g8b.png" alt="folder structure" width="169" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and add translations, &lt;/p&gt;

&lt;p&gt;In &lt;em&gt;en/translations.js&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const English = {
  translations: {
    "NAME": "Akhlak Hossain Jim",
    ...
  },
};

export default English;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And in bn/translations.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const Bangla = {
  translations: {
    "NAME": "আখলাক হোসেন জিম",
    ...
  },
};

export default Bangla;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this way, you can set as many keys and values with short names and strings.&lt;/p&gt;

&lt;p&gt;And it's now time for using it. Let's go to the App.js file or wherever you want to use, and use as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useTranslation } from "react-i18next";


export default function App() {
  const { t } = useTranslation();


  return (
    &amp;lt;div&amp;gt;{t("NAME")}&amp;lt;/div&amp;gt;
  );
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now it's all set.&lt;/p&gt;

&lt;p&gt;These are the basic steps for adding i18next.&lt;/p&gt;

</description>
      <category>react</category>
      <category>i18</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Tag Breakdown🧱</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Tue, 01 Feb 2022 07:04:25 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/tag-breakdown-3dl0</link>
      <guid>https://dev.to/akhlakhossainjim/tag-breakdown-3dl0</guid>
      <description>&lt;p&gt;Have you wondered, why are we writing HTML elements like &lt;code&gt;&amp;lt;p&amp;gt;...&amp;lt;/p&amp;gt;&lt;/code&gt; or some structure like that?&lt;/p&gt;

&lt;p&gt;And what the cr*p is an HTML element, in the first place?&lt;/p&gt;

&lt;p&gt;Let me demonstrate first for an example,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;My Cat is very grumpy&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fq1sg69t961eqhjcot9y3.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%2Fq1sg69t961eqhjcot9y3.png" alt="Element anatomy from MDN documentation" width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Opening tag:&lt;/strong&gt; It instructs a browser, "Hey you, now start reading content after me as a paragraph, or whatever the tag I meant for."&lt;br&gt;
So, as&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Browsers read from Top to Bottom &amp;amp; Left to Right.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It will read the content as a paragraph.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Content:&lt;/strong&gt; This is the part we, as a user or viewer see. So, the letters you are seeing as a word and sentence, is the part that is written as content in HTML.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Closing Tag:&lt;/strong&gt; This is the sign for browsers that, "You have done a good job, now you can stop reading content as paragraph and move on for next instruction."&lt;/p&gt;

&lt;p&gt;So, let's back to the second question: What an HTML element is?&lt;br&gt;
So, in general,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The consistency of the opening tag, content, and closing tag is called an HTML element.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But, that's not the only way of writing an element. Elements can be a lot more complex and nested in other elements. Like, hope you remembered from the last week &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; tag and &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag was inside &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag/element. And we can nest other tags as well, like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;My cat is &amp;lt;strong&amp;gt;very grumpy.&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Will display 'My cat is &lt;strong&gt;very grumpy.&lt;/strong&gt;'&lt;/p&gt;

&lt;p&gt;But, there is some tag/element that don't need content or closing tag, ie:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="image.jpg" alt="" &amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tag is used for showing an image. So, this will be an image element, but it doesn't need any content or closing tag. It's called a self-closing tag (But there is a lot. So we will dedicate our week to the image element later on.)&lt;/p&gt;

&lt;p&gt;And tag uses attributes simply for their name or some complex instruction or accessibility. We will be discussing those in the next week so till then, stay safe.&lt;/p&gt;

&lt;p&gt;Visit &lt;a href="https://ah-jim-seed.web.app/" rel="noopener noreferrer"&gt;This Web App&lt;/a&gt; for all posts in one place.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Center a Div | Jim</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Sat, 29 Jan 2022 11:23:24 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/center-a-div-jim-me9</link>
      <guid>https://dev.to/akhlakhossainjim/center-a-div-jim-me9</guid>
      <description>&lt;p&gt;Centering a div can be tricky at the beginning.&lt;/p&gt;

&lt;p&gt;But no worries, It's simple and you can do it in a lot of ways,&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; HTML code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class='parent'&amp;gt;
  &amp;lt;div class='child'&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Using flex:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.parent {
  display: flex;
  align-items: center;
  justify-content: center;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and whatever the case is your child element is always centered.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using grid:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.parent {
  display: grid;
  align-items: center;
  justify-content: center;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Using grid: (you kidding! again!)
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.parent {
  display: grid;
  place-items: center;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's just a shortcut of using grid.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Involving both elements:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.parent {
  display: flex;
}
.parent .child {
  margin: auto;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.parent {
  display: grid;
}
.parent .child {
  margin: auto;
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And there you go. You can now center your element however you want.&lt;/p&gt;

&lt;p&gt;See, this &lt;a href="https://codepen.io/akhlak-hossain-jim/pen/ZEabOZL?editors=1100" rel="noopener noreferrer"&gt;Pen&lt;/a&gt; as an example reference.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>HTML Anatomy | Jim</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Sat, 29 Jan 2022 09:34:07 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/html-anatomy-jim-355a</link>
      <guid>https://dev.to/akhlakhossainjim/html-anatomy-jim-355a</guid>
      <description>&lt;p&gt;As HTML is the soul of the web, we must know how it works (we will focus on writing HTML).&lt;br&gt;
Even though the HTML has different versions in his family, we only speak in the updated version, which is HTML5. So let's start wondering about HTML5.&lt;br&gt;
So this is the basic HTML page structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;

  &amp;lt;title&amp;gt;Title of the Page&amp;lt;/title&amp;gt;

  &amp;lt;/head&amp;gt;


  &amp;lt;body&amp;gt;

    &amp;lt;h1&amp;gt;A Heading&amp;lt;/h1&amp;gt;
    &amp;lt;p&amp;gt;A paragraph.&amp;lt;/p&amp;gt;

  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There you go with your first HTML code.&lt;br&gt;
But wait a minute 😗, what is that? I got the 'Title of the Page', 'A Heading', and 'A Paragraph', but what are those in &amp;lt;..&amp;gt;..&amp;lt;/..&amp;gt;?&lt;br&gt;
Right these are HTML tags. Let me break it down.&lt;br&gt;
First,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;is telling the browser, "Hey, look, I am an HTML5 document. So don't try to read me like other versions of my family, Just read me like me (HTML5)".&lt;br&gt;
So, the browser hears the soul and reads the rest.&lt;br&gt;
Then,&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;This tag is the root element of the HTML page. So whatever you are seeing right now is in between this tag.&lt;br&gt;
Next, we have,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which tells the browser some useful information about your website/page that you and I don't see so often. In between, we declare the title, description, keywords that appear in the search result. It also holds the CSS and JavaScript contents, character set declarations, and more. Which we will be discussing later on. let's move on to the&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;tag. Oh, man! Shouldn't you give your page a name? And if you are saving the page to the bookmark, what is the name your browser should remember(save)/reference it? So this is how the web knows the name of your web or HTML page. Like&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%2Fhd08nx0l2qtyuvtqhn5m.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%2Fhd08nx0l2qtyuvtqhn5m.png" alt="Title in web" width="506" height="48"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oh, that's a lot we don't see, do we?&lt;br&gt;
Now, time to discover what viewers are seeing on the website.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tag tells the browser, "Browser, listen, I've given you a lot of information that viewers can't see. Now whatever declared in between me, show that to the viewers."&lt;br&gt;
Let's declare some,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;A Heading&amp;lt;/h1&amp;gt;

&amp;lt;p&amp;gt;A paragraph.&amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Which gives us,&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%2Fe0cfwbnt6z4r7l49ig3p.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%2Fe0cfwbnt6z4r7l49ig3p.png" alt="HTML preview" width="506" height="263"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With &lt;code&gt;&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;/code&gt; you the browser give me a big size of heading.&lt;br&gt;
And with &lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt; you just declared a simple text.&lt;br&gt;
&lt;strong&gt;Note&lt;/strong&gt;, Html doesn't care about extra spaces. Extra spaces will be removed automatically by the browser.&lt;br&gt;
With everything we just discussed, the web page looks like,&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%2Fzzcgjt9wo9pqzy8qpfls.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%2Fzzcgjt9wo9pqzy8qpfls.png" alt="Web preview" width="425" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To know even more, visit: &lt;a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started" rel="noopener noreferrer"&gt;MDN Doc&lt;/a&gt;&lt;br&gt;
Subscribe to LinkedIn &lt;a href="https://www.linkedin.com/newsletters/html-time-6888745679510999041/" rel="noopener noreferrer"&gt;News Letter&lt;/a&gt; &lt;br&gt;
To see everything in one place, Check and install this web app: &lt;a href="https://html-time.vercel.app/" rel="noopener noreferrer"&gt;Web App&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>design</category>
      <category>beginners</category>
      <category>html</category>
    </item>
    <item>
      <title>Console.table() | Jim</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Sun, 16 Jan 2022 15:22:46 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/consoletable-jim-nb3</link>
      <guid>https://dev.to/akhlakhossainjim/consoletable-jim-nb3</guid>
      <description>&lt;p&gt;What is &lt;code&gt;console.table()&lt;/code&gt;?&lt;/p&gt;

&lt;p&gt;I know you are mostly using &lt;code&gt;console.log()&lt;/code&gt; for displaying some data for a lot of reasons. One of the reasons might be to just show a fetched array of data.&lt;/p&gt;

&lt;p&gt;Please stop doing that, there is a best method for showing an array of data, which actually shows the JSON/array data as a data table. Which makes debugging or seeing data in a more readable way. You can see the field name at the top just like the table.&lt;/p&gt;

&lt;p&gt;It is as you can guess is &lt;code&gt;console.table()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It shows all the fields even if some object might not have that particular field value(the box remains empty). So you don't have to look through all the data if you know, how hard it is to see a big array of objects.&lt;/p&gt;

&lt;p&gt;So, at least try that out to make your life easier.&lt;/p&gt;

&lt;p&gt;To know more check the MDN documentation: &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/console/table" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>debugging</category>
    </item>
    <item>
      <title>MongoDB Submission Post Jim Airbnb</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Wed, 12 Jan 2022 12:23:49 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/mongodb-submission-post-jim-airbnb-5hio</link>
      <guid>https://dev.to/akhlakhossainjim/mongodb-submission-post-jim-airbnb-5hio</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Submission Category: Choose Your Own Adventure
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Link to Code &lt;a href="https://github.com/Akhlak-Hossain-Jim/mern-project-1" rel="noopener noreferrer"&gt;Here.&lt;/a&gt;
&lt;/h3&gt;

&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;See video &lt;a href="https://www.loom.com/share/e0575f5d4807422a853b490ca3ce36bb" rel="noopener noreferrer"&gt;here.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tech Stack:&lt;/p&gt;

&lt;p&gt;Frontend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React.js&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Backend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Node.jd&lt;/li&gt;
&lt;li&gt;express.js&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Database:&lt;/p&gt;

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

</description>
      <category>atlashackathon</category>
    </item>
    <item>
      <title>What is SSR or Server-side rendering?</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Mon, 10 Jan 2022 17:54:42 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/what-is-ssr-or-server-side-rendering-11k5</link>
      <guid>https://dev.to/akhlakhossainjim/what-is-ssr-or-server-side-rendering-11k5</guid>
      <description>&lt;p&gt;In the arena of &lt;strong&gt;SPA&lt;/strong&gt;s (&lt;strong&gt;Single Page Application&lt;/strong&gt;) or React/Vue/Angular it's essential to know what server-side rendering is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So, What is server-side rendering?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Server-side rendering is what you can say rendering in server.&lt;/p&gt;

&lt;p&gt;As all JS libraries give us some functions that actually render all HTML, all styles, and all interactivity. So, that is what gives you the fast loading. But here comes the tricky part all browsers may not support JavaScript or in some cases, you shouldn't rely on JavaScript.&lt;/p&gt;

&lt;p&gt;So in server-side rendering, all JavaScript functions run in the Server, and when your browser requests for data, it provides the compiled HTML, CSS, etc. Your website just renders like a pure HTML, CSS-written website.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Okay, But why should I care?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this bright time of technology we just don't write HTML. It's the digital face of your brand. So you must ensure that everyone can see what you intended everyone to see. You cannot predict the end-user issues or what and what not that browser doesn't supports but for sure that browser supports plain HTML, CSS, so you should provide that as much as you can, to prevent unexpected behavior or an error.&lt;/p&gt;

&lt;p&gt;That's where server-side rendering comes in handy. As it provides the server-side rendering, it actually helps the browser or any browser that asks for data to show it doesn't matter if that browser supports JavaScript or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How can we do that?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are lots of frameworks out there, are just ready for use like Next.js, Gatsby.js. I personally like to use Next.js but every other framework is fine as well. It also provides code splitting and a whole other bunch of handy functionality. But with all of this, It's just making sure your powerful JS framework gives the most out of it, by ensuring server-side rendering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are there any other rendering methods out there?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, as from previous you can guess that the framework provided JS functions can be run by and in your browser (which all updated browsers can just run fine) but ensuring the best user experience is what we frontend developers do.&lt;/p&gt;

&lt;p&gt;So lastly, there is a lot of libraries and frameworks for you to make a difference, choose what works for you best and keep accessibility in mind and do good deeds.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>Import your Contribution from Bitbucket to GitHub | By Jim</title>
      <dc:creator>Akhlak Hossain Jim</dc:creator>
      <pubDate>Sun, 19 Dec 2021 15:30:15 +0000</pubDate>
      <link>https://dev.to/akhlakhossainjim/import-your-contribution-from-bitbucket-to-github-by-jim-360p</link>
      <guid>https://dev.to/akhlakhossainjim/import-your-contribution-from-bitbucket-to-github-by-jim-360p</guid>
      <description>&lt;p&gt;GitHub is one of the most popular Version Control Software in the software industry. And also popular with software developers because of its simplicity, beginner-friendly, and a lot of functionality that developers love. &lt;/p&gt;

&lt;p&gt;One of the most valuable functionality is showing the account's activity. And even a lot of company asks to provide candidates GitHub profile for consideration. For that, it becomes important to show your activities there.&lt;/p&gt;

&lt;p&gt;But the problem is, GitHub isn't the only solution out there. There is Bitbucket, GitLab, and many more for Version Control. So, let's say your company is using Bitbucket instead of GitHub. Using them is pretty much the same with git-bash. But in GitHub, that won't be recorded as an activity. That's problematic because you also need to show the activities on GitHub.&lt;/p&gt;

&lt;p&gt;So, how can you make your Bitbucket activities visible in GitHub as well?&lt;br&gt;
You can find some tools to do that, But you can also solve the issue using PowerShell.&lt;br&gt;
And I found it very easy and useful.&lt;/p&gt;

&lt;p&gt;So you can run the below code to do all things at once.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone --mirror https://user-name@bitbucket.org/some-app.git ; cd .\some-app.git ; git remote rename origin bitbucket ; git remote add origin https://github.com/user-name/github-version.git ; git push origin master ; cd .. ; Remove-Item ".\some-app.git" -Recurse -Force
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;Alert&lt;/em&gt;&lt;/strong&gt; You should have a repo dedicated to the project you are transferring. Replace the &lt;code&gt;some-app.git&lt;/code&gt; to your [repo name].git, and change the &lt;code&gt;user-name&lt;/code&gt; to your user name. And that's it, you are good to go.&lt;/p&gt;

&lt;p&gt;If you want to know more about what's going on? Then, read below.&lt;/p&gt;

&lt;p&gt;So, let me break down the steps for you to understand what's going on there,&lt;/p&gt;

&lt;p&gt;So first of all, you are pulling your code from Bitbucket to your Local machine by using &lt;code&gt;git clone --mirror https://user-name@bitbucket.org/some-app.git&lt;/code&gt;.&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Note&lt;/em&gt;&lt;/strong&gt;: Use your repo link instead of &lt;code&gt;https://user-name@bitbucket.org/some-app.git&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;After that, what we are doing is we are just going to that directory we just pulled out from Bitbucket by &lt;code&gt;cd .\some-app.git&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Note&lt;/em&gt;&lt;/strong&gt;: use the &lt;code&gt;.\some-app.git&lt;/code&gt; should be your &lt;code&gt;[repo name].git&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Now, It's time to get excited. Because we are gonna be pushing this to GitHub.&lt;/p&gt;

&lt;p&gt;So first, we are changing the &lt;code&gt;origin&lt;/code&gt; of the project (&lt;strong&gt;&lt;em&gt;&lt;code&gt;origin&lt;/code&gt; is something that tells in which Version Control Software is the item has been stored&lt;/em&gt;&lt;/strong&gt; ) by &lt;code&gt;git remote rename origin bitbucket&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Secondly, we are adding the origin to a Github repo by &lt;code&gt;git remote add origin https://github.com/user-name/github-version.git&lt;/code&gt;.&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Note&lt;/em&gt;&lt;/strong&gt;: You should have a Github repo dedicated to the project and change the &lt;code&gt;https://github.com/user-name/github-version.git&lt;/code&gt; link to your repo link.&lt;/p&gt;

&lt;p&gt;Thirdly, we are pushing the codes to Github by &lt;code&gt;git push origin master&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Finally, we are gonna be cleaning the files/folders in your local machine by &lt;code&gt;cd ..&lt;/code&gt; going back to the parent folder and removing all files by &lt;code&gt;Remove-Item ".\some-app.git" -Recurse -Force&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Bonus, You can do the same to add your contribution from GitLab to Github with the same process but instead of bitbucket or bitbucket repo link add gitlab and gitlab repo link.&lt;/p&gt;

&lt;p&gt;Please let me any questions in the comment. And please share.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br&gt;
&lt;a href="https://ah-jim-seed.web.app" rel="noopener noreferrer"&gt;Akhlak Hossain Jim&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tooling</category>
      <category>github</category>
      <category>bitbucket</category>
    </item>
  </channel>
</rss>
