<?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: Iqra Masroor</title>
    <description>The latest articles on DEV Community by Iqra Masroor (@iqramqra).</description>
    <link>https://dev.to/iqramqra</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%2F325896%2F7828b82e-46af-45cb-8805-01386f168aef.jpg</url>
      <title>DEV Community: Iqra Masroor</title>
      <link>https://dev.to/iqramqra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iqramqra"/>
    <language>en</language>
    <item>
      <title>5 Basic Design Concepts for Front-End Devs</title>
      <dc:creator>Iqra Masroor</dc:creator>
      <pubDate>Tue, 10 Mar 2020 14:17:40 +0000</pubDate>
      <link>https://dev.to/iqramqra/5-basic-design-concepts-for-front-end-devs-19am</link>
      <guid>https://dev.to/iqramqra/5-basic-design-concepts-for-front-end-devs-19am</guid>
      <description>&lt;p&gt;As a graphic designer, diving into coding is a bit daunting and scary. My coding process is a bit different. I like to start my project off with thinking of a &lt;em&gt;client&lt;/em&gt;. By doing so, I can define the theme of my app and figuring out what functionality I can add. From there, I create a wireframe. The wireframe allows me to see the layout of my application. After that, I start coding. I start by building out the functionality and testing to see if it all works. Finally, I start coding the front end and use different CSS frameworks to design my applications.&lt;/p&gt;

&lt;p&gt;Below are the concepts that I apply to my design.&lt;/p&gt;

&lt;h2&gt;1. Wireframes&lt;/h2&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%2Fi%2Frflcygn8tn2gruqb94xi.jpeg" 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%2Fi%2Frflcygn8tn2gruqb94xi.jpeg" alt="Alt Text" width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
The term means to sketch out the placements of buttons, images, and text with the most minimal amount of details. This allows you to visually think about how you want your final product to look. This also allows you to physically see how many pages or elements you might need to build into your code.&lt;/p&gt;

&lt;h2&gt;2. Composition &lt;/h2&gt;

&lt;p&gt;The composition is when elements are arranged to look a certain way. One concept that you should familiarize yourself with is the grid system. It is used with most of the CSS frameworks, like Bootstrap and Foundation. Have contrast with size and color to help information flow better. The best way to have your work look and feel meaningful is to have a focal point. check out &lt;a href="https://99designs.com/blog/tips/design-composition-and-layout/"&gt;this&lt;/a&gt; blog for a better understanding of composition.&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%2Fi%2Fuzart0wpsfn9upwkjqct.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%2Fi%2Fuzart0wpsfn9upwkjqct.png" alt="Alt Text" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;3. Repetition &lt;/h2&gt;

&lt;p&gt;Repetition means to reuse the same or a similar image/or style throughout your design. For example, if you are using a round button on the form, that style of the round button should be consistent whenever a button appears on your page. &lt;/p&gt;

&lt;h2&gt;4. Color &lt;/h2&gt;

&lt;p&gt;Always have a color palette for your work. This helps your work look cohesive, well-thought-out, and just visually pleasant to look at. There are many tools/websites out there that generate a color palette. The one I usually reach for is &lt;a href="http://colormind.io/"&gt;color Mind&lt;/a&gt; or &lt;a href="https://coolors.co/"&gt;coolors&lt;/a&gt;.&lt;br&gt;
&lt;em&gt;Tip&lt;/em&gt; Use three colors at most. One primary color, one secondary color, and one accent color. Use the 60-30-10 rule. 60% should be your brand color, 30% should be your secondary color and 10% is the accent color. &lt;/p&gt;

&lt;h2&gt;5. Typography&lt;/h2&gt;

&lt;p&gt;Typography refers art of arranging type to be more legible, and pleasing to look at while conveying information. Some basic types of typographical elements you have seen in the code are:&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="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;This&lt;/span&gt; &lt;span class="nt"&gt;would&lt;/span&gt; &lt;span class="nt"&gt;be&lt;/span&gt; &lt;span class="nt"&gt;the&lt;/span&gt; &lt;span class="nt"&gt;largest&lt;/span&gt; &lt;span class="nt"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h1&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;This&lt;/span&gt; &lt;span class="nt"&gt;would&lt;/span&gt; &lt;span class="nt"&gt;be&lt;/span&gt; &lt;span class="nt"&gt;the&lt;/span&gt; &lt;span class="nt"&gt;second&lt;/span&gt; &lt;span class="nt"&gt;largests&lt;/span&gt; &lt;span class="nt"&gt;text&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;h2&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;strong&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;This&lt;/span&gt; &lt;span class="nt"&gt;would&lt;/span&gt; &lt;span class="nt"&gt;be&lt;/span&gt; &lt;span class="nt"&gt;bold&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;strong&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;This&lt;/span&gt; &lt;span class="nt"&gt;would&lt;/span&gt; &lt;span class="nt"&gt;be&lt;/span&gt; &lt;span class="nt"&gt;the&lt;/span&gt; &lt;span class="nt"&gt;smallest&lt;/span&gt; &lt;span class="nt"&gt;size&lt;/span&gt; &lt;span class="nt"&gt;of&lt;/span&gt; &lt;span class="nt"&gt;font&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;This is where composition comes into play. First, you need an understanding of what the most important information you want the user to see is. For this information, you would most likely go for an h1 tag or maybe make the text bold to make it stand out from the rest. &lt;/p&gt;

&lt;p&gt;Another way to use typography is by pairing two different font families together and create contrast. The most common pairing is a san-serif typeface paired with a serif font face. Below are some examples: &lt;/p&gt;

&lt;p&gt;&lt;em&gt; images taken from &lt;a href="https://digitalsynopsis.com/design/best-google-fonts-combinations-typeface-pairings/"&gt;here&lt;/a&gt;&lt;/em&gt;&lt;br&gt;
Example of San-serif pairs: &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%2Fi%2Fj1kwb2rvuib73zezdi7l.jpg" 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%2Fi%2Fj1kwb2rvuib73zezdi7l.jpg" alt="Alt Text" width="800" height="1214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example of a Serif pairing:&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%2Fi%2Fe874tp4lm111na82o8ow.jpg" 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%2Fi%2Fe874tp4lm111na82o8ow.jpg" alt="Alt Text" width="800" height="1201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example of a Serif pairing:&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%2Fi%2Fxrpp5jk5uizgjw3u9rk9.jpg" 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%2Fi%2Fxrpp5jk5uizgjw3u9rk9.jpg" alt="Alt Text" width="800" height="1224"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hopefully, this has helped you become more aware of design in general. The more you practice the better you get. As for now check out these resources.&lt;/p&gt;

&lt;p&gt;Here is a list of resources to check out:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://accessibility.psu.edu/color/brightcolors/"&gt;Color Combos to avoid&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/bootstrap/ui-kits-4ik5"&gt;BootStrap Templates Blog&lt;/a&gt;&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout"&gt;CSS Grid guide MDN&lt;/a&gt;&lt;br&gt;
&lt;a href="https://fonts.google.com/"&gt;Google Fonts&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ui</category>
      <category>css</category>
      <category>beginners</category>
      <category>frontend</category>
    </item>
    <item>
      <title>A Beginners Guide To DOM Manipulation</title>
      <dc:creator>Iqra Masroor</dc:creator>
      <pubDate>Fri, 21 Feb 2020 17:02:24 +0000</pubDate>
      <link>https://dev.to/iqramqra/a-beginners-guide-to-dom-manipulation-45bk</link>
      <guid>https://dev.to/iqramqra/a-beginners-guide-to-dom-manipulation-45bk</guid>
      <description>&lt;p&gt;DOM or Document Object Model is a representation of the web page or document, which can be modified with a scripting language such as JavaScript according to &lt;a href="https://developer.mozilla.org/en-US/docs/Glossary/DOM"&gt;MDN&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It characterizes the DOM HTML document as a hierarchical tree structure and each element in the document tree is called a Node.&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%2Fi%2F28twvrrporelc6litdz9.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%2Fi%2F28twvrrporelc6litdz9.png" alt="Alt Text" width="265" height="190"&gt;&lt;/a&gt;&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%2Fi%2F2kwxrcjp39rtadb12tmu.jpg" 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%2Fi%2F2kwxrcjp39rtadb12tmu.jpg" alt="Alt Text" width="490" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DOM nodes represent all components that make up a web page. For example, a head tag is considered to be a node. Most nodes have a starting tag and ending tag. Things can be nested inside these tags. The inner node is called a child node and the outer node is considered to be its parent node.&lt;/p&gt;

&lt;p&gt;Some nodes are self-closing tags like the "img" tag. These are called void nodes and cannot be a parent node, meaning things can’t be nested within them. &lt;/p&gt;

&lt;p&gt;Refer to the graph below.&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%2Fi%2Foq2oomkvvl9iou5rvcuo.jpg" 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%2Fi%2Foq2oomkvvl9iou5rvcuo.jpg" alt="Alt Text" width="800" height="592"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Since 'document' is an object which has properties and attributes, it will have properties &amp;amp; methods. In order to access things within an object, we use selector and query methods to change the content displayed in the browser.&lt;/p&gt;

&lt;h1&gt;Element Selectors&lt;/h1&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;idName&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;//This method only returns the one element by the specified ID. &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;getElementByClass&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;className&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;//This method returns all elements inside the whole document by the class you specified.&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;someElement&lt;/span&gt;&lt;span class="dl"&gt;"&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;className&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;//It works in all elements of the DOM, this will return all elements by the class you specify inside the element you want&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;Query Selectors&lt;/h1&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;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;#idName&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;//This method takes one argument, which is a CSS selector &amp;amp; returns the first element that matches the selector. &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;.className&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;//Works similar to above; returns a node list collection of all matching elements.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;Create an Element&lt;/h1&gt;

&lt;h4&gt;APPEND&lt;/h4&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;createElement&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;body&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;//this method creats the element, but it does not show up on the page.&lt;/span&gt;

&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;//this method gets the element to appear on the page.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h4&gt;.INNERHTML&lt;/h4&gt;
&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;h1&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;greetings&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;HELLO&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/h1&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;
&lt;span class="kd"&gt;let&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;#greeting&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;innerHTML&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Welcome&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="c1"&gt;//selects the h1 called greetings and changes HELLO to welcome&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;h1&gt;Changing Attributes&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&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;.container&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;backgroundColor&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#f0f0f0&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="c1"&gt;//changes the selected elements(in this case the container class) color to grey&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;Removing Elements&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;element&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="c1"&gt;//removes a whole element from the page&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is just a basic overview of some of the methods used to manipulate the DOM.&lt;/p&gt;

</description>
      <category>dom</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Releasing Your Inner Unicorn</title>
      <dc:creator>Iqra Masroor</dc:creator>
      <pubDate>Tue, 28 Jan 2020 22:33:12 +0000</pubDate>
      <link>https://dev.to/iqramqra/releasing-your-inner-unicorn-3a0e</link>
      <guid>https://dev.to/iqramqra/releasing-your-inner-unicorn-3a0e</guid>
      <description>&lt;p&gt;Welcome, readers. Today, I will be showing you all how you can reach deep into your soul and find your rainbow.&lt;/p&gt;

&lt;p&gt;Recently, a friend and I developed a simple CLI application that allows users to order coffee using Ruby. It performed simple CRUD actions that are able to take in user input. Let’s sidetrack for a second, CRUD stands for &lt;em&gt;Create&lt;/em&gt;, &lt;em&gt;Read&lt;/em&gt;, &lt;em&gt;Update&lt;/em&gt; and &lt;em&gt;Delete&lt;/em&gt;, and is the life of coding.&lt;/p&gt;

&lt;p&gt;I was amazed at what we had created! Our application was able to perform all these methods (shoutout to Julz)! Now, what bothered me was how plain and boring it looked. Well, it &lt;em&gt;is&lt;/em&gt; a CLI app what else would you expect, is what you might be thinking but coming from a design background: I did not like it at all. So I embarked on a journey to find a way to add a wow factor to our CLI app. After many quests, and article after article about the colorize gem, I read about a 'unicorn'. That's right: a unicorn - or a Ruby Gem called 'LOLCAT'.&lt;/p&gt;

&lt;p&gt;Now what this gem does is that it prints out your whole terminal in a rainbow-like so:&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%2Fi%2Fds65mh15kwupim2vaaxh.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%2Fi%2Fds65mh15kwupim2vaaxh.png" alt="Alt Text" width="800" height="786"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want your terminal to spit out all its info in color simply follow the following steps:&lt;/p&gt;

&lt;h4&gt;Using LOLCAT directly in the command line.&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open up your terminal.&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%2Fi%2F0vtq0gd2gwxagg3yvs5u.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%2Fi%2F0vtq0gd2gwxagg3yvs5u.gif" alt="Alt Text" width="402" height="345"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Type in &lt;em&gt;'gem install lolcat'&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once installed simply add &lt;em&gt;'| lolcat'&lt;/em&gt; after a command.&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%2Fi%2F4z62v5of7h8krx8cyh0g.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%2Fi%2F4z62v5of7h8krx8cyh0g.png" alt="Alt Text" width="484" height="370"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now you can add a splash of color in your dark dark terminal life.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/gx54W1mSpeYMg/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/gx54W1mSpeYMg/giphy.gif" alt="Alt Text" width="375" height="350"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;Using LOLCAT within a program.&lt;/h4&gt;

&lt;p&gt;Now if you want to use this within a program simply do the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First, create a method (or don't if you don't want to...). &lt;/li&gt;
&lt;li&gt;Then, write &lt;em&gt; fork{ } &lt;/em&gt;. This allows you to run the lolcat command in the program itself.&lt;/li&gt;
&lt;li&gt;Finally, Within the &lt;em&gt;{ }&lt;/em&gt; add whichever file or method you want to call lolcat on. like so:
&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%2Fi%2F69emaq28cgvyshhc1sk2.png" alt="Alt Text" width="800" height="83"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The code above created the following results:&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%2Fi%2F1gevzkdct31e3d8224d0.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%2Fi%2F1gevzkdct31e3d8224d0.png" alt="Alt Text" width="800" height="719"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have mentioned fork but you might be asking yourself what the &lt;em&gt;-a&lt;/em&gt; and &lt;em&gt;-d&lt;/em&gt; stand for? In this specific piece of code, we wanted our title screen to be animated so -a stands for animate and -d stands for the duration. The title is now an animation that runs for 4 seconds.&lt;/p&gt;

&lt;p&gt;This was able to help me add a few &lt;em&gt;gems&lt;/em&gt; to the project (pun intended) and make it sparkle.&lt;/p&gt;

&lt;p&gt;If you're still a bit iffy about how to lolcat feel free to check out their GitHub link &lt;a href="https://github.com/busyloop/lolcat"&gt;here&lt;/a&gt;, but what helped me the most was &lt;a href="https://medium.com/@dekadekadeka/lolcat-rainbow-animation-in-ruby-f199bd817e75"&gt;this&lt;/a&gt; article written by Deka Ambia. I definitely recommend reading this once if you want to use lolcat within your program. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Qa3PEDFV4M4eI/source.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Qa3PEDFV4M4eI/source.gif" alt="Alt Text" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>lolcat</category>
      <category>rubygem</category>
      <category>cli</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
