<?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: Adepoju Ronke</title>
    <description>The latest articles on DEV Community by Adepoju Ronke (@thetechgirl_ronke).</description>
    <link>https://dev.to/thetechgirl_ronke</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%2F1407419%2F2a8fd99b-d6ef-494a-881d-5397cfc07542.jpeg</url>
      <title>DEV Community: Adepoju Ronke</title>
      <link>https://dev.to/thetechgirl_ronke</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thetechgirl_ronke"/>
    <language>en</language>
    <item>
      <title>Document Object Model</title>
      <dc:creator>Adepoju Ronke</dc:creator>
      <pubDate>Mon, 06 May 2024 20:54:01 +0000</pubDate>
      <link>https://dev.to/thetechgirl_ronke/document-object-model-4hai</link>
      <guid>https://dev.to/thetechgirl_ronke/document-object-model-4hai</guid>
      <description>&lt;p&gt;As a beginner, learning html, css and javascript you must at a point ask yourself question like, cant i build a website without javascript or say whats is javascript doing that i cant ignore? &lt;/p&gt;

&lt;p&gt;Yes, there is a place for each it, html to add content, CSS to style and Javascript for functionality or interactive and some call it behaviour.&lt;br&gt;
For example, When your alarm wakes you 5am, you either off it or snooze it uisng the button, so think of all the content you see (html), then how the alarm is designed(CSS) i.e interface then when you press the button to left or right and something happened(Javascript). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb1d7r0160r1ipvchbjnp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb1d7r0160r1ipvchbjnp.gif" alt="Image description" width="498" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another question you will likely asked is how does this behaviour happen? It's simple, javascript accessing the content in HTML by communicating with the browser using the properties, methods, and events in the interface called the Document Object Model, or DOM, it ia a tree-like representation of the web page that gets loaded into the browser.&lt;/p&gt;

&lt;p&gt;So here is how DOM works by targeting the content through the element and giving it some instructions to carry out, lets look at DOM structure. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DOM structure&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6qnx4lcqiwk3jhnzumm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6qnx4lcqiwk3jhnzumm.png" alt="Image description" width="561" height="358"&gt;&lt;/a&gt;&lt;br&gt;
lets say I want to control the &lt;code&gt;tr&lt;/code&gt; from javascript using DOM, to access it I go like,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const userTable = document.getElementsByTagName("tr");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and you ahead to give instruction or use it for whatever you want to, which lead us to DOM Properties and method. &lt;/p&gt;

&lt;p&gt;DOM make use of properties and method to access object(HTML Elment), Let mention few DOM Methods, Property and how they used.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces"&gt;DOM METHODs&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;*&lt;a href="https://www.w3schools.com/jsref/met_element_addeventlistener.asp"&gt;addEventListener()&lt;/a&gt;&lt;br&gt;
*&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener("click", myFunction);

function myFunction() {
  document.getElementById("demo").innerHTML = "Hello World";
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://www.w3schools.com/jsref/met_node_appendchild.asp"&gt;appendChild()&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const node = document.createElement("li");
const textnode = document.createTextNode("Water");
node.appendChild(textnode);
document.getElementById("myList").appendChild(node);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;DOM Properties&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>frontend</category>
    </item>
    <item>
      <title>CSS Cascade, Selector and Specificity.</title>
      <dc:creator>Adepoju Ronke</dc:creator>
      <pubDate>Sun, 21 Apr 2024 22:58:29 +0000</pubDate>
      <link>https://dev.to/thetechgirl_ronke/css-cascade-selector-and-specificity-34n4</link>
      <guid>https://dev.to/thetechgirl_ronke/css-cascade-selector-and-specificity-34n4</guid>
      <description>&lt;p&gt;The backbone of website development includes HTML, CSS and a programming language, which JavaScript take lead out of many. HTML basically deal with the content on the website while CSS focus on styling the content to make it appealing and JavaScript focus on functionality. Lets look into CSS, to start with, CSS stands for Cascading Styling Sheet and the topic is to explain CSS Cascade, CSS Selector and CSS Specificity. Lets go&lt;br&gt;
CSS Cascading is set of rules that matters to the result you get. If two rules are set to a particular tag which one will work depends on the rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.w3schools.com/css/css_selectors.asp"&gt;CSS Selector&lt;/a&gt;&lt;/strong&gt; is the way of selecting html elemnt, and styling it.&lt;br&gt;
Ways include, tag selector, class selector, ID selector... e.t.c&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;p {
  text-align: center;
  color: red;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above is element selector but what happens when we have something like this&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;style&amp;gt;
.center{
  text-align: center;
  color: red;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;h1 class="center"&amp;gt;This heading will be red and center-aligned&amp;lt;/h1&amp;gt;
&amp;lt;p class="center"&amp;gt;This paragraph will be red and center-aligned.&amp;lt;/p&amp;gt; 

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

&lt;/div&gt;



&lt;p&gt;but if i want to it to take effect on P alone, then we have it as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;p {
  text-align: center;
  color: red;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above is element selector but what happens when we have something like this&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;style&amp;gt;
p.center{
  text-align: center;
  color: red;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;h1 class="center"&amp;gt;This heading will not be affected&amp;lt;/h1&amp;gt;
&amp;lt;p class="center"&amp;gt;This paragraph will be red and center-aligned.&amp;lt;/p&amp;gt; 

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

&lt;/div&gt;



&lt;p&gt;The H1 is not affected because of more specification given to the selector.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3schools.com/css/css_specificity.asp"&gt;&lt;strong&gt;CSS Specificity&lt;/strong&gt;&lt;/a&gt; is selecting with more specification which you want to style having the rule in mind(Cascading). It what give priority to which rules to be override when we have more than one to rule to an element, just like the example above.&lt;/p&gt;

&lt;p&gt;The specificity can be calculated by you and this helps you to know what and what is working or not working from the code you wrote, to calculate this type of selectors and how you combine it caries weight. Check this &lt;a href="https://specificity.keegan.st/#google_vignette"&gt;Specificity Calculator&lt;/a&gt;, need some help? &lt;a href="https://www.youtube.com/watch?v=F9gC3oz397s"&gt;check this out.&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you find this helpful, leave a comment. Also, have any opinion or contribution drop it in comment section. Thanks  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>History of Internet</title>
      <dc:creator>Adepoju Ronke</dc:creator>
      <pubDate>Fri, 05 Apr 2024 06:47:08 +0000</pubDate>
      <link>https://dev.to/thetechgirl_ronke/history-of-internet-i2j</link>
      <guid>https://dev.to/thetechgirl_ronke/history-of-internet-i2j</guid>
      <description>&lt;p&gt;Have you thought of understanding what internet was? or have you concluded it is some magic happening in the 21st century, either way lets drive into history of internet. &lt;br&gt;
Internet was a solution birth out of war, i doubt you believe that. It is birth out of communication solution proposed back then in the cold war such that computers can be connected together to avoid travelling to the location of the computer as it was not movable back then. &lt;br&gt;
To achieved different computers communication, TCP/IP was developed and January 1st, 1983 stands as the birth of the internet. Internet was actually a shot form of internet networking. Lets look into TCP/Ip and more.&lt;/p&gt;

&lt;p&gt;TCP/IP with the full meaning of Transmission Control Protocol and Internet Protocol is a set of protocol that makes the internet possible which involves a BREAKDOWN, ADDRESSED, TRANSMITTED, ROUTED, RECEIVED, dont be confused. For example, a class teacher can be a perfect example he breaks the courses to different session(BREAKDOWN), then passed(TRANSMITTED) it across to you (ADDRESSED), the route which is the class teacher explaining different way to make you understand the same concept and lastly you received. Transmition can be done using packet and network packet is a basic unit data thats grouped together and transffered.&lt;/p&gt;

&lt;p&gt;Domain Names is another important thing you want to look into when it comes to internet. It is a mechanism for naming resources in such a way that the name is usable instead of mastering the IP Address, see domain names as a simple/nickname name you can your friend instead of that long name given to him by hes parent.&lt;/p&gt;

&lt;p&gt;Lets get familair with FTP,HTTP and HTTPs. FTP means File Transfer Protocol is a way to download, upload and transfer files from on location to another on the internet and bewteen computers. HTTP on the other end is an application layer protocol designed to transfer information bewteen networked devices and runs on top of other layes of the network protocol stack. HTTPs is the secured version of HTTP, which is the protocol used to send data betwween a web broswer and a website. To give of FTP,HTTP and HTTPs think of uploading your document on drive and for HTTP and HTTPs thing of your instrgram account without a password or your phone which means anyone can do whatever they like with it(HTTP), unlike when there is a security code(HTTPs). &lt;/p&gt;

&lt;p&gt;In summary, we computers can communitcate together today, irrpective of there distance due to internet and Protocols serve as the backbone of data transimission. &lt;/p&gt;

</description>
      <category>writing</category>
      <category>frontend</category>
      <category>learning</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
