<?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: ssemugenyi isaac</title>
    <description>The latest articles on DEV Community by ssemugenyi isaac (@isaacpro01).</description>
    <link>https://dev.to/isaacpro01</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%2F222346%2F583c84b8-08a2-4e57-8bb7-fdb2e2df5e94.png</url>
      <title>DEV Community: ssemugenyi isaac</title>
      <link>https://dev.to/isaacpro01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/isaacpro01"/>
    <language>en</language>
    <item>
      <title>HTML Meta Tag</title>
      <dc:creator>ssemugenyi isaac</dc:creator>
      <pubDate>Fri, 10 Jan 2020 10:22:37 +0000</pubDate>
      <link>https://dev.to/isaacpro01/html-meta-tag-2hg2</link>
      <guid>https://dev.to/isaacpro01/html-meta-tag-2hg2</guid>
      <description>&lt;p&gt;During web development and mostly when writing html pages, as developers at times we forget to specify the basic viewport (&lt;a href="https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag"&gt;area of the window in which web content can be seen&lt;/a&gt;) parameters that affect the appearance of our pages on different device screens. The meta tag below handles alot when it comes to how a user interacts with a page on mobile devices and tablets.&lt;br&gt;
&lt;/p&gt;

&lt;h3&gt;&lt;b&gt;Meta Tag&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;&amp;lt;*meta name=”viewport” content=”width=device-width, initial-scale=1.0, user-scalable=no"&lt;/em&gt;&amp;gt;*&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;So today I decided to write and talk about it, the code above contains a couple of parameters to say &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;em&gt;meta name="viewport"&lt;/em&gt; which typical appears on every mobile-optimized site&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;width=device-width &lt;/em&gt; this property controls the size of the viewport which can be set to a specific number of pixels like width=750 or to the special value device-width, which is the width of the screen in CSS pixels at a scale of 100%&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;initial-scale=2.0 &lt;/em&gt; property controls the zoom level when the page is first loaded&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;user-scalable=yes &lt;/em&gt; by default this property is set to yes even when not specified, according to me this is the most vital property that I have found out to have alot of effect on how the page behaves on phones and other touch screen device,if the &lt;em&gt;user-scalable&lt;/em&gt; is set to &lt;b&gt;yes&lt;/b&gt; then the user has all the right to zoom the page on a phone and this does not limit the accessibility of your site even to the low vision people and if set to &lt;b&gt;no&lt;/b&gt; the user will not be able to zoom the page no matter what which might affect some users during accessing your site&lt;/li&gt;
&lt;/ol&gt; 

&lt;p&gt;So, during page development, always mind about this and specify the write property depending on your app requirement.&lt;/p&gt;

&lt;p&gt;Note: Always enclose all the parameters with double qoutes in content like &lt;em&gt;content="......."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you might be interested in reading more about this, please follow the links below;&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag"&gt;Mozilla MDN&lt;/a&gt;&lt;br&gt;
&lt;a href="https://a11yproject.com/posts/never-use-maximum-scale/"&gt;The A11Y Project&lt;/a&gt;&lt;br&gt;
&lt;a href="https://sitebulb.com/hints/mobile-friendly/the-viewport-meta-tag-prevents-the-user-from-scaling/"&gt;Sitebulb&lt;/a&gt;&lt;br&gt;
&lt;a href="https://css-tricks.com/snippets/html/responsive-meta-tag/"&gt;css-tricks&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A trickier but simple JavaScript question</title>
      <dc:creator>ssemugenyi isaac</dc:creator>
      <pubDate>Thu, 09 Jan 2020 14:19:44 +0000</pubDate>
      <link>https://dev.to/isaacpro01/a-trickier-but-simple-javascript-question-95f</link>
      <guid>https://dev.to/isaacpro01/a-trickier-but-simple-javascript-question-95f</guid>
      <description>&lt;h1&gt;Question&lt;/h1&gt;

&lt;p&gt;Write a js code that prints to the console the numbers from 1 to 100. But for multiples of 3 print “Fizz” instead of the number and for the multiples of 5 print “Buzz”. For numbers which are multiples of both 3 and 5 print “FizzBuzz”?&lt;/p&gt;

&lt;h3&gt;Answer&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
*1. We declare a variable*
*2. Do a for loop, let y equal to 1 and whenever y is less than x, the loop runs again*
*3. Check for y values that are divisible by both 3 and 5 and print FizzBuzz instead of the number*
*4. check for y values that are divisible by 3 and print Fizz instead of the number*
*5. check for y values that are divisible by 5 and print Buzz instead*
*6. Else print the number*

let x = 100;

for(let y = 1; y&amp;lt;=x; y++){
   if(y%3==0 &amp;amp;&amp;amp; y%5==0){ console.log('FizzBuzz') }
else if(y%3==0){ console.log('Fizz') }
else if(y%5==0){ console.log('Buzz') }
else{ console.log(y) }
}

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

&lt;/div&gt;



&lt;p&gt;Hope this was helpful&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
