<?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: Aditya Saini</title>
    <description>The latest articles on DEV Community by Aditya Saini (@adityasaini3).</description>
    <link>https://dev.to/adityasaini3</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%2F917940%2Faa7268be-163a-4e9c-befe-28d1132314c3.jpg</url>
      <title>DEV Community: Aditya Saini</title>
      <link>https://dev.to/adityasaini3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adityasaini3"/>
    <language>en</language>
    <item>
      <title>How to fetch data from API in ReactJS</title>
      <dc:creator>Aditya Saini</dc:creator>
      <pubDate>Wed, 08 Mar 2023 03:06:26 +0000</pubDate>
      <link>https://dev.to/adityasaini3/how-to-fetch-data-from-api-in-reactjs-g56</link>
      <guid>https://dev.to/adityasaini3/how-to-fetch-data-from-api-in-reactjs-g56</guid>
      <description>&lt;p&gt;Web development nowadays seems incomplete without API's as most of the websites we build are using some kind of API to power a feature in it or to use some kind of data. Fetching data from an API is fairly easy to understand in JavaScript but in React you might get a little confused about the use of useEffect hook in addition with the other fetching code used in vanilla JavaScript.&lt;/p&gt;

&lt;p&gt;We use useEffect hook in react to fetch data from an API by fetching data inside of useEffect hook but why we can’t fetch data in React like as we do in vanilla JavaScript?&lt;/p&gt;

&lt;p&gt;You might answer it like this, because it is React. &lt;br&gt;
Hmmm… That might be a good answer to it. &lt;/p&gt;

&lt;p&gt;Let’s understand it by firstly fetching data same as we fetch in Vanilla JavaScript and then see what is the behaviour and find out the reason why we fetch data inside useEffect hook.&lt;/p&gt;
&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;In React we store data fetched from the API in a state using setState callback because a state makes data convenient to be shared among child components using props. &lt;br&gt;
So, we have created a state named &lt;strong&gt;&lt;em&gt;info&lt;/em&gt;&lt;/strong&gt; Which we will be using to store data fetched from JSON placeholder API (api that provide a test data) and we will use the fetch API for this purpose.&lt;/p&gt;

&lt;p&gt;What we are doing below is we are fetching the data inside the function &lt;strong&gt;&lt;em&gt;fetchData&lt;/em&gt;&lt;/strong&gt; and setting that data to &lt;strong&gt;&lt;em&gt;info&lt;/em&gt;&lt;/strong&gt; state using &lt;strong&gt;&lt;em&gt;setInfo&lt;/em&gt;&lt;/strong&gt; callback and below the function we are calling the function and in the return statement of the component we are rendering the title property (&lt;strong&gt;&lt;em&gt;info.title&lt;/em&gt;&lt;/strong&gt;) of the data we have got from the API. &lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/test-revgnd"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The catch here is to go to App.jsx file by dragging from left to right in the embedded editor and uncommenting the console.log(info) that is below the fetchData() function callback and you will observe a unusual behaviour in the console. (You may uncomment it again after this as this would take a significant space of your CPU.)&lt;/p&gt;

&lt;p&gt;You will notice that the console.log is running an infinite loop by giving the same output again and again but why is this happening?&lt;/p&gt;

&lt;p&gt;This issue is occurring because the component is getting rendered again and again but why it is rendering in an infinite loop?&lt;/p&gt;

&lt;p&gt;It is because whenever we are fetching data from the API we are setting it to the state &lt;strong&gt;&lt;em&gt;info&lt;/em&gt;&lt;/strong&gt; using &lt;strong&gt;&lt;em&gt;setInfo&lt;/em&gt;&lt;/strong&gt; callback and we know in React &lt;strong&gt;when a state is changed the component automatically re-renders causing the fetch request to fetch data again and set data to the state again and due to which the component gets rendered again and that is why the console log is running on infinite loop.&lt;/strong&gt; and this situation is also termed as sideEffect where we do something outside the scope of React.&lt;/p&gt;

&lt;p&gt;So you might think that we can avoid using state to store data to counter this problem but it would not be a good practice because state is a powerful feature that let’s you change the exiting data , share it to other child components via props. So that meant we needed something else to counter this problem. That is where &lt;strong&gt;useEffect hook came as savior.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  useEffect hook
&lt;/h2&gt;

&lt;p&gt;The useEffect hook helps us to perform side efffects in our components like fetching data, directly updating DOM etc.&lt;br&gt;
useEffect hook takes &lt;strong&gt;two arguments&lt;/strong&gt;: - &lt;em&gt;a callback function, dependency array&lt;/em&gt;.&lt;br&gt;
&lt;code&gt;useEffect(&amp;lt;function&amp;gt;, &amp;lt;dependency&amp;gt;)&lt;/code&gt;&lt;br&gt;
Although the second argument is optional and we will learn more about it further in the article.&lt;/p&gt;
&lt;h2&gt;
  
  
  Fetching Data using useEffect hook
&lt;/h2&gt;

&lt;p&gt;The fetch request inside useEffect will look 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;useEffect(() =&amp;gt; {
  fetch("https://jsonplaceholder.typicode.com/todos/1")
       .then(res =&amp;gt; res.json())
       .then(data =&amp;gt; setState(data))
}, [])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The useEffect hooks syntax looks pretty straight forward with fetch request wrapped inside the hook and the other argument can have three possible inputs, nothing, empty array and array containing state, props or both.&lt;/p&gt;

&lt;p&gt;The useEffect hook always run the callback function that is inside of it after the component has been rendered and here fetch request gets initiated after the component is rendered and the data is fetched and set to the info state and after that the question is whether the useEffect needs to be run again after once it has been executed which depends on the dependency array as follow: -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No dependency array&lt;/strong&gt; - useEffect runs the callback function everytime after the component it is in gets rendered. 
In simple words callback function is dependent on &lt;strong&gt;everything&lt;/strong&gt; (state, props of that component).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   useEffect(() =&amp;gt; {
     fetch("https://jsonplaceholder.typicode.com/todos/1")
       .then(res =&amp;gt; res.json())
       .then(data =&amp;gt; setState(data))
   })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Empty dependency array&lt;/strong&gt; ([]) - useEffect runs the callback function only one time after the component gets rendered first time.
In simple words callback function is dependent on &lt;strong&gt;nothing.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;useEffect(() =&amp;gt; {
  fetch("https://jsonplaceholder.typicode.com/todos/1")
       .then(res =&amp;gt; res.json())
       .then(data =&amp;gt; setState(data))
}, [])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Filled Dependency array&lt;/strong&gt; ([state, props]) - useEffect runs the callback function everytime the state/props that is inside the dependecy array updates.
In simple words callback function is dependent on &lt;strong&gt;particular states and props.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;useEffect(() =&amp;gt; {
  fetch("https://jsonplaceholder.typicode.com/todos/1")
       .then(res =&amp;gt; res.json())
       .then(data =&amp;gt; setState(data))
}, [state, props])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;So now we have an understanding of useEffect we have to choose what we should add as dependency array input to counter the problem we were facing.&lt;/p&gt;

&lt;p&gt;The problem was, the component was getting rendered again and again causing infinite loop.&lt;/p&gt;

&lt;p&gt;Say if we used useEffect with no dependency array, this wouldn't solve our problem because still when the useEffect would run the state will be updated and again which will result in infinite loop as the component will render again and causing state to be updated again.&lt;/p&gt;

&lt;p&gt;So the answer to it will be using empty dependency array as we need to fetch data once the component has been rendered.&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://codesandbox.io/embed/usehook-empty-da-ux4qw9"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Yes this was the solution to our problem that we countered previously as you can see the console now there is no infinite loop.&lt;/p&gt;

&lt;p&gt;Hmm... What about the third input of dependency array the filled one, this can be used when you need to fetch data again once a particular state or prop changes.&lt;/p&gt;

&lt;p&gt;I hope you like the article. Do let me know in comments if you were unable to understand something or if you liked the article.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>react</category>
    </item>
    <item>
      <title>Health issues faced by developers and their remedies</title>
      <dc:creator>Aditya Saini</dc:creator>
      <pubDate>Thu, 02 Mar 2023 04:48:40 +0000</pubDate>
      <link>https://dev.to/adityasaini3/health-issues-faced-by-developers-and-their-remedies-45l1</link>
      <guid>https://dev.to/adityasaini3/health-issues-faced-by-developers-and-their-remedies-45l1</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Health is wealth&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You would have countered this quote many a times in your life but as we grow up and start working we forget the message of this quote.&lt;/p&gt;

&lt;p&gt;Same was my story, Before I graduated from High School I was a sports enthusiast, who played a lot and my fitness at that time was really great but now after about 6-7 months into web development. I have seen a great downfall in my fitness which I feel bad about, I have gained a lot of belly fat and now my body is turning from an athletic body to an obese body. &lt;/p&gt;

&lt;p&gt;This was the time when I started realised that how much effect programming can have on, not only our physical fitness but also mental health and I thought of talking about these problems faced by me and others in their development career and provide some remedies that I am also following. &lt;/p&gt;

&lt;p&gt;Let's first have a look at what kind of health problems a developer faces while working.&lt;/p&gt;

&lt;h2&gt;
  
  
  Health Problems faced by Developers
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Excessive Weight Gain
&lt;/h3&gt;

&lt;p&gt;The desk job and work from home or the ease to learn online while staying at home are good for our comfort but has a bad impact on our weight and results in excessive weight gain. This usually happens when we are eating unhealthy food and such food requires a lot more time to digest and we as developers work most of the times sitting on chair with hands on the keyboard resulting in slower digestion of food and ultimately weight gain. These results aren't over night but can be observed after 2-3 months. &lt;/p&gt;

&lt;h3&gt;
  
  
  Pain in Neck, Back and shoulders
&lt;/h3&gt;

&lt;p&gt;While working developers sit for long hours and we all know that no one can sit for a very long time maintaining a good posture and this is also true for developers which results in neck, back and shoulders pain as we are constantly looking at screen and there is not much movement of neck, back and shoulders. These small pains daily can also lead to some serious health issues like ...&lt;/p&gt;

&lt;h3&gt;
  
  
  Poor Vision
&lt;/h3&gt;

&lt;p&gt;The most obvious health issue that everyone points out as being a developer which is a result of long screen time is weakening eye sight as we developers are not only creators, creating things for others but we also are consumers, learning and using about those products which increases our screen time even more than the general public.&lt;/p&gt;

&lt;h3&gt;
  
  
  Fatigue and Stress
&lt;/h3&gt;

&lt;p&gt;Sitting for longer duration results in tiredness. Most developers also get stressed as we constantly keep on finding solutions to our problems aka bugs even while we are doing something else in our daily routine. This also affects our sleeping cycle resulting in stress.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other Mental Health Problems
&lt;/h3&gt;

&lt;p&gt;Developers also face many other mental health problems like depression and anxiety. With new technologies coming everyday, developers face dilemma that they might fall behind others which results in anxiety and depression.&lt;/p&gt;

&lt;p&gt;Now these are some Health problems that most of the developers face in their day to day life but how can we counter these problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remedies to these Problems
&lt;/h2&gt;

&lt;p&gt;Most of the remedies listed below require a mere 30-40 minutes of your day and some people might argue that they are busy a lot and don't have time for these things but as I started the article I shared the quote "Health is Wealth" and I believe if you cannot manage few minutes for your Health then you will be missing a lot of benefits in the long run.&lt;/p&gt;

&lt;h3&gt;
  
  
  Exercising
&lt;/h3&gt;

&lt;p&gt;There is nothing better than doing workout, if you are having any kind of health problems. Doing an intensely focused bodyweight workout at home has many benefits like increased productivity, less tiredness, good body posture, reduced stress and many more. I am recommending some exercises that you can do and remember to do proper stretching before and after doing workout.&lt;br&gt;
&lt;em&gt;If you have any kind of severe fractures or any other kind of serious health problem. Kindly consult your doctor prior going for any kind of workout exercises.&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Army Push Ups - &lt;a href="https://www.youtube.com/watch?v=ihvdd0rPTiU" rel="noopener noreferrer"&gt;Link to video&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Sit Ups - &lt;a href="https://www.youtube.com/watch?v=CMKRgt4sxKc" rel="noopener noreferrer"&gt;Link to video&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Squats - &lt;a href="https://www.youtube.com/watch?v=YaXPRqUwItQ" rel="noopener noreferrer"&gt;Link to video&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Plank - &lt;a href="https://www.youtube.com/watch?v=pvIjsG5Svck" rel="noopener noreferrer"&gt;Link to video&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are some of the exercises that mostly will cure your problems. Although you can find many other exercises on youtube and apps like Home Workout.&lt;/p&gt;

&lt;h3&gt;
  
  
  Meditation
&lt;/h3&gt;

&lt;p&gt;Focusing on your breath while keeping your eyes closed in sitting position helps you attain a lot of focus, reduces your stress levels. It also has a great impact on your digestion. If you always get panic or you always have some kind of thoughts going on in your head then you should definitely practise meditation to calm your soul and body.&lt;/p&gt;

&lt;h3&gt;
  
  
  Running or Jogging
&lt;/h3&gt;

&lt;p&gt;People who work from home and other learners who are learning online to become developers spend a lot of time at home, making them sit at  a single place and ultimately resulting in lack of creativity, fatigue and stress. A quick jog or run across a park in the morning or evening can calm your thoughts and increase your blood circulation across the body which lowers your stress levels and also increases your creativity.&lt;/p&gt;

&lt;h3&gt;
  
  
  Yoga
&lt;/h3&gt;

&lt;p&gt;Yoga as exercise consists of various asanas (postures) which can help you gain mental and physical well being. Yoga helps to increase your flexibility, cure for all kind of muscle pains, increase stamina and lesser fatigue and stress. There are a lot of asanas (postures) in yoga and suggesting a few best fit for everyone is difficult as some asanas (postures) are difficult to be perform and some are easier. So you should try exploring different asanas (postures) and get best fit for you and your problems.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;We should not risk our health for anything because if we are well we can achieve anything in life and without it nothing is achievable. These were some of the problems that I myself had faced in my development career till now and I have suggested a few remedies to them. If you have any other problems and cures. You should share them below. &lt;/p&gt;

</description>
      <category>css</category>
      <category>comedy</category>
      <category>sitcom</category>
      <category>parody</category>
    </item>
    <item>
      <title>A short guide to web accessibility</title>
      <dc:creator>Aditya Saini</dc:creator>
      <pubDate>Tue, 14 Feb 2023 11:20:26 +0000</pubDate>
      <link>https://dev.to/adityasaini3/a-short-guide-to-web-accessibility-k12</link>
      <guid>https://dev.to/adityasaini3/a-short-guide-to-web-accessibility-k12</guid>
      <description>&lt;h2&gt;
  
  
  What is meant by web accessibility?
&lt;/h2&gt;

&lt;p&gt;Web accessibility refers to the practice of making websites and web applications accessible by individuals with disabilities. This includes ensuring that users with any kind of visual, auditory, motor, and cognitive impairments can perceive, understand, navigate, and interact with the web content and controls smoothly and efficiently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why web needs to be accessible for everyone?
&lt;/h2&gt;

&lt;p&gt;Web needs to accessible for everyone not only because it shows our kind nature towards people with disabilities but also because we are bound to do it by the law as said by &lt;a href="https://www.un.org/development/desa/disabilities/convention-on-the-rights-of-persons-with-disabilities.html" rel="noopener noreferrer"&gt;the United Nations Convention on the Rights of Persons with Disabilities&lt;/a&gt;, the access to information and communications technologies, including the web, is defined as a basic human right and would you ever dare to violate someone's right? &lt;/p&gt;

&lt;p&gt;Anddddd... There is also a huge impact of web accessibility on your website's business.&lt;/p&gt;

&lt;h2&gt;
  
  
  Impact of web accessibility on businesses
&lt;/h2&gt;

&lt;p&gt;The influence web accessibility can have on your business can just be huge and can be valued using the stat that about &lt;a href="https://apps.who.int/iris/handle/10665/44575" rel="noopener noreferrer"&gt;15-20% of the world's population has some sort of disability&lt;/a&gt; and they have about &lt;strong&gt;$13 trillion&lt;/strong&gt; as annual disposable income but still &lt;strong&gt;96.8%&lt;/strong&gt; of home pages of 1 million top websites have &lt;a href="https://webaim.org/standards/wcag/checklist" rel="noopener noreferrer"&gt;WCAG 2&lt;/a&gt; failures as of &lt;a href="https://webaim.org/projects/million/#:~:text=96.8%25%20of%20home%20pages%20had%20detected%20WCAG%202%20failures!" rel="noopener noreferrer"&gt;WebAIM's 2022 data&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The facts about these potential business benefits of web accessibility can be a article of its own. &lt;br&gt;
So why you will ignore this opportunity whether you are a developer, businessman or content creator and owns a website, because the demand is high but the supply is limited.&lt;/p&gt;
&lt;h2&gt;
  
  
  How people with disabilities surf the internet?
&lt;/h2&gt;

&lt;p&gt;When I myself came to know about the accessibility topic while learning to code, the first thought I got was how people with disabilities are surfing the internet and a quick google search made me know that people with different disabilities use different techniques to use internet. Here I list some: -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Blind people: - Browse the web using &lt;a href="https://en.wikipedia.org/wiki/Screen_reader" rel="noopener noreferrer"&gt;screen readers&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;People with low vision: - Use extra large monitors and also increase default font size.&lt;/li&gt;
&lt;li&gt;Deaf people: - Use captions to understand any audio content.&lt;/li&gt;
&lt;li&gt;People with motor skills deficiency: - Use things like &lt;a href="https://www.orin.com/access/headmouse/#:~:text=HeadMouse%20replaces%20the,by%20head%20movement." rel="noopener noreferrer"&gt;head-mouse&lt;/a&gt;, &lt;a href="https://volksswitch.org/index.php/volks-devices/customizable-head-pointer/#:~:text=A%20head%20pointer%20is%20used%20by%20individuals%20with%20limited%20hand%20or%20arm%20control%20to%20interact%20with%20a%20physical%20keyboard%20or%20a%20capacitive%2C%20computer/tablet%20touchscreen.%C2%A0%20It%20can%20also%20be%20used%20to%20manipulate%20objects%20like%20turning%20pages%20in%20a%20book.%C2%A0" rel="noopener noreferrer"&gt;head-pointer&lt;/a&gt; or &lt;a href="https://mouse4all.com/en/articles/mouth-sticks-for-quadriplegics/#:~:text=A%20mouth%20stick%20is%20an%20assistive%20device%20that%20is%20designed%20for%20people%20with%20uncontrolled%20hand%20movement%20or%20tremors%20due%20to%20cerebral%20palsy%20and%20for%20those%20unable%20to%20move%20their%20hands%20because%20of%20quadriplegia.%20With%20it%20they%20can%20perform%20activities%20like%20typing%2C%20pressing%20buttons%2C%20turning%20pages%20and%20even%20drawing." rel="noopener noreferrer"&gt;mouth-stick&lt;/a&gt;, &lt;a href="https://www.clickworker.com/customer-blog/speech-recognition-systems-for-disabled-persons/" rel="noopener noreferrer"&gt;voice-recognition software&lt;/a&gt;, an &lt;a href="https://occk.com/2018/03/05/eye-gaze-technology/#:~:text=It%20is%20an%20electronic%20device,from%20the%20cornea%20and%20retina." rel="noopener noreferrer"&gt;eye-gaze system&lt;/a&gt; or other &lt;a href="https://www.w3.org/WAI/people-use-web/tools-techniques/" rel="noopener noreferrer"&gt;assistive technologies&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  How to make your website and content accessible?
&lt;/h2&gt;

&lt;p&gt;Now you know that accessibility cannot only help disabled people surf the web but also it can be beneficial for your business also, now the question arises what things we should keep in mind while making content so that it is accessible for everyone.&lt;br&gt;
&lt;em&gt;Web accessibility techniques depends on the content you are having on your website and I am providing the easy checks that you can keep in your mind while employing accessibility. For further information about accessibility. Go to &lt;a href="https://www.w3.org/" rel="noopener noreferrer"&gt;W3C&lt;/a&gt;&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Here are the practises that you can apply: -&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Descriptive Page Title: -&lt;/strong&gt; Page titles are the first thing that a screen reader reads and people using screen readers get an idea about what is the content inside this page and what tab they are on. So you should try making your Page titles descriptive and unique than other content on your website.&lt;br&gt;
The title elements goes inside the head tag as shown below: -&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;A guide to web accessibility | adityasaini3 &amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Alt text: -&lt;/strong&gt; Image alternative text are used to convey the purpose of any image out the screen reader users which are mostly blind people, that's why you should use alt attributes in your img tag to make to make images accessible to screen reader users.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="myPic.jpg" alt="here goes the alternative text" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;br&gt;
If you are using any image to perform an action you should provide the alternative text according to the action not the image,for example:- Say you have an image of a home which you are using to navigate to home page instead of naming alt as "home" you should name its action which will be "navigate to homepage".&lt;/p&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Headings: -&lt;/strong&gt; Heading provide a structure to your website's content and makes it obvious for any disabled person where something end and a new thing starts that is why we should employ using different number of heading tags for different level of heading. As we know heading tag ranges from h1 to h6.&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;&lt;p&gt;&lt;strong&gt;Contrast ratio: -&lt;/strong&gt; The color of the text and background can influence people's difficulty to comprehend the text. Some people are unable to read dark text on light background and vice versa. So to counter this most people use contrast ratio of colours so that text get's accessible for everyone. The contrast ratio used for normal-size text is 4.5:1.&lt;/p&gt;&lt;/li&gt;

&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The disabled people also have their right to access the web and we should ensure that thing in mind while making any website. The market of disabled people is also huge which can help you boost your business as most people are just ignoring them and if you would make your website accessible to everyone, you will definitely enjoy the advantage from others. &lt;br&gt;
As this was a short guide I will not be going in much more details and For more on accessibility you can visit &lt;a href="https://www.w3.org/" rel="noopener noreferrer"&gt;W3C&lt;/a&gt;. &lt;/p&gt;

</description>
      <category>angular</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
