<?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: MurtazaNeher</title>
    <description>The latest articles on Forem by MurtazaNeher (@murtazaneher).</description>
    <link>https://forem.com/murtazaneher</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%2F936267%2F5d8c6730-286b-4efe-8718-a2545376c5e2.png</url>
      <title>Forem: MurtazaNeher</title>
      <link>https://forem.com/murtazaneher</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/murtazaneher"/>
    <language>en</language>
    <item>
      <title>HTML SVG</title>
      <dc:creator>MurtazaNeher</dc:creator>
      <pubDate>Mon, 03 Oct 2022 04:54:13 +0000</pubDate>
      <link>https://forem.com/murtazaneher/html-svg-2f0k</link>
      <guid>https://forem.com/murtazaneher/html-svg-2f0k</guid>
      <description>&lt;p&gt;HTML SVG is a modularized language which is used to describe graphics in XML. It describe two-dimensional vector and mixed vector/raster graphics in XML. It is a W3C recommendation. SVG images and their behaviors are defined in XML text files. So as XML files, you can create and edit an SVG image with text editor, but generally drawing programs like inkspace are preferred to create it.&lt;/p&gt;

&lt;p&gt;SVG is mostly used for vector type diagrams like pie charts, 2-Dimensional graphs in an X,Y coordinate system etc.&lt;/p&gt;

&lt;p&gt;The  element specifies the root of a SVG fragment. You can animate every element and every attribute in SVG files.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;HTML SVG Circle Example&lt;br&gt;
*&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;&amp;lt;svg width="100" height="100"&amp;gt;  
 &amp;lt;circle cx="50" cy="50" r="40" stroke="yellow" stroke-width="4" fill="red" /&amp;gt;  
&amp;lt;/svg&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fh6wl25lu0iy9dyd7j77n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fh6wl25lu0iy9dyd7j77n.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML SVG Rectangle Example&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;&amp;lt;svg width="200" height="100"&amp;gt;  
  &amp;lt;rect width="200" height="100" stroke="yellow" stroke-width="4" fill="red" /&amp;gt;  
&amp;lt;/svg&amp;gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fdvwc8ynd4b7hj11w2t4l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fdvwc8ynd4b7hj11w2t4l.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Javascript Variables</title>
      <dc:creator>MurtazaNeher</dc:creator>
      <pubDate>Mon, 03 Oct 2022 04:45:56 +0000</pubDate>
      <link>https://forem.com/murtazaneher/javascript-variables-39m7</link>
      <guid>https://forem.com/murtazaneher/javascript-variables-39m7</guid>
      <description>&lt;p&gt;JavaScript (JS) is a lightweight, interpreted compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages. In this blog I will discuss the variables used in JavaScript Language.&lt;/p&gt;

&lt;p&gt;Firstly to discuss what actually are variable ? Variables are used to store data values. They are used to contain values which can be used later in the program for different operations and algorithms. A variable can only contain one value at a time, which can be of any data type. Meaning either a string, number, boolean, array, object, function or null or undefined.&lt;/p&gt;

&lt;p&gt;Now, In JavaScript we have 3 keywords for variables, Const, var &amp;amp; let.&lt;br&gt;
While var was the OG variable declaration in JS, const and let were introduced with ES6.&lt;/p&gt;

&lt;p&gt;Var : Scope of var can be global or local depending on where is it declared. It means if any variable with var is declared outside function , it can be used throughout the program , while if it is declared inside the function it can only be used inside the function.&lt;/p&gt;

&lt;p&gt;Hoisting of Var : Basic meaning of hoist is to pull something up or lift , hoisting is basically a mechanism where declarations of Variables and functions move to top of the scope wherever they are declared before code execution starts.&lt;br&gt;
When var variables are hoisted to top they are initialized with value of "undefined".&lt;/p&gt;

&lt;p&gt;Const : Const variable keyword was introduced with ES6 in 2015.&lt;br&gt;
As the name of the keyword suggests const is used to define variables that are constant, it sounds a little bit oxymoronic but in other words we can say Const variables cannot be reassigned, if we declare a const array we can make changes in it but cannot reassign it. It also cannot be re-declared. Since const cannot be redeclared it has to initialized at the time of declaration .Const has a block scope which I will explain with use of a example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const hello="murtaza";
{
const hello="how";
console.log(hello);
// returns "how"
}
console.log(hello);
//returns "murtaza
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let : Just like const let is also a block scoped variable keyword. Let can be updated but it cannot be re-declared. Just like var and const , let declaration is hoisted to top , while var is initialized with "undefined" , const and let are not initialized,&lt;br&gt;
so if we try a to use a variable with let keyword without initializing it , it will give "Reference Error".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;greeting = 4;
console.log(greeting);
let greeting;
// it returns "error: Uncaught ReferenceError: Cannot access 'g' before initialization"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>CSS Box Model</title>
      <dc:creator>MurtazaNeher</dc:creator>
      <pubDate>Mon, 03 Oct 2022 04:24:36 +0000</pubDate>
      <link>https://forem.com/murtazaneher/css-box-model-2g5d</link>
      <guid>https://forem.com/murtazaneher/css-box-model-2g5d</guid>
      <description>&lt;p&gt;The CSS box model is a set of rules that help dictate how items are displayed within your website or web project. It defines the parameters of elements, their boundaries, and spacing both in and outside the target element.&lt;/p&gt;

&lt;p&gt;This means any web page you see is made up of elements wrapped in rectangular boxes and arranged in relation to each other. These elements can exist beside, above, below, and within each other, depending on the type of element they are. &lt;br&gt;
There are two types of HTML elements: block-level elements and inline elements. Let's take a closer look at each below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Block-Level Elements&lt;/strong&gt;&lt;br&gt;
By default, block-level elements start on a new line and take up 100% of the space available — which might be the full width of the viewport or its container if it’s inside another element. Since they start on a new line by default, block-level elements break the flow of the document.With the padding, border, and margin properties applied to a block-level element, other elements will be forced away from the box around the element. As a result of this — and the fact that they span the full width of their container — block-level elements take up more space than inline elements and can create larger structures.&lt;/p&gt;

&lt;p&gt;_Block-level elements include the following: _&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; &amp;lt;h1&amp;gt; &amp;lt;h2&amp;gt; &amp;lt;h3&amp;gt; &amp;lt;h4&amp;gt; &amp;lt;h5&amp;gt; &amp;lt;h6&amp;gt; &amp;lt;ol&amp;gt; &amp;lt;ul&amp;gt; &amp;lt;pre&amp;gt; &amp;lt;address&amp;gt; &amp;lt;blockquote&amp;gt; &amp;lt;dl&amp;gt; &amp;lt;div&amp;gt; &amp;lt;fieldset&amp;gt; &amp;lt;form&amp;gt; &amp;lt;hr&amp;gt; &amp;lt;nonscript&amp;gt; &amp;lt;table&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Inline Elements&lt;/strong&gt;&lt;br&gt;
By default, inline elements do not begin on a new line or take up the full width of the viewport. Width and height properties do not apply. Unlike block-level elements, inline elements do not break the flow of the document. &lt;/p&gt;

&lt;p&gt;Inline elements can contain other inline elements and data but not block-level elements. For example, a paragraph element can contain an emphasis element — but not a heading element. &lt;/p&gt;

&lt;p&gt;If the padding, border, and margin properties are applied vertically, other inline boxes will not be forced away from the box around the element. If the padding, border, and margin properties are applied horizontally, other inline elements will be forced away from the box around the element.&lt;/p&gt;

&lt;p&gt;_Inline level elements include _&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;b&amp;gt; &amp;lt;big&amp;gt; &amp;lt;i&amp;gt; &amp;lt;small&amp;gt; &amp;lt;tt&amp;gt; &amp;lt;abbr&amp;gt; &amp;lt;acronym&amp;gt; &amp;lt;cite&amp;gt; &amp;lt;code&amp;gt; &amp;lt;dfn&amp;gt; &amp;lt;em&amp;gt; &amp;lt;kbd&amp;gt; &amp;lt;strong&amp;gt; &amp;lt;samp&amp;gt; &amp;lt;var&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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