<?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: Fahad Khan</title>
    <description>The latest articles on DEV Community by Fahad Khan (@fahad07_khan).</description>
    <link>https://dev.to/fahad07_khan</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%2F270640%2Fa9223ff3-ccf1-4dc6-bdc5-13c22338b103.jpg</url>
      <title>DEV Community: Fahad Khan</title>
      <link>https://dev.to/fahad07_khan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fahad07_khan"/>
    <language>en</language>
    <item>
      <title>HTML Layout System Importance</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Thu, 05 Nov 2020 19:23:00 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/html-layout-system-importance-871</link>
      <guid>https://dev.to/fahad07_khan/html-layout-system-importance-871</guid>
      <description>&lt;h2&gt;
  
  
  You will learn about
&lt;/h2&gt;

&lt;p&gt;1.Why layout system is important?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Content Flow&lt;/li&gt;
&lt;li&gt;Content Relationship&lt;/li&gt;
&lt;li&gt;Real World examples&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why layout system is important?
&lt;/h2&gt;

&lt;p&gt;HTML is the only way to display the content on web page. No matter how you are displaying the content on web totally it's up to you but the architecture behind it's construction must take the attention of browser while rendering HTML markup. However, CSS takes the job for the styling &amp;amp; positioning the content but not markup relation of HTML content which helps in SEO. Are you getting confuse?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In Simple HTML tags have not only job of displaying your content on web page but also making relationship content to content&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Look at code HTML code below&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 lang="en"&amp;gt;

&amp;lt;head&amp;gt;

    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;title&amp;gt;HTML layout system&amp;lt;/title&amp;gt;

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

&amp;lt;body&amp;gt;

    &amp;lt;header&amp;gt;
        &amp;lt;h1&amp;gt;Main Heading of my site &amp;amp; SEO&amp;lt;/h1&amp;gt;
    &amp;lt;/header&amp;gt;

    &amp;lt;main&amp;gt;

        &amp;lt;article&amp;gt;
            &amp;lt;header&amp;gt;
                &amp;lt;h1&amp;gt;Heading of my article!&amp;lt;/h1&amp;gt;
            &amp;lt;/header&amp;gt;

            &amp;lt;!-- *** Section-1 *** --&amp;gt;
            &amp;lt;section&amp;gt;
                &amp;lt;img src="abc.abc" alt="abc"&amp;gt;
                &amp;lt;blockquote&amp;gt;There was a saying who says!&amp;lt;/blockquote&amp;gt;
                &amp;lt;cite&amp;gt;Mr. Unknown&amp;lt;/cite&amp;gt;
            &amp;lt;/section&amp;gt;

            &amp;lt;!-- *** Section-2 *** --&amp;gt;
            &amp;lt;section&amp;gt;
                &amp;lt;h2&amp;gt;Lorem ipsum dolor sit amet consectetur.&amp;lt;/h2&amp;gt;
                &amp;lt;p&amp;gt;Lorem ipsum dolordelectus quideme.&amp;lt;/p&amp;gt;
            &amp;lt;/section&amp;gt;

        &amp;lt;/article&amp;gt;

    &amp;lt;/main&amp;gt;

    &amp;lt;footer&amp;gt;

        &amp;lt;h5&amp;gt;Any query?&amp;lt;/h5&amp;gt;
        &amp;lt;p&amp;gt;Phone: 0123832&amp;lt;/p&amp;gt;
        &amp;lt;address&amp;gt;Hyderabad, Pakistan&amp;lt;/address&amp;gt;

    &amp;lt;/footer&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have noticed on HTML document flow, you will get two important things which are &lt;/p&gt;

&lt;h2&gt;
  
  
  1. Content Flow
&lt;/h2&gt;

&lt;h2&gt;
  
  
  2. Content Relationship
&lt;/h2&gt;

&lt;p&gt;What do you mean by these two terms?&lt;/p&gt;

&lt;p&gt;While developing a website many things should be in mind and above two are one of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Content Flow
&lt;/h2&gt;

&lt;p&gt;Let's think it by terminology of &lt;em&gt;content (content is the information and experiences that are directed toward an end-user or audience) &amp;amp; Flow (can have many things which relate to each other for single outcome)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now think in development perspective,&lt;/p&gt;

&lt;p&gt;content flow means having several things work together for more readability for users as well for the machines for SEO.&lt;/p&gt;

&lt;p&gt;Now, see the example of content flow in HTML&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;meta&amp;gt;
    &amp;lt;meta&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;

    &amp;lt;header&amp;gt;
      &amp;lt;img / alt="logo"&amp;gt;
      &amp;lt;nav&amp;gt;&amp;lt;/nav&amp;gt;
    &amp;lt;/header&amp;gt;

    &amp;lt;main&amp;gt;

        &amp;lt;article&amp;gt;
          &amp;lt;header&amp;gt;&amp;lt;/header&amp;gt;
          &amp;lt;section&amp;gt;&amp;lt;/section&amp;gt;
          &amp;lt;footer&amp;gt;&amp;lt;/footer&amp;gt;
        &amp;lt;/article&amp;gt;

        &amp;lt;aside&amp;gt;
          &amp;lt;section&amp;gt;&amp;lt;/section&amp;gt;
        &amp;lt;/aside&amp;gt;

    &amp;lt;/main&amp;gt;

    &amp;lt;footer&amp;gt;
      &amp;lt;h1&amp;gt; &amp;lt;small&amp;gt;&amp;lt;/small&amp;gt; &amp;lt;/h1&amp;gt;
      &amp;lt;address&amp;gt;&amp;lt;/address&amp;gt;
    &amp;lt;/footer&amp;gt;

  &amp;lt;/body&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;This is the actual content flow of HTML for user &amp;amp; as well for machines (browsers).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;from &lt;code&gt;!DOCTYPE&lt;/code&gt; to &lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt; whole is content flow.&lt;br&gt;
 How? &lt;code&gt;!DOCTYPE&lt;/code&gt; tells the machine (browser) that this document is HTML5 supported document so render it accordingly.&lt;/p&gt;
&lt;/blockquote&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%2Fi%2Fcplm0vkfd6ss1tpy7k99.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%2Fi%2Fcplm0vkfd6ss1tpy7k99.png" alt="Explain the flow of content in HTML"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Actually, flow tells the browser &amp;amp; the user an understanding manner that how document content is described.&lt;br&gt;
More simple, a college-level essay can have built points &amp;amp; explaining them accordingly. this is the actual flow of documents.&lt;/p&gt;

&lt;p&gt;Now come to &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Content Relationship
&lt;/h2&gt;

&lt;p&gt;Once you understand the Content flow then Content Relationship will be pretty easy for you!&lt;/p&gt;

&lt;p&gt;Basically, it tells the browsers &amp;amp; the user about the relationship between a document and its content. How?&lt;/p&gt;

&lt;p&gt;eg. &lt;br&gt;
Assume we have to write/represent the content about Pakistan country in written form, how you will organize this content about Pakistan?&lt;br&gt;
In a professional manner, you must have to tell something in an organized way. like we have organized an easy with main and built points.&lt;/p&gt;

&lt;p&gt;Essay title&lt;/p&gt;

&lt;p&gt;#Pakitan &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pakistan's geography

&lt;ul&gt;
&lt;li&gt;routes &lt;/li&gt;
&lt;li&gt;weather&lt;/li&gt;
&lt;li&gt;population &lt;/li&gt;
&lt;li&gt;culture etc&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Pakistan's Politics 

&lt;ul&gt;
&lt;li&gt;Government&lt;/li&gt;
&lt;li&gt;Foriegn Policy&lt;/li&gt;
&lt;li&gt;Oppositon&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Pakistan's Economy 

&lt;ul&gt;
&lt;li&gt;GDP growth rate&lt;/li&gt;
&lt;li&gt;Libilites &lt;/li&gt;
&lt;li&gt;Import &lt;/li&gt;
&lt;li&gt;Expot &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So, What are these all?&lt;br&gt;
This is the actual relationship between document and their content. However, point 1, 2, 3 are document and content same time and these numeric points are content of main topic which is &lt;strong&gt;Pakistan&lt;/strong&gt; &amp;amp;  built points which are represented by &lt;code&gt;"*"&lt;/code&gt; these are the content of numeric points.&lt;/p&gt;

&lt;p&gt;Real world examples:&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%2Fi%2F5ngyotj6rpf166reb1hk.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%2Fi%2F5ngyotj6rpf166reb1hk.png" alt="Pakistan goole search"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look at the screenshot, inside these boxes, we have each content of each document which helped the machine to search it out for us and now we are taking help of these content to reach out our target. &lt;/p&gt;

&lt;p&gt;You can see that these all content relates to the provided document named &lt;strong&gt;Pakistan&lt;/strong&gt; and search result telling more about Pakistan which relates to it like geography, politics, government etc. Now you know how HTML documents &amp;amp; its content relates to each other.&lt;/p&gt;

&lt;p&gt;Did you think from where this content &amp;amp; document have came?&lt;br&gt;
 lets pick one site &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%2Fi%2Fly1kw6ua0lphzs4magfo.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%2Fi%2Fly1kw6ua0lphzs4magfo.png" alt="picked one search result"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;just focus on content that tells us about the website.&lt;br&gt;
Now we are going to open this site and after website looks like this &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%2Fi%2Fz1iv2y39ubc7eih7qcxw.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%2Fi%2Fz1iv2y39ubc7eih7qcxw.png" alt="Pakistan website search result"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the interface of the website. which tells the same thing before we have seen on search result.&lt;/p&gt;

&lt;p&gt;now right-click on this site and go to  &lt;code&gt;view page source&lt;/code&gt;&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%2Fi%2F41wh8hnx584yse9820sl.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%2Fi%2F41wh8hnx584yse9820sl.png" alt="right-click"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;then page source will look like this&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%2Fi%2F89pbbtg80b1oir4iudm7.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%2Fi%2F89pbbtg80b1oir4iudm7.png" alt="page source of website"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now see the inside highlighted &lt;code&gt;meta tag&lt;/code&gt; this is the actual content which relates to its document and this is telling to the machine that whenever the client (user) search if it is according to him then give him into the results. &lt;/p&gt;

&lt;p&gt;Did you notice one thing more?&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%2Fi%2F4lyf7iiiegps091y94yk.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%2Fi%2F4lyf7iiiegps091y94yk.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you have practical knowledge from where things are coming.&lt;/p&gt;

&lt;p&gt;finally an overview of this article,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;How layout system works in the manner of relationship between document and content by semantics tags which are introduced in HTML5&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;HMTL tags can help to construct the logical and hierarchy structure &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;How semantic tags making relationships between document and content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;layout based on semantic tags and good for SEO&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this article, all things are not covered about HTML Layout system but now you have massive knowledge about how browsers &amp;amp; HTML work together as a team for user.&lt;/p&gt;

&lt;p&gt;This is the importance of HTML layout system!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note: CSS layout system is another thing which only represents the physical layout but not for logical layout of HTML&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For more details, &lt;br&gt;
&lt;a href="https://html.com/semantic-markup/#:~:text=Findings%20like%20these%20helped%20the%20W3C%20identify%20and,common%20and%20important%20semantic%20elements%20into%20four%20categories%3A" rel="noopener noreferrer"&gt;Semantic tag list and their roles&lt;/a&gt;&lt;br&gt;
follow me on Twitter I usually updates about Web-development&lt;br&gt;
&lt;a href="https://twitter.com/fahad07_khan" rel="noopener noreferrer"&gt;Fahad Khan&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JS-HTML-DOM manipulation dynamically</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Mon, 05 Oct 2020 22:49:12 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/js-html-dom-manipulation-dynamically-3h99</link>
      <guid>https://dev.to/fahad07_khan/js-html-dom-manipulation-dynamically-3h99</guid>
      <description>&lt;p&gt;This is the power of JavaScript that we can create HTML element by user input. the code of JS is written dynamically to take user input and then convert them into code . SImple but powerful.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/fahadkhanpakistan/embed/wvGbzJj?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Adjacent Selector in CSS</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Mon, 05 Oct 2020 22:42:14 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/adjacent-selector-in-css-1ohh</link>
      <guid>https://dev.to/fahad07_khan/adjacent-selector-in-css-1ohh</guid>
      <description>&lt;p&gt;The CSS adjacent sibling selector is used to select the adjacent sibling of an element. It is used to select only those elements which immediately follow the first selector.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; This selector will only work on child elements. &lt;/p&gt;

&lt;h1&gt;
  
  
  simple but powerful
&lt;/h1&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/fahadkhanpakistan/embed/OJXLgdL?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Reference vs Literal in JavaScript.</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Wed, 09 Sep 2020 23:39:02 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/reference-vs-literal-in-javascript-f8k</link>
      <guid>https://dev.to/fahad07_khan/reference-vs-literal-in-javascript-f8k</guid>
      <description>&lt;p&gt;Before reading this article, you must have intermediate knowledge of &lt;code&gt;JavaScript&lt;/code&gt; like a little bit &lt;code&gt;OPP&lt;/code&gt; concepts, &lt;code&gt;Arrays&lt;/code&gt; &lt;code&gt;Objects&lt;/code&gt; &amp;amp; &lt;code&gt;functions&lt;/code&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  What you will learn?
&lt;/h2&gt;

&lt;p&gt;Here we will see about,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Data types &amp;amp; a Variable&lt;/li&gt;
&lt;li&gt;Primitive type &lt;strong&gt;vs&lt;/strong&gt; reference type&lt;/li&gt;
&lt;li&gt;Literal &lt;strong&gt;vs&lt;/strong&gt; reference  (Object, Function, Array)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Data types &amp;amp; a Variable
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Data types
&lt;/h3&gt;

&lt;p&gt;If you are familiar with programming languages like, &lt;code&gt;C&lt;/code&gt; &lt;code&gt;C#&lt;/code&gt; &lt;code&gt;C++&lt;/code&gt; &lt;code&gt;Java&lt;/code&gt; etc. You have noticed that every programming languages have their own data types and declaration of variables &amp;amp; same case with JavaScript. But if you search about &lt;strong&gt;data types of Javascript&lt;/strong&gt; you will find varieties of answers about it, some resources will say there are 8 data types and some will say 6 and so on. But don't be get confused there are &lt;strong&gt;6 data types in JavaScript&lt;/strong&gt; in general. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Number    &amp;gt; integer, BigInt, floats etc.&lt;/li&gt;
&lt;li&gt;String    &amp;gt; Array of characters i.e words&lt;/li&gt;
&lt;li&gt;Boolean   &amp;gt; True/false&lt;/li&gt;
&lt;li&gt;Null      &amp;gt; no value (technically null is a value)&lt;/li&gt;
&lt;li&gt;undefined &amp;gt; not defined at declaration time
&lt;/li&gt;
&lt;li&gt;symbol    &amp;gt; a unique value that is not equal to another value&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You Must have to know, these are the &lt;strong&gt;types of data&lt;/strong&gt; or forms of data in other words. The above 6 types can be modified in more detail like in sub-categories. As JavaScript is a loosely and dynamic type language which means there is no force to write the form of data eg. &lt;code&gt;int&lt;/code&gt; &lt;code&gt;string&lt;/code&gt; &lt;code&gt;boolean&lt;/code&gt; you just simply tells to the computer about declaring of data not the form of the data.&lt;br&gt;
eg.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QIZj7TqQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/kj2175nqrvipwjpv5h8s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QIZj7TqQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/kj2175nqrvipwjpv5h8s.png" alt="Alt declaring the variables in JavaScript" width="880" height="789"&gt;&lt;/a&gt;&lt;br&gt;
We just declare our variables by not telling the machine what type of our declared data. It is the JavaScript job to find the type of data. For assurance, we can ask from &lt;code&gt;JavaScript&lt;/code&gt;that what type of data we have declared by &lt;code&gt;typeof&lt;/code&gt; keyword/operator. let's break here about types of data because this is not our main topic.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Variable
&lt;/h3&gt;

&lt;p&gt;In the above visual piece of code, we have covered the variable also. Furthermore, a variable is the part of the memory for storing some kind of data. eg. &lt;code&gt;let name = 'Hawking';&lt;/code&gt; now variable &lt;code&gt;name&lt;/code&gt; has space in memory containing data &lt;code&gt;Hawking&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Primitive type &lt;strong&gt;vs&lt;/strong&gt; reference type
&lt;/h2&gt;

&lt;p&gt;Whatever we saw above &lt;strong&gt;&lt;code&gt;Data Types &amp;amp; a Variable&lt;/code&gt;&lt;/strong&gt; these were primitive type of data which means whenever memory stores, this data will save an unordered way (where ever memory sees space put there) but in reference case memory store whole data in sequence order (with memory reference) you know why? because reference type of variables are &lt;code&gt;Array&lt;/code&gt; &lt;code&gt;Function&lt;/code&gt; and an &lt;code&gt;Object&lt;/code&gt;. So, these types store in memory with sequence and generate reference (address) in the memory cell. This is the fundamental difference between primitive and reference data types.&lt;br&gt;
In other words, reference type means the two reference types are objects and arrays (technically one, since arrays are objects). When you create an object, that value is not directly assigned to the variable. Instead, a reference to that value is what gets set. All that variable knows about is the location of the object in memory, not the object itself.&lt;br&gt;
Now see how primitive and reference works on memory side.&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1Flw9BDE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3d4oeb9fn1ccq7xuyojk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1Flw9BDE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3d4oeb9fn1ccq7xuyojk.png" alt="Alt primitive type vs reference type in memory process" width="678" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Literal &lt;strong&gt;vs&lt;/strong&gt; reference
&lt;/h2&gt;

&lt;p&gt;(Object, Function, Array)&lt;br&gt;
somehow both literal vs reference are the same thing but literal is a way to make a prototype of your data in an object, function, array form, and reference form has already designed a prototype of and can be accessible with &lt;code&gt;new&lt;/code&gt;  keyword.&lt;br&gt;
eg.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5ry11wOS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nog51p01uaezxit31ex7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5ry11wOS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nog51p01uaezxit31ex7.png" alt="Alt literal vs reference in javascript" width="880" height="497"&gt;&lt;/a&gt;&lt;br&gt;
both codes have the same work but different in structural nature during declaration. In this case, I just create reference object but you can make reference &lt;code&gt;Function&lt;/code&gt; and &lt;code&gt;Array&lt;/code&gt; also by writting &lt;code&gt;new Function()&lt;/code&gt; &lt;code&gt;new Array()&lt;/code&gt;&lt;br&gt;
That's all about reference vs literal. If you have any query you can ask me at any time. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>oop</category>
    </item>
    <item>
      <title>CSS variables &amp; their features</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Fri, 04 Sep 2020 15:47:24 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/css-variables-their-features-2aij</link>
      <guid>https://dev.to/fahad07_khan/css-variables-their-features-2aij</guid>
      <description>&lt;p&gt;CSS is adopting many features by the passage of time. Here, we will see that &lt;strong&gt;what CSS Variable&lt;/strong&gt; is &amp;amp; it's &lt;strong&gt;benefit of usage.&lt;/strong&gt; If you're familiar with computer programming background you have noticed about work &amp;amp; need of &lt;code&gt;variables&lt;/code&gt; eg. &lt;code&gt;var = 10;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is variable?
&lt;/h2&gt;

&lt;p&gt;A variable is kind of &lt;code&gt;space&lt;/code&gt; we occupy in &lt;code&gt;memory&lt;/code&gt; while declaring it. &lt;/p&gt;

&lt;h2&gt;
  
  
  Why we use Variable?
&lt;/h2&gt;

&lt;p&gt;If you want to do something like &lt;code&gt;plus&lt;/code&gt; &lt;code&gt;➕&lt;/code&gt; two things or apply any mathematical operation eg. &lt;code&gt;var a=10;&lt;/code&gt; &lt;code&gt;var b=10;&lt;/code&gt; &lt;code&gt;c=a+b;&lt;/code&gt; now, variable &lt;code&gt;c&lt;/code&gt; has value of &lt;code&gt;a&lt;/code&gt; &amp;amp; &lt;code&gt;b&lt;/code&gt;. which is equal to &lt;code&gt;c=20&lt;/code&gt;&lt;br&gt;
don't worry! every language has its own &lt;code&gt;syntax&lt;/code&gt; for declaring variable but I have used here &lt;code&gt;javaScript syntax&lt;/code&gt;.&lt;br&gt;
Let's focus on &lt;code&gt;CSS Variable&lt;/code&gt;,&lt;/p&gt;

&lt;h2&gt;
  
  
  What is CSS Variable?
&lt;/h2&gt;

&lt;p&gt;CSS Variable is not rocket science. It works the same as we use other programming language variables but we can't apply any mathematical operation like &lt;code&gt;+ - * /&lt;/code&gt;on CSS variable. we just use to take a space in memory by declaring any CSS &lt;code&gt;property&lt;/code&gt; as memory address &amp;amp; &lt;code&gt;property's value&lt;/code&gt; as a memory address value. that's it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we use CSS Variable?
&lt;/h2&gt;

&lt;p&gt;To understand this question, first we have to see visual answer.&lt;br&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%2Fi%2F6d5lp7wldibotevddg4r.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%2Fi%2F6d5lp7wldibotevddg4r.png" alt="Alt CSS variable"&gt;&lt;/a&gt;&lt;br&gt;
We can see I have declared my CSS variable in &lt;code&gt;:root&lt;/code&gt; because it will apply to all root HTML which means whole HTML document more simple &lt;code&gt;:root&lt;/code&gt; is the parent element of the HTML page and inside the root, you can see more about parent and child elements in &lt;code&gt;HTML-DOM&lt;/code&gt; in my another article &lt;a href="https://dev.to/fahad07_khan/html-dom-manipulation-by-javascript-3k9b"&gt;HTML-DOM manipulation&lt;/a&gt;, I have declared CSS variable &amp;amp; now it will apply to all it's children. You can also declare CSS variable in another parent/location like,&lt;br&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%2Fi%2Fxplytrd7hzpe5x3fqbhq.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%2Fi%2Fxplytrd7hzpe5x3fqbhq.png" alt="Alt CSS variable"&gt;&lt;/a&gt;&lt;br&gt;
Here we have declared our CSS variable in &lt;code&gt;my-container&lt;/code&gt; &amp;amp; it is parent which means &lt;code&gt;my-container&lt;/code&gt; has child elements that's why it is parent. see in picture below,&lt;br&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%2Fi%2Fcyx57nbx1b3vzboo3yub.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%2Fi%2Fcyx57nbx1b3vzboo3yub.png" alt="Alt HTML"&gt;&lt;/a&gt;&lt;br&gt;
Above, &lt;code&gt;my-container&lt;/code&gt; has its own element so if we declare CSS variable in &lt;code&gt;my-container&lt;/code&gt; it will work on only its child element which are, &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;h4&amp;gt;&lt;/code&gt; but it will not work on &lt;code&gt;body&lt;/code&gt; &lt;code&gt;&amp;lt;p&amp;gt; I'm Child of body and my ancestor is root of HTML&amp;lt;/p&amp;gt;&lt;/code&gt; because this &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; is not child of &lt;code&gt;my-container&lt;/code&gt;. For applying CSS variable body &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; element, we must target its parent (&lt;code&gt;body&lt;/code&gt; OR &lt;code&gt;root&lt;/code&gt;)&lt;br&gt;
eg. &lt;code&gt;:root{--my-variable: #ddd}&lt;/code&gt; here &lt;code&gt;#ddd&lt;/code&gt; is the code of a color. &lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax to declare CSS varible
&lt;/h2&gt;

&lt;p&gt;Syntax is not very difficult just you have to remember just two things &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;--&lt;/code&gt; it is part of declaring CSS variable eg. (--xyz: abc)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;var()&lt;/code&gt; while using it.
now see some CSS variable examples
&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%2Fi%2Fv93ml1tjerpnv5yzt4ut.png" alt="Alt CSS variable examples"&gt;
You have noticed that I have only changed the &lt;code&gt;value&lt;/code&gt; eg. &lt;code&gt;18px&lt;/code&gt; of &lt;code&gt;property&lt;/code&gt; &lt;code&gt;font-size&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Bullet Points:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;While declaring CSS Variables we just set the value eg. &lt;code&gt;18px&lt;/code&gt; , &lt;code&gt;#0001&lt;/code&gt;, &lt;code&gt;"Times New Roman", Georgia, Serif;&lt;/code&gt; but the property name will remain same while using it.&lt;/li&gt;
&lt;li&gt;Here &lt;code&gt;background-color: var(--my-background-color);&lt;/code&gt; &lt;code&gt;background-color&lt;/code&gt; property name of CSS will ramain as it as but it's value now become dynamic &lt;code&gt;var(--my-background-color);&lt;/code&gt; instead of &lt;code&gt;#0001&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Benefit of Using CSS Variable
&lt;/h2&gt;

&lt;p&gt;Using CSS Variables we made our code dynamic. &lt;br&gt;
Let's suppose you have written &lt;code&gt;HTML&lt;/code&gt; &amp;amp; &lt;code&gt;CSS&lt;/code&gt; with thousands of lines and after all, you want to change your CSS code eg. all &lt;code&gt;&amp;lt;p&amp;gt; &amp;amp; &amp;lt;h1&amp;gt;&lt;/code&gt; &lt;code&gt;color&lt;/code&gt; &amp;amp; &lt;code&gt;font-size&lt;/code&gt; then &lt;strong&gt;What you will do?&lt;/strong&gt;&lt;br&gt;
definitely, you have to change all lines where you have declared CSS property value &amp;amp; this become a time-consuming process. To counter these problem CSS Variables were introduced for changing your property's &lt;code&gt;value&lt;/code&gt; just in seconds by changing only 1 value of the property. Now see the real-world example,&lt;br&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%2Fi%2F1ouedpfrphfr5bd3xf7n.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%2Fi%2F1ouedpfrphfr5bd3xf7n.png" alt="Alt CSS variable practical example"&gt;&lt;/a&gt;&lt;br&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%2Fi%2Fw60alg575mensepqc0ux.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%2Fi%2Fw60alg575mensepqc0ux.png" alt="Alt HTML"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do you notice that &lt;code&gt;--my-p-color&lt;/code&gt; is applied on all &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; elements which are children of &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tag &amp;amp; &lt;code&gt;--my-font-size&lt;/code&gt; just applied to its child which is &lt;code&gt;&amp;lt;p&amp;gt;I'm Child of my-container &amp;amp; my ancestor is body&amp;lt;/p&amp;gt;&lt;/code&gt; beasuce &lt;code&gt;--my-font-size&lt;/code&gt; is declared in &lt;code&gt;.my-container&lt;/code&gt;that's why it works on only its child element. That's all about CSS Varibles. Hope now you are familiar with CSS Varibles.&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HTML DOM manipulation by JavaScript. . .</title>
      <dc:creator>Fahad Khan</dc:creator>
      <pubDate>Thu, 03 Sep 2020 23:04:43 +0000</pubDate>
      <link>https://dev.to/fahad07_khan/html-dom-manipulation-by-javascript-3k9b</link>
      <guid>https://dev.to/fahad07_khan/html-dom-manipulation-by-javascript-3k9b</guid>
      <description>&lt;p&gt;In Web Development career, &lt;code&gt;HTML&lt;/code&gt;, &lt;code&gt;CSS&lt;/code&gt; &amp;amp; &lt;code&gt;JavaScript&lt;/code&gt; are the core subjects. Without these technologies, We can't develop web content. Before knowing about HTML DOM, we must have intermediate &lt;br&gt;
knowledge about &lt;code&gt;HTML&lt;/code&gt; &amp;amp; &lt;code&gt;CSS&lt;/code&gt;, we must know how HTML works &amp;amp; what we can do with it &amp;amp; also having knowledge of HTML &lt;strong&gt;Elements&lt;/strong&gt; &lt;br&gt;
&amp;amp; &lt;strong&gt;Attributes&lt;/strong&gt;, list is also given below. &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%2Fi%2Fk2e6uqmdh1d4tyqaozo2.jpg" 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%2Fi%2Fk2e6uqmdh1d4tyqaozo2.jpg" alt="Alt list of HTML Elements &amp;amp; Attributes"&gt;&lt;/a&gt;&lt;br&gt;
On &lt;code&gt;#CSS&lt;/code&gt; side, we must have knowledge about &lt;code&gt;#CSS&lt;/code&gt; Selectors like,&lt;br&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%2Fi%2Fxtofkrqrm3u4pmdqx0u6.jpg" 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%2Fi%2Fxtofkrqrm3u4pmdqx0u6.jpg" alt="Alt CSS Selectors"&gt;&lt;/a&gt;&lt;br&gt;
These &lt;code&gt;#CSS&lt;/code&gt; selectors are following the HTML-DOM standard.&lt;br&gt;
Let's move to the main point that what exactly HTML DOM is?&lt;br&gt;
basically DOM stands for &lt;strong&gt;Document Object Model&lt;/strong&gt; you can see the picture below that how HTML-DOM looks like. &lt;br&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%2Fi%2Fvs368uy70ic2ko1w5506.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%2Fi%2Fvs368uy70ic2ko1w5506.png" alt="Alt HTML-DOM"&gt;&lt;/a&gt; &lt;br&gt;
                             &lt;strong&gt;OR&lt;/strong&gt;&lt;br&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%2Fi%2Fi8exoqk4wdyufownihvt.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%2Fi%2Fi8exoqk4wdyufownihvt.png" alt="Alt HTML-DOM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't worry HTML-DOM is not rocket science it is just a simple way to interact (exchange any kind of data) to HTML page &amp;amp; nothing more! &lt;strong&gt;Note: HTML-DOM can be manipulated (insert, delete, update) with any other programming languages too like Java, C# etc.&lt;/strong&gt; So, now we knew that HTML-DOM is not part of JavaScript language but HTML. In the real-world, we mostly use JavaScript for it because JavaScript has advanced features for developing web content. Actually JavaScript is specially made up of web development. But it is not true that we can only programme web page by &lt;strong&gt;JS&lt;/strong&gt; for short. Well known company &lt;strong&gt;Sony&lt;/strong&gt; has many desktop software products which are written in JS language. Don't underestimate the power of JS. &lt;br&gt;
So, HTML has defined their own &lt;code&gt;Methods&lt;/code&gt; &amp;amp; their &lt;code&gt;properties&lt;/code&gt; to interact with HTML-DOM beacuese HTML-DOM is the part of HTML, we took one HTML-DOM method which is &lt;code&gt;document.getElementById()&lt;/code&gt; &amp;amp; we also took property &lt;code&gt;innerHTML&lt;/code&gt;&lt;br&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%2Fi%2Flaurlfsk0o80f1hf9m4b.jpg" 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%2Fi%2Flaurlfsk0o80f1hf9m4b.jpg" alt="Alt HTML and JavaScript source code"&gt;&lt;/a&gt;&lt;br&gt;
Actually here we manipulate the HTML element &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; with attribute &lt;code&gt;id&lt;/code&gt; &amp;amp; its value &lt;code&gt;p-tag&lt;/code&gt; &amp;amp; &lt;code&gt;value&lt;/code&gt; is the property of &lt;code&gt;id&lt;/code&gt; attrubute. Now, see the reslut of same code but on browser side.&lt;br&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%2Fi%2F6uwpuuk9agax93jj30yn.jpg" 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%2Fi%2F6uwpuuk9agax93jj30yn.jpg" alt="Alt HTML JavaScript Code"&gt;&lt;/a&gt;&lt;br&gt;
 If you fully understand the &lt;strong&gt;HTML-DOM&lt;/strong&gt; manipulation you will be able to understand the hierarchy of &lt;strong&gt;HTML&lt;/strong&gt; page &amp;amp; you can easily play with HTML elements in &lt;code&gt;JavaScript&lt;/code&gt; &amp;amp; &lt;code&gt;CSS&lt;/code&gt;. Furthermore, &lt;strong&gt;HTML-DOM&lt;/strong&gt; is a way to play with elements according to your imagination. In this article, we have just discussed about &lt;strong&gt;HTM-DOM Manipulation&lt;/strong&gt; only we didn't study all the methods and properties. You can study in-depth about &lt;code&gt;HTML-DOM&lt;/code&gt;.&lt;br&gt;
&lt;a href="https://www.w3schools.com/js/js_htmldom.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/js/js_htmldom.asp&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>javascript</category>
      <category>htmldom</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
