<?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: Priyaramu</title>
    <description>The latest articles on Forem by Priyaramu (@chandra_ramu_6ec0a1c1eb59).</description>
    <link>https://forem.com/chandra_ramu_6ec0a1c1eb59</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%2F3690876%2Faff92635-890b-4d76-a510-afe5b918d95b.png</url>
      <title>Forem: Priyaramu</title>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/chandra_ramu_6ec0a1c1eb59"/>
    <language>en</language>
    <item>
      <title>Introduction to React: A Beginner’s Guide</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Fri, 17 Apr 2026 16:57:11 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/introduction-to-react-a-beginners-guide-4hki</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/introduction-to-react-a-beginners-guide-4hki</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
React is a popular JavaScript library used for building user interfaces, especially for single-page applications (SPAs). It was developed and maintained by Meta (formerly Facebook) and has become one of the most widely used tools among developers.&lt;/p&gt;

&lt;p&gt;When building web applications, you’ll often hear two terms: &lt;br&gt;
       MPA (Multi-Page Application) and SPA (Single-Page Application). They represent different ways a website loads and updates content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is an MPA (Multi-Page Application)?&lt;/strong&gt;&lt;br&gt;
An MPA loads a new page from the server every time you click a link.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;How it works:
   - Each action → sends a request to the server
   - Server returns a completely new HTML page
   - The browser reloads the entire page

Examples:
   - Amazon
   - Wikipedia
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;What is an SPA (Single-Page Application)?&lt;/strong&gt;&lt;br&gt;
An SPA loads one single HTML page and updates content dynamically without reloading.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;How it works:
   - Initial page loads once
   - JavaScript updates only parts of the page
   - No full page refresh

Examples:
   - Gmail
   - Google Maps
   - Apps built with React
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Why React?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Modern web applications need to be fast and smooth for a better user experience. However, using traditional JavaScript can make development complex and harder to manage.&lt;/p&gt;

&lt;p&gt;React solves these problems by making it easier to build fast, interactive, and scalable applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Faster Performance&lt;/strong&gt;&lt;br&gt;
React updates only the parts of the page that change instead of reloading the whole page. This makes applications faster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reusable Components&lt;/strong&gt;&lt;br&gt;
React lets you build UI using components that can be reused. This saves time and reduces repeated code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Easy Data Handling&lt;/strong&gt;&lt;br&gt;
React uses something called &lt;em&gt;state&lt;/em&gt; to manage data. When data changes, the UI updates automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strong Community&lt;/strong&gt;&lt;br&gt;
React has a large community with many tools and resources, making it easier to learn and use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Used in Real Applications&lt;/strong&gt;&lt;br&gt;
Many big applications use React, which shows it is reliable and scalable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Easy to Learn and Use&lt;/strong&gt;&lt;br&gt;
React has a simple structure, making it easier to understand, maintain, and grow applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;React is a powerful tool for building modern web applications. Its speed, flexibility, and ease of use make it a popular choice among developers.If you want to build fast and interactive user interfaces, learning React is a great step forward.&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>Learn Synchronous and Asynchronous JavaScript</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Fri, 27 Mar 2026 17:57:30 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/learn-synchronous-and-asynchronous-javascript-42jd</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/learn-synchronous-and-asynchronous-javascript-42jd</guid>
      <description>&lt;p&gt;&lt;strong&gt;Synchronous&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In synchronous programming, tasks are done one after another in order. Each line of code waits for the previous one to finish before moving to the next. This means the program runs step by step in a clear and predictable way.&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="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;Start&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;Task 1&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;Task 2&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;End&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;In this example, "Start" is printed first, followed by "Task 1", then "Task 2", and finally "End". Each line runs only after the previous one has finished. This shows that the code executes in a fixed order, step by step, without skipping any task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Asynchronous&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In asynchronous programming, tasks can run independently without waiting for previous tasks to complete. While one task is in progress, other tasks can continue running. This improves performance and makes applications faster and smoother.&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="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;Start&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&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;Task 1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="mi"&gt;2000&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;End&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nl"&gt;Output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nx"&gt;Start&lt;/span&gt;
&lt;span class="nx"&gt;End&lt;/span&gt;
&lt;span class="nx"&gt;Task&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, "Start" is printed first, followed by "End". The "Task 1" message is printed after a delay. This happens because the setTimeout function runs asynchronously, so the code does not wait and continues executing the next line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How Asynchronous JavaScript Works&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Call Stack:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The call stack is where JavaScript runs functions.&lt;br&gt;
It follows a simple rule: one function runs at a time, in order.&lt;br&gt;
Each function is added to the stack, executed, and then removed before the next one runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Web APIs (Browser)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some tasks like setTimeout, API calls, and event listeners are handled by the browser using Web APIs.&lt;/p&gt;

&lt;p&gt;When you use something like setTimeout, JavaScript sends it to the Web API.&lt;br&gt;
The Web API handles the waiting time, so the main code does not stop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Callback Queue&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After the Web API finishes its task (like waiting for time), it sends the function (callback) to the callback queue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Event Loop&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The event loop keeps checking the call stack.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the call stack is empty&lt;/li&gt;
&lt;li&gt;It takes functions from the callback queue&lt;/li&gt;
&lt;li&gt;And moves them to the call stack for execution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s why delayed tasks run after the main code finishes.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Closure in Javascript</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Thu, 26 Mar 2026 17:49:08 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/closure-in-javascript-92</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/closure-in-javascript-92</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is a Closure?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In JavaScript, when you create a function inside another function, the inner function can use the variables of the outer function. Normally, once a function finishes running, its variables are gone. But in closures, the inner function keeps those variables in memory.&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;function&lt;/span&gt; &lt;span class="nf"&gt;outer&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;John&lt;/span&gt;&lt;span class="dl"&gt;"&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;inner&lt;/span&gt;&lt;span class="p"&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="nx"&gt;name&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;inner&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;myFunction&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;outer&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nf"&gt;myFunction&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Difference Between Function and Closure&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Function&lt;/strong&gt;&lt;br&gt;
A normal function executes its code and then finishes. Once it is done, the variables inside the function are removed from memory and cannot be used again.In a normal function, variables are often global and can be changed by anyone, which makes them unsafe.&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;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&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;add&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&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="nx"&gt;count&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;&lt;strong&gt;Closure&lt;/strong&gt;&lt;br&gt;
A closure is a function that remembers the variables from its outer function even after the outer function has finished running. These variables stay in memory and can be used later whenever the function is called.In a closure, variables are private and protected, so they cannot be accessed or modified from outside.&lt;/p&gt;

&lt;p&gt;Closures are useful when we need to store data, maintain state, or protect variables from outside access.&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;function&lt;/span&gt; &lt;span class="nf"&gt;counter&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;count&lt;/span&gt;&lt;span class="o"&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="nx"&gt;count&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;add&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;counter&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Closures are used in different ways like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;storing values&lt;/li&gt;
&lt;li&gt;protecting data&lt;/li&gt;
&lt;li&gt;creating functions&lt;/li&gt;
&lt;li&gt;handling events&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Memory Diagram:&lt;/strong&gt;&lt;br&gt;
Call outer() for Variable count is created&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Memory:
outer()
 └── count = 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Return inner()&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;Memory:
outer()
 └── count = 0

fn → inner() function
      ↑
      remembers count
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;inner() is returned and stored in fn&lt;/li&gt;
&lt;li&gt;It keeps a reference to count&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Outer Function Ends&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;Memory:
count = 0   ✅ (NOT deleted)

fn → inner()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Normally count should be deleted &lt;/li&gt;
&lt;li&gt;But it stays because inner() uses it &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Call fn()&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;count = 0 → 1

Output: 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Call fn() Again&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;count = 1 → 2

Output: 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;inner()  
  └── carries → count
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even if outer() is gone, inner() still has the data&lt;/p&gt;

&lt;p&gt;The inner function keeps a reference to the variable count, so it stays in memory and continues to update each time the function is called.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>JavaScript DOM for Beginners</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Wed, 25 Mar 2026 17:22:43 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/javascript-dom-explained-simply-4163</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/javascript-dom-explained-simply-4163</guid>
      <description>&lt;p&gt;&lt;strong&gt;DOM (Document Object Model)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When a browser loads a web page, it converts the HTML into a structured tree of objects. This tree is called the DOM. Each element becomes a node (object) that JavaScript can interact with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example HTML:&lt;/strong&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="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Welcome&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;DOM structure:&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;Document
 └── html
      └── body
           ├── h1
           └── p
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Why is DOM important?&lt;/strong&gt;&lt;br&gt;
    - Access elements&lt;br&gt;
    - Modify content&lt;br&gt;
    - Change styles&lt;br&gt;
    - Handle events (clicks, typing, etc.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessing Elements in the DOM:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JavaScript provides several ways to select and access elements in a web page. Here are the most commonly used methods:&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="nx"&gt;Selects&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;single&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt; &lt;span class="kd"&gt;with&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;specific&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;title&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;Returns&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;collection&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt; &lt;span class="kd"&gt;with&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;given&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt;
&lt;span class="nc"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementsByClassName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;item&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;Selects&lt;/span&gt; &lt;span class="nx"&gt;all&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt; &lt;span class="kd"&gt;with&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;specific&lt;/span&gt; &lt;span class="nf"&gt;tag &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;like&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementsByTagName&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;p&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;Selects&lt;/span&gt; &lt;span class="nx"&gt;the&lt;/span&gt; &lt;span class="nx"&gt;first&lt;/span&gt; &lt;span class="nx"&gt;matching&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt; &lt;span class="nx"&gt;using&lt;/span&gt; &lt;span class="nx"&gt;CSS&lt;/span&gt; &lt;span class="nx"&gt;selectors&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;element&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;.item&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;Selects&lt;/span&gt; &lt;span class="nx"&gt;all&lt;/span&gt; &lt;span class="nx"&gt;matching&lt;/span&gt; &lt;span class="nf"&gt;elements &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;returns&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="nx"&gt;NodeList&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;elements&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;.item&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;&lt;strong&gt;Modifying Content in the DOM&lt;/strong&gt;&lt;br&gt;
JavaScript provides different ways to modify content, and each behaves slightly differently.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"demo"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  Hello &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"display:none;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Hidden&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt; World
&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;&lt;strong&gt;textContent:&lt;/strong&gt;&lt;br&gt;
        textContent includes all text inside an element, even content that is hidden using CSS. It ignores any HTML tags and treats everything as plain text, making it a safer and cleaner option.&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="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;demo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;textContent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nl"&gt;Output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nx"&gt;Hello&lt;/span&gt; &lt;span class="nx"&gt;Hidden&lt;/span&gt; &lt;span class="nx"&gt;World&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;innerText&lt;/strong&gt;&lt;br&gt;
        innerText shows only the text that you can see on the page. If something is hidden using CSS (like display: none), it will not be shown.&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="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;demo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerText&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nl"&gt;Output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nx"&gt;Hello&lt;/span&gt; &lt;span class="nx"&gt;World&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;innerHTML&lt;/strong&gt;&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="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;demo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;innerHTML&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nl"&gt;Output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nx"&gt;Hello&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;span&lt;/span&gt; &lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;display:none;&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="nx"&gt;Hidden&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/span&amp;gt; Worl&lt;/span&gt;&lt;span class="err"&gt;d
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Changing Styles in the DOM&lt;/strong&gt;&lt;br&gt;
JavaScript can change how elements look on a web page. You can change colors, size, background, or even hide elements using styles.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;Example&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
&lt;span class="nt"&gt;element&lt;/span&gt;&lt;span class="nc"&gt;.style.backgroundColor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;"yellow"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;element&lt;/span&gt;&lt;span class="nc"&gt;.style.color&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;"red"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;element&lt;/span&gt;&lt;span class="nc"&gt;.style.fontSize&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;"20px"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;element&lt;/span&gt;&lt;span class="nc"&gt;.style.display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;"none"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Handling Events in the DOM&lt;/strong&gt;&lt;br&gt;
Events are actions performed by the user, like clicking a button or typing in a box. JavaScript listens for these events and runs code when they happen, making the website interactive.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;Example:
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"btn"&lt;/span&gt; &lt;span class="na"&gt;onclick=&lt;/span&gt;&lt;span class="s"&gt;"clickHandler()"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Click Me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;script&amp;gt;&lt;/span&gt;
  &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;clickHandler&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Button clicked!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
    </item>
    <item>
      <title>JavaScript: The Beginning</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Mon, 02 Mar 2026 08:10:49 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/javascript-the-beginning-4n59</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/javascript-the-beginning-4n59</guid>
      <description>&lt;p&gt;&lt;strong&gt;Javascript&lt;/strong&gt;&lt;br&gt;
In 1995, a programmer named Brendan Eich was working at Netscape. At that time, websites were mostly static — they could display information, but they couldn’t really interact with users.&lt;/p&gt;

&lt;p&gt;Netscape wanted to make web pages more dynamic and engaging. So Brendan Eich was given a task: create a scripting language that would run inside the browser.Incredibly, he built the first version of JavaScript in just 10 days.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Is JavaScript?&lt;/strong&gt;&lt;br&gt;
JavaScript is a programming language used to make websites interactive and dynamic.It controls what happens on a webpage. For example, JavaScript makes it possible to:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- Respond when a user clicks a button
- Check if a form is filled out correctly (form validation)
- Show animations and sliders
- Update content on the page without refreshing it
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Without JavaScript, websites would feel static and unresponsive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Flow Chart: How JavaScript Runs in the Browser&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;Browser loads HTML
        ↓
Browser sees &amp;lt;script&amp;gt; tag
        ↓
Browser sends code to JavaScript Engine
        ↓
Engine executes the code
        ↓
Result appears on screen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JavaScript variables&lt;/strong&gt;&lt;br&gt;
In JavaScript, a variable is a named container used to store data. Think of it as a labeled box where you keep information so you can use it later in your program.&lt;/p&gt;

&lt;p&gt;Instead of repeating a value multiple times in your code, you store it inside a variable and refer to it by name. This makes your code cleaner, easier to read, and simpler to maintain.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;code&gt;let userName = "John";&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In this case, userName is the variable, and it stores the value "John". Whenever you use userName in your program, JavaScript will use the stored value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Do We Use Variables?&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    - Store values (numbers, text, objects, etc.)
    - Reuse data
    - Update values during program execution
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;How to Declare Variables in JavaScript&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;JavaScript provides three ways to declare variables:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    - let
    - const
    - var
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;What is let in JavaScript?&lt;/strong&gt;&lt;br&gt;
let is a keyword used to declare a variable. It was introduced in ES6 (2015) and is now the recommended way to create variables when the value may change later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;let and const&lt;/strong&gt;&lt;br&gt;
Both let and const only exist inside the block { } where they are declared.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example with let&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;if (true) {
  let name = "John";
}

console.log(name); // ❌ Error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Scope vs Reassignment&lt;/strong&gt;&lt;br&gt;
      - Scope → Where the variable can be used&lt;br&gt;
      - Reassignment → Whether you can change its value&lt;br&gt;
&lt;strong&gt;let can be reassigned and const cannot be reassigned&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is const in JavaScript?&lt;/strong&gt;&lt;br&gt;
const is used to make a constant variable — a variable that cannot be changed once it has a value.&lt;br&gt;
&lt;strong&gt;Example with const&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;if (true) {
  const age = 25;
}

console.log(age); // ❌ Error
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What is var in JavaScript?&lt;/strong&gt;&lt;br&gt;
var is a way to declare a variable in JavaScript. It has been in JavaScript since the very beginning (ES5 and earlier), but now it’s mostly replaced by let and const in modern code.&lt;/p&gt;

&lt;p&gt;A var variable belongs to the function it is declared in, not to a block scope { }.You can change its value anytime.&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>CSS Properties</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Sat, 24 Jan 2026 08:37:11 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/css-properties-38ig</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/css-properties-38ig</guid>
      <description>&lt;p&gt;*&lt;em&gt;CSS (Cascading Style Sheets) *&lt;/em&gt;&lt;br&gt;
     CSS is the language we use to style a Web page.It controls how HTML elements look on the screen, such as colors, fonts, spacing, and positioning. CSS helps separate content from design, making websites easier to manage and visually appealing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Global selector&lt;/strong&gt;&lt;br&gt;
     The Global selector * means all elements (headings, paragraphs, divs, etc.)It sets the margin and padding of every element to 0.Useful for starting a page with a clean, consistent style.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;hr tag&lt;/strong&gt;&lt;br&gt;
     In HTML &lt;/p&gt;
 means horizontal rule. It is used to draw a horizontal line across the page.Usually, it separates sections or content.

&lt;p&gt;&lt;strong&gt;List style type&lt;/strong&gt;&lt;br&gt;
     In CSS, list-style-type is used to change the bullet or numbering style of a list.&lt;br&gt;
  &lt;strong&gt;Unorder list&lt;/strong&gt;&lt;br&gt;
         ul {&lt;br&gt;
              list-style-type: disc;   /* default bullet &lt;em&gt;/&lt;br&gt;
         }&lt;br&gt;
         ul.circle {&lt;br&gt;
              list-style-type: circle; /&lt;/em&gt; hollow circle &lt;em&gt;/&lt;br&gt;
         }&lt;br&gt;
         ul.square {&lt;br&gt;
              list-style-type: square; /&lt;/em&gt; square bullet &lt;em&gt;/&lt;br&gt;
         }&lt;br&gt;
  **Order list&lt;/em&gt;*&lt;br&gt;
         ol {&lt;br&gt;
              list-style-type: decimal;   /* default 1, 2, 3 &lt;em&gt;/&lt;br&gt;
         }&lt;br&gt;
         ol.upper-roman {&lt;br&gt;
              list-style-type: upper-roman;  /&lt;/em&gt; I, II, III &lt;em&gt;/&lt;br&gt;
         }&lt;br&gt;
         ol.lower-alpha {&lt;br&gt;
              list-style-type: lower-alpha;  /&lt;/em&gt; a, b, c */&lt;br&gt;
         }&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Border-collapse&lt;/strong&gt;&lt;br&gt;
    border-collapse is a property used with HTML tables to control how the borders of table cells are displayed.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Each cell has its own border
    table {
            border-collapse: separate;
     }

Adjacent cell borders are merged into a single border
    table {
            border-collapse: collapse;
     }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Linear gradient&lt;/strong&gt;&lt;br&gt;
    It is used to create a smooth transition between two or more colors in a straight line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do we use the alt attribute in the image tag?&lt;/strong&gt;&lt;br&gt;
    The alt attribute in the &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag is used to provide alternative text for an image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is an Attribute?&lt;/strong&gt;&lt;br&gt;
    An attribute is extra information added to an HTML element. In simple terms, an attribute is like a detail or characteristic that tells the browser how the element should behave or appear.&lt;br&gt;
        Example: src="dog.jpg" → tells what the image actually is&lt;br&gt;
                 alt="A cute dog" → describes the image&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Element meaning&lt;/strong&gt;&lt;br&gt;
An HTML element is a basic building block of a web page. It represents a piece of content, such as a heading, paragraph, image, or link.&lt;br&gt;
     Most HTML elements have three parts:&lt;br&gt;
       1. Opening tag →  tells the browser what type of element it is&lt;br&gt;
       2. Content → the information inside the element&lt;br&gt;
       3. Closing tag →  ends the element&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Understanding HTML Structure</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Thu, 22 Jan 2026 08:24:14 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/understanding-html-structure-4570</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/understanding-html-structure-4570</guid>
      <description>&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
  HTML (HyperText Markup Language) is the language used to create and structure web pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Meaning of HTML Structure&lt;/strong&gt;&lt;br&gt;
  HTML structure means the basic framework or layout of a web page that shows how content is arranged using HTML tags.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/strong&gt;&lt;br&gt;
  All HTML documents must start with a &amp;lt;!DOCTYPE&amp;gt; declaration.&lt;br&gt;
The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why we use &amp;lt;!DOCTYPE html&amp;gt;:&lt;/strong&gt;&lt;br&gt;
  &lt;strong&gt;Tells the browser the HTML version&lt;/strong&gt; – It informs the browser that the page is written in HTML5.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ensures correct display&lt;/strong&gt; – Without it, browsers may use quirks mode, which can make your page look wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Helps with modern features&lt;/strong&gt; – It allows the browser to understand and correctly display new HTML5 elements like , , and .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Meaning of **head&lt;/strong&gt; tag:**&lt;br&gt;
  The head tag holds information about the web page (like title, metadata, and CSS links) that is mostly not visible on the page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Meaning of **title&lt;/strong&gt; tag:**&lt;br&gt;
  The title tag is used to give a title to the web page. It is placed inside the &lt;/p&gt; section and shows in the browser tab. The title helps users and search engines know what the page is about.

&lt;p&gt;&lt;strong&gt;Meaning of **body&lt;/strong&gt; tag:**&lt;br&gt;
  The body tag contains all the visible content of a web page, such as headings, paragraphs, images, and links. Everything the user sees on the page is placed inside the &lt;/p&gt; tag.

&lt;p&gt;&lt;strong&gt;Inside **body&lt;/strong&gt; tag**&lt;br&gt;
  The body tag contains all the visible parts of a web page, such as:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Headings → &amp;lt;h1&amp;gt; to &amp;lt;h6&amp;gt;
2. Paragraphs → &amp;lt;p&amp;gt;
3. Images → &amp;lt;img&amp;gt;
4. Links → &amp;lt;a&amp;gt;
5. Lists → &amp;lt;ul&amp;gt;, &amp;lt;ol&amp;gt;, &amp;lt;li&amp;gt;
6. Tables → &amp;lt;table&amp;gt;
7. Forms → &amp;lt;form&amp;gt;, &amp;lt;input&amp;gt;
8. Buttons → &amp;lt;button&amp;gt;
9. Videos / Audio → &amp;lt;video&amp;gt;, &amp;lt;audio&amp;gt;
10. Divisions and sections → &amp;lt;div&amp;gt;, &amp;lt;section&amp;gt;, &amp;lt;article&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>html</category>
    </item>
    <item>
      <title>Git and Git Lab</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Sun, 04 Jan 2026 11:41:42 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/git-and-git-lab-54d8</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/git-and-git-lab-54d8</guid>
      <description>&lt;p&gt;&lt;strong&gt;Git Global Information Tracker&lt;/strong&gt;&lt;br&gt;
Git is a version control system that helps us save our code and track changes over time. It allows many people to work on the same project and keeps a complete history of all updates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version Control Systems&lt;/strong&gt;&lt;br&gt;
A version control system is a tool that helps manage different versions of code. There are two types of version control systems.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Centralized Version Control System (CVCS)&lt;/li&gt;
&lt;li&gt;Distributed Version Control System (DVCS)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Centralized Version Control System&lt;/strong&gt;&lt;br&gt;
there is only one main server where the code is stored. All developers connect to that server to get and save changes. If the server goes down, developers cannot work.&lt;br&gt;
Example: SVN&lt;br&gt;
&lt;strong&gt;Distributed Version Control System&lt;/strong&gt;&lt;br&gt;
Every developer has a full copy of the project on their computer. Even if the main server is not available, developers can continue working and later share their changes.&lt;br&gt;
Example: GIT&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gitlab&lt;/strong&gt;&lt;br&gt;
Web-based platform that is used to store and manage Git repositories. It helps developers collaborate on code, track changes, review code, and automate tasks like testing and deployment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Host&lt;/strong&gt;&lt;br&gt;
A host is an online platform that stores your Git repositories so you can access them from anywhere and share them with others.&lt;/p&gt;

</description>
      <category>git</category>
      <category>gitlab</category>
    </item>
    <item>
      <title>HTML Notes</title>
      <dc:creator>Priyaramu</dc:creator>
      <pubDate>Sat, 03 Jan 2026 09:39:10 +0000</pubDate>
      <link>https://forem.com/chandra_ramu_6ec0a1c1eb59/html-notes-6i</link>
      <guid>https://forem.com/chandra_ramu_6ec0a1c1eb59/html-notes-6i</guid>
      <description>&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
HTML (HyperText Markup Language) is the basic language used to create websites. It helps the browser understand what content to show, such as text, images, links, and headings.&lt;br&gt;
The founder of HTML is Tim Berners-Lee. He invented HTML in 1991 and also created the World Wide Web, including URLs and the first web browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Markup Language&lt;/strong&gt;&lt;br&gt;
Markup language is a way to structure and organise text for computers to display properly. HTML, for example, tells the browser which part is a heading, paragraph, or link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Difference between Markup Language vs Programming Language&lt;/strong&gt;&lt;br&gt;
A markup language (like HTML) is for structuring and displaying content.&lt;br&gt;
A programming language (like Python) is for making the computer perform tasks or logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scripting Language&lt;/strong&gt;&lt;br&gt;
A scripting language is a type of programming language that is used to automate tasks or add behavior to websites and apps. Scripts are usually easy to write and run directly without compiling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML and CSS version&lt;/strong&gt;&lt;br&gt;
HTML’s previous versions were 1.0 to 4.01, providing basic structure, forms, and tables. The current version, HTML5, supports video, audio, and modern interactive content. CSS started with CSS1 and CSS2 for basic styling, while CSS3 adds animations, transitions, and advanced design features.&lt;/p&gt;

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