<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vinojina on Medium]]></title>
        <description><![CDATA[Stories by Vinojina on Medium]]></description>
        <link>https://medium.com/@vinogina.subajini?source=rss-ac806e99fd4b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4TYtM6Fg0lW3C7eL</url>
            <title>Stories by Vinojina on Medium</title>
            <link>https://medium.com/@vinogina.subajini?source=rss-ac806e99fd4b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:13:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vinogina.subajini/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Informations about Server]]></title>
            <link>https://medium.com/@vinogina.subajini/informations-about-server-48bd6dae13de?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/48bd6dae13de</guid>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 07:19:44 GMT</pubDate>
            <atom:updated>2025-04-30T07:19:44.268Z</atom:updated>
            <content:encoded><![CDATA[<p>A server is a computer or a system that provides resources,data,services or programs to other computers,known as clients,over a network.The server’s job is to respond to requests from clients and deliver the appropriate response.</p><p>There are different types of servers,such as:</p><ol><li>Web server: serves websites to users</li></ol><p>2.Data base server: stores and manages databases</p><p>3.File server : allows users to store and access files</p><p>4.Mail server: sends and receives emails</p><p>5.Game server: hosts multiplayer video games</p><p>Web hosting is a service that allows you to publish your website on the internet.It involves storing all your website files on a server and providing a way for people to access those files through a web browser</p><p>Example :its like renting a space on the internet</p><p>There are different types of web hosting, such as:</p><ol><li>Free Hosting</li></ol><p>Its free and non-scalable and Low technical expertise required.It is best for personal blogs,Hobby sites or testing projects.</p><p>2.Shared Hosting</p><p>It is Low cost and limited scalability and low technical expertise required. It can use for small businesses,personal blogs and portfolio sites.</p><p>3.Dedicated Hosting</p><p>It is High cost and fully scalable and high technical expertise required.It can use for Expertise level businesses and E-commerce platforms.</p><p>4.Co-Located Hosting</p><p>High cost and fully scalable. Its techinal expertise requirement is very high.It is use for Organizations needing full control over servers.</p><p>5.VPS Hosting</p><p>It cost medium to High and moderately scalable, Medium techical expertise required.It is use for Growing businesses, medium-traffic websites.</p><p>6.Cloud Hosting</p><p>It cost medium to high and highly scalable, medium to high technical expertise required.It is use for Startups, SaaS providers, fluctuating traffic sites.</p><p>7.Managed Hosting</p><p>High in cost and limited to appliccation type,low technical expertise required. Its use for Businesses needing hands-off hosting management.</p><p>8.Reseller Hosting</p><p>Medium in cost and scalable as business grows,medium technical expertise required. It is use for Freelancers, small web agencies, hosting resellers.</p><p>9.Word Press Hosting</p><p>Medium cost and limited to word press sites,low technical expertise required. It is use for Bloggers, content creators, WordPress-based sites.</p><p><strong>Resource:Greek for Greece</strong></p><p>Do you know how does a websites works?…A websites sends a user’s request to a web server through their browsers.The browser responds with a HTML File and various resources,which the browsers processes and displays.This involves translating the web address to an IP address and retrieving the response body.</p><p><strong>Resource:Blue host</strong></p><p>Selecting a right servers for your business is extremely important and can either promote optimal performance,reliability and security of your business computing or it can present nothing but problems.Five tips to help you make good decisions about servers for your business.</p><ol><li>You have to access your needs</li><li>Plan for Scalability</li><li>Consider Virtualization</li><li>Prioritize Security</li><li>Seek professional advice</li></ol><p><strong>Resource: Global tech solutions</strong></p><p>In conclusion, a server is a powerful system that plays a crucial role in sharing data and services across networks, making modern computing possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48bd6dae13de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Props ( "properties")]]></title>
            <link>https://medium.com/@vinogina.subajini/props-properties-938885ee08af?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/938885ee08af</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 12:29:26 GMT</pubDate>
            <atom:updated>2025-04-27T12:30:11.676Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Props and state</strong></p><p><strong>Props ( &quot;properties&quot;)</strong></p><p>Props are like arguments to a function.</p><p>They are passed from a parent component to a child component.</p><p>Props are read-only — the child component cannot modify the props it receives.</p><p>Used to customize a component when you use it.</p><p>Example:</p><p>function Welcome(props) {<br> return &lt;h1&gt;Hello, {props.name}!&lt;/h1&gt;;<br>}</p><p>// Usage:<br>&lt;Welcome name=&quot;Alice&quot; /&gt;</p><p>Here, name=&quot;Alice&quot; is a prop.</p><p><strong>State</strong></p><p>State is managed inside the component itself.</p><p>It represents data that can change over time (like user input, or whether something is open or closed).</p><p>When state changes, the component re-renders to reflect the new state.</p><p>You update state using functions (like setState in class components or useState in function components).</p><p>Example:</p><p>import { useState } from &#39;react&#39;;</p><p>function Counter() {<br> const [count, setCount] = useState(0);</p><p>return (<br> &lt;div&gt;<br> &lt;p&gt;You clicked {count} times&lt;/p&gt;<br> &lt;button onClick={() =&gt; setCount(count + 1)}&gt;<br> Click me<br> &lt;/button&gt;<br> &lt;/div&gt;<br> );<br>}</p><p>Here, count is state, and setCount is used to change it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938885ee08af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between embedded and referenced data in MongoDB.]]></title>
            <link>https://medium.com/@vinogina.subajini/difference-between-embedded-and-referenced-data-in-mongodb-fbf9d7990a63?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbf9d7990a63</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Sun, 20 Apr 2025 14:08:24 GMT</pubDate>
            <atom:updated>2025-04-20T14:08:24.202Z</atom:updated>
            <content:encoded><![CDATA[<p>In MongoDB, data can be modeled in two primary ways: embedded and referenced. Embedded data means that related data is stored within the same document. For example, a user document might include an address object directly inside it. This approach is efficient for read operations because all the required data is in one place, making it faster and more convenient to access. It also supports atomic updates, which means changes to the document are consistent and reliable. However, embedded documents are limited by MongoDB’s maximum document size of 16MB, and data duplication can occur if the embedded information is reused across many documents.</p><p>On the other hand, referenced data involves storing related information in separate documents and linking them using unique identifiers. For instance, a user document might contain an address_id field that refers to a separate address document in another collection. This method helps reduce data redundancy and is more flexible when working with complex or large datasets. It is ideal when the same data needs to be shared among multiple documents. However, referenced data requires additional queries or the use of MongoDB’s $lookup operation to retrieve the related information, which can slightly reduce read performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbf9d7990a63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB Aggregation Framework]]></title>
            <link>https://medium.com/@vinogina.subajini/mongodb-aggregation-framework-43319dec1e15?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/43319dec1e15</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 05:46:37 GMT</pubDate>
            <atom:updated>2025-04-15T05:46:37.956Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>Aggregation Framework</strong> in MongoDB is used to <strong>process, transform, and analyze data</strong> in a powerful way. Think of it as a pipeline where documents go through multiple stages, and at each stage, you can filter, group, sort, or reshape the data.</p><h3>Why Use Aggregation?</h3><ul><li>To calculate statistics (sum, average, count).</li><li>To group and filter complex data.</li><li>To transform documents into new shapes.</li><li>To do multi-stage processing like SQL’s GROUPBY, JOIN, etc.</li></ul><h3>How It Works: The Pipeline Concept</h3><p>MongoDB’s aggregation uses a <strong>pipeline</strong>, where documents pass through multiple <strong>stages</strong>.<br> Each stage performs a specific operation and passes the result to the next stage.</p><p>Example:db.sales.aggregate([<br> { $match: { category: “electronics” } },<br> { $group: { _id: “$item”, total: { $sum: “$amount” } } },<br> { $sort: { total: -1 } }<br>]);</p><p><strong>Common Aggregation Stages</strong></p><p>1.$match – Filter documents (like find)</p><p>{ $match: { age: { $gt: 25 } } }</p><p>2.$group– Group documents by a field and apply operations</p><p>{<br> $group: {<br> _id: “$department”,<br> totalSalary: { $sum: “$salary” },<br> avgAge: { $avg: “$age” }<br> }<br>}</p><p>3.$project – Reshape documents, include/exclude fields</p><p>{<br> $project: {<br> name: 1,<br> age: 1,<br> fullName: { $concat: [“$firstName”, “ “, “$lastName”] }<br> }<br>}</p><p>4.$sort – Sort the documents</p><p>{ $sort: { age: -1 } }</p><p>5.$limit &amp; $skip– Paginate results</p><p>{ $skip: 10 },<br>{ $limit: 5 }</p><p>6.$lookup – Perform joins (like SQL JOIN)</p><p>{<br> $lookup: {<br> from: “orders”,<br> localField: “_id”,<br> foreignField: “user_id”,<br> as: “orders”<br> }<br>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43319dec1e15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Indexing and Performance Optimization]]></title>
            <link>https://medium.com/@vinogina.subajini/indexing-and-performance-optimization-6271b55deca5?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6271b55deca5</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Tue, 15 Apr 2025 05:43:50 GMT</pubDate>
            <atom:updated>2025-04-15T05:43:50.088Z</atom:updated>
            <content:encoded><![CDATA[<p>As the MongoDB database grows, <strong>queries can become slower</strong> if MongoDB has to scan every document to find matches. This is where <strong>indexes</strong> come in — they <strong>speed up data access</strong> by helping MongoDB quickly locate documents.</p><h3>What is an Index?</h3><ul><li>An <strong>index</strong> is like a <strong>table of contents</strong> in a book. Instead of reading every page, you can jump directly to what you’re looking for.</li><li>In MongoDB, indexes are created on <strong>fields</strong> to make search and sort operations faster.</li></ul><p><strong>Types of Indexes in MongoDB</strong></p><ol><li>Single Field Index</li></ol><ul><li>Created on one field.</li></ul><p>db.users.createIndex({ name: 1 });</p><p>2.Compound index</p><ul><li>Created on multiple fields</li></ul><p>db.users.createIndex({ name: 1, age: -1 });</p><p>3.Text index</p><ul><li>Allows text search in string fields.</li></ul><p>db.articles.createIndex({ title: “text”, content: “text” });</p><p>4. Geospatial Index</p><ul><li>For location-based queries (e.g., maps, delivery apps).</li></ul><p>db.places.createIndex({ location: “2dsphere” });</p><p>5.Hashed Index</p><ul><li>Useful for <strong>sharding</strong> (distributing data across servers)</li></ul><p>db.users.createIndex({ userId: “hashed” });</p><p><strong>MongoDB provides a tool to analyze query performance</strong></p><p>db.users.find({ name: “Alice” }).explain(“executionStats”);</p><p><strong>To list all indexes on a collection</strong></p><p>db.users.getIndexes();</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6271b55deca5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRUD Operation in MongoDB]]></title>
            <link>https://medium.com/@vinogina.subajini/crud-operation-in-mongodb-5e8664193628?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e8664193628</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 12:32:28 GMT</pubDate>
            <atom:updated>2025-04-12T12:32:28.671Z</atom:updated>
            <content:encoded><![CDATA[<p>CRUD stands for:</p><ul><li><strong>C</strong>reate — Add new data</li><li><strong>R</strong>ead — Retrieve data</li><li><strong>U</strong>pdate — Modify existing data</li><li><strong>D</strong>elete — Remove data</li></ul><p>These operations are performed on <strong>documents</strong> within <strong>collections</strong>.</p><p><strong>Create</strong></p><p>db.users.insertOne({<br> name: “Alice”,<br> age: 25,<br> email: “<a href="/service/mailto:alice@example.com">alice@example.com</a>”<br>});</p><p><strong>Read</strong></p><p>Find all documents:</p><p>Example:db.users.find();</p><p><strong>Update</strong></p><p>db.users.updateOne(<br> { name: “Alice” },<br> { $set: { age: 26 } }<br>);</p><p><strong>Delete</strong></p><p>db.users.deleteOne({ name: “Charlie” });</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e8664193628" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB Data Model]]></title>
            <link>https://medium.com/@vinogina.subajini/mongodb-data-model-3739af16caa8?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3739af16caa8</guid>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 11:57:40 GMT</pubDate>
            <atom:updated>2025-04-12T11:57:40.007Z</atom:updated>
            <content:encoded><![CDATA[<p>MongoDB uses a <strong>document-oriented</strong> data model instead of the traditional row-and-column format used by relational databases. This makes it easier to store complex, nested, or unstructured data in a way that matches how it’s used in applications.</p><h3>Documents</h3><ul><li>A <strong>document</strong> is the basic unit of data in MongoDB.</li><li>It is stored in a format called <strong>BSON</strong> (Binary JSON), which supports more data types than regular JSON.</li></ul><p>Example:{<br> “name”: “John”,<br> “age”: 30,<br> “email”: “<a href="/service/mailto:john@example.com">john@example.com</a>”,<br> “hobbies”: [“reading”, “cycling”]<br>}</p><h3>Collections</h3><ul><li>A <strong>collection</strong> is a group of MongoDB documents (like a table in SQL).</li><li>Documents in the same collection can have <strong>different fields</strong> and structures.</li></ul><p>Example:{<br> “name”: “Alice”,<br> “age”: 25<br>}</p><h3>Flexible Schema</h3><ul><li>MongoDB is <strong>schema-less</strong>, meaning you don’t need to pre-define the structure.</li><li>Each document can be different, allowing more flexibility in storing data.</li><li>This is useful for applications where the data structure may evolve over time.</li></ul><h3>Embedded Documents vs References</h3><p>MongoDB offers two ways to model relationships:</p><ul><li><strong>Embedded Documents (Denormalization)</strong><br> Store related data inside a single document.</li></ul><p>Example:{<br> “name”: “Emma”,<br> “address”: {<br> “city”: “London”,<br> “zip”: “E1 6AN”<br> }<br>}</p><p><strong>References (Normalization)</strong><br> Store related data in different documents and link them using an ID</p><p>Example:// user document<br>{<br> “name”: “Tom”,<br> “profile_id”: ObjectId(“123abc”)<br>}</p><p>// profile document<br>{<br> “_id”: ObjectId(“123abc”),<br> “bio”: “Hello, I’m Tom!”<br>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3739af16caa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to MongoDB]]></title>
            <link>https://medium.com/@vinogina.subajini/introduction-to-mongodb-90426d5bd8ff?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/90426d5bd8ff</guid>
            <category><![CDATA[introduction-to-mongodb]]></category>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Sat, 12 Apr 2025 11:42:14 GMT</pubDate>
            <atom:updated>2025-04-12T11:42:14.172Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>MongoDB</strong> is a <strong>NoSQL, document-oriented database</strong> designed for high performance, scalability, and flexibility. Unlike traditional relational databases (like MySQL or PostgreSQL), MongoDB stores data in <strong>JSON-like documents</strong> (called BSON — Binary JSON), which makes it easier to work with complex, hierarchical data.</p><p><strong>Features of MongoDB</strong></p><ul><li>Data is stored in <strong>documents</strong> (key-value pairs), not rows and columns.</li></ul><p>Example:{<br> “name”: “Alice”,<br> “age”: 25,<br> “hobbies”: [“reading”, “traveling”]<br>}</p><ul><li>Flexible Schema</li><li>Collections Instead of Tables</li><li>Scalability</li><li>High Performance</li></ul><p><strong>When to Use MongoDB</strong></p><ul><li>Real-time analytics platforms</li><li>Content management systems</li><li>Mobile apps with flexible data needs</li><li>IoT or sensor data storage</li><li>Chat applications</li></ul><p><strong>Comparison with SQL</strong></p><p><strong>1.Data Format</strong></p><ul><li>SQL databases store data in <strong>tables</strong> with rows and columns.</li><li>MongoDB stores data in <strong>documents</strong> that are similar to JSON objects, allowing nested data structures.</li></ul><p><strong>2.Schema</strong></p><ul><li>SQL databases use a <strong>fixed schema</strong>, which means you must define the structure of data before inserting it.</li><li>MongoDB uses a <strong>flexible schema</strong>, so documents in the same collection can have different fields and structures.</li></ul><p><strong>3.Joins and Relationships</strong></p><ul><li>SQL databases handle <strong>relationships</strong> well using joins (e.g., INNER JOIN, LEFT JOIN).</li><li>MongoDB doesn’t support joins like SQL, but it has the $lookup operator for combining data from different collections when needed.</li></ul><p><strong>4.Scalability</strong></p><ul><li>SQL databases usually scale <strong>vertically</strong> (adding more power to one server).</li><li>MongoDB is designed for <strong>horizontal scaling</strong>, which means adding more servers to distribute data (sharding).</li></ul><p><strong>5.Transactions</strong></p><ul><li>SQL databases offer <strong>strong transaction support</strong>, ensuring ACID compliance (Atomicity, Consistency, Isolation, Durability).</li><li>MongoDB now supports <strong>multi-document transactions</strong> (since version 4.0), though originally it was optimized for single-document operations.</li></ul><p><strong>6.Use Case Fit</strong></p><ul><li>SQL is ideal for applications with <strong>structured data</strong> and complex <strong>relationships</strong> (e.g., banking systems).</li><li>MongoDB is perfect for <strong>unstructured or semi-structured data</strong>, <strong>real-time analytics</strong>, or applications that need fast development and flexibility (e.g., social media apps, content platforms).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90426d5bd8ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data base Questions]]></title>
            <link>https://medium.com/@vinogina.subajini/data-base-questions-eb9a363cdd61?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb9a363cdd61</guid>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 09:50:27 GMT</pubDate>
            <atom:updated>2025-04-07T09:50:27.095Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Data?</strong></p><ul><li>Data is a collection of information gathered by observations, measurements, research or analysis</li></ul><p><strong>What is a database?</strong></p><ul><li>An organized collection of structured information or data, typically stored electronically in a computer system</li></ul><p><strong>What is a Server?</strong></p><ul><li>It is a computer system or program that provides resources, data, services, or programs to other computers (clients) over a network, following the client-server model.</li></ul><p><strong>Explain the type of Databases.</strong></p><p><strong>1.Relational Data base</strong></p><p>Relational databases organize data into tables with rows and columns, using structured query language (SQL) for data manipulation and retrieval.</p><p>Examples: MySQL, Oracle, PostgreSQL, Microsoft SQL Server</p><p><strong>2.Non relational Data base</strong></p><p>Non relational databases are designed to handle unstructured, semi-structured, or dynamic data, offering flexibility and scalability.</p><p>Examples: MongoDB, Cassandra, Redis</p><p><strong>Advantages and Disadvantages of Centralized Database?</strong></p><p><strong>1.Advantages</strong></p><ul><li>Data integrity</li><li>Data redundancy</li><li>Data security</li><li>Data portability</li></ul><p><strong>2.Disadvantages</strong></p><ul><li>Slow processing</li><li>Less efficiency</li><li>Loss of data</li></ul><p><strong>What is the Data controller language and Transaction controller language?</strong></p><p><strong>1.Data controller</strong></p><p>The Data controller determines the purposes for which and the means<strong> </strong>by which personal data is processed.</p><p><strong>2.Transaction Controller</strong></p><p>Transaction Control Language (TCL) instructions are used to handle database transactions.</p><p><strong>What is DBMS</strong></p><ul><li>It is a software application that allows users to create,manage,and interact with data base ,enabling efficient storage,retrieval, and manipulation of data.</li></ul><p><strong>What is the main difference between relational databases (RDBMS) and non-relational databases (NoSQL) in terms of how they store data?</strong></p><ul><li>Relational data base (RDBMS) store data in tables with rows and columns, while Non relational data base(NoSQL) databases use various models like key-value, document, or graph, offering more flexibility for unstructured or semi-structured data.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb9a363cdd61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Document Object Model.(DOM)]]></title>
            <link>https://medium.com/@vinogina.subajini/document-object-model-dom-f8d5487d2380?source=rss-ac806e99fd4b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8d5487d2380</guid>
            <category><![CDATA[dom]]></category>
            <dc:creator><![CDATA[Vinojina]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 05:12:23 GMT</pubDate>
            <atom:updated>2025-03-20T05:12:23.566Z</atom:updated>
            <content:encoded><![CDATA[<p>The DOM organizes an HTML document into a <strong>tree-like structure</strong> where each element (tag) is a <strong>node</strong>. There are different types of nodes:</p><ul><li><strong>Document Node</strong>: Represents the entire HTML document.</li><li><strong>Element Nodes</strong>: Represent HTML tags (&lt;body&gt;, &lt;p&gt;, &lt;h1&gt;, etc.).</li><li><strong>Text Nodes</strong>: Contain text inside elements.</li><li><strong>Attribute Nodes</strong>: Represent attributes inside elements (class, id, etc.).</li><li><strong>Comment Nodes</strong>: Represent comments inside the document (&lt;!-- Comment --&gt;).</li></ul><p><strong>Example for DOM Representation (Tree Structure)</strong></p><p>Document<br> ├── html<br> ├── head<br> │ ├── title (“DOM Example”)<br> ├── body<br> ├── h1 (“Hello, World!”)<br> ├── p (“This is a paragraph.”)</p><p><strong>With the object model, JavaScript gets all the power it needs to create dynamic HTML:</strong></p><ul><li>JavaScript can change all the HTML elements in the page</li><li>JavaScript can change all the HTML attributes in the page</li><li>JavaScript can change all the CSS styles in the page</li><li>JavaScript can remove existing HTML elements and attributes</li><li>JavaScript can add new HTML elements and attributes</li><li>JavaScript can react to all existing HTML events in the page</li><li>JavaScript can create new HTML events in the page</li></ul><p><strong>Why the DOM is Important?</strong></p><ul><li><strong>Enables dynamic web pages</strong> (e.g., interactive forms, real-time updates).</li><li><strong>Allows manipulation of content, structure, and styles</strong>.</li><li><strong>Supports event-driven programming</strong> (e.g., user interactions).</li></ul><p><strong>Key Features of the DOM:</strong></p><ul><li><strong>Tree Structure</strong> — Represents HTML elements as a nested tree.</li><li><strong>Programming Interface</strong> — JavaScript can modify the document dynamically.</li><li><strong>Live Updates</strong> — Changes to the DOM immediately reflect on the webpage.</li></ul><p><strong>Some Key points of DOM:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*k7VaY26rHCxJxMvpikLqtg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8d5487d2380" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>