# Images, contrast and logical flow

The content discussed in this chapter includes Images, color contrast, and logical flow.&#x20;

{% tabs %}
{% tab title="Images" %}
Alt texts (alternative texts) serve as textual descriptions for images, providing context and meaning for screen reader users or when images fail to load. It bridges the gap between visual content and users who might not be able to see it.

Images must have text alternatives that describe the information or function represented by them. This is especially important for people who are blind and for people who have difficulty in perceiving visual content.

The text should explain what is in the image so they can enjoy and experience the images as well.

**Example 1:** An example of a good ALT

![Daytime landmark photograph of trees near a rocky mountain under clear blue skies.](https://lh6.googleusercontent.com/XLO9EGWKIbMdRQsp1nWpqgTYwbiYlws9ENKJlCKLH3IrFfCTjxhX_5e_uxzPzX-GtefGmDuPqHMIo1uzHKOgBUE41BQwb1MvCQBgp8i8ivjA4Hqw1X850m5GiJ0TiBqJNGGQ9sJYGnq-qbQA9hi6owU)

Daytime landmark photograph of trees near a rocky mountain under clear blue skies.

**Example 2**: Example of a bad alt text:

![An image of a rocky mountain.](https://1002571793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7vhttY58BZbk962dpqY7%2Fuploads%2Fwsr2gOttp1i20eS4Z4VL%2Fimage.png?alt=media\&token=83ba9130-eaa0-491e-a683-7de4e9fb9596)

An image of a rocky mountain.

\
Fix alt text issues with our easy-to-follow step-by-step guide.

{% embed url="<https://www.youtube.com/watch?rel=0&v=CvgnUw5mxqI?vq=hd1080>" %}
Adding an alternative text with Flowy
{% endembed %}

1. Using the 'Images' tool, check if your image  has an alternative (alt) text. Images missing alt text   will have a empty content.
2. Press control, then right-click on the image  missing an alternative text.
3. Select "Add alt text" from the Flowy context menu and type the description of your selected image inside the value placeholder. Ensure that the image provides context.
4. Click on 'Add to Editor'. From the 'Test on Screen' drop-down, select 'Quick Fix'. Click on 'Quick Fix', and you're done. Your image now has an alt text.
5. Repeat the above process for the rest of the of the images on website missing alternative texts.<br>
   {% endtab %}

{% tab title="Color Contrast" %}
To ensure readability for people with low vision, the WCAG guidelines has several contrast rations for content and graphical user interfaces.

The guideline proposes a ratio of 4.5 for normal text, 3.1 for larger texts such as heading content, and 3.1 for graphical user interfaces such as border lines, focus indicators, or canvases.&#x20;

Better contrast improves user experience for everyone, and compliance and increased sales for a business.

{% embed url="<https://www.youtube.com/watch?rel=0&v=JBW5xzpVQjY?vq=hd1080>" %}
Testing for color contrast ratio with Flowy
{% endembed %}

Example of a good color contrast:

Image showing good color contrast coming soon

Image showing bad color contrast coming soon

Fix your first color contrast issue with our easy-to-follow [step-by-step](https://docs.equally.ai/flowy/flowy-tools/contrast-checker) guide.

{% embed url="<https://youtu.be/8vvJp4rDCwk?rel=0>" %}

<br>
{% endtab %}

{% tab title="Logical Flow" %}
{% embed url="<https://youtu.be/SL8pdzyxjHQ?rel=0&vq=hd1080>" %}
Setting the tabindex attribute on an element
{% endembed %}

Logical flow is important when making a website accessible. This is because it is the natural order in which a user would expect to navigate through or interact with elements on a web page.

Tabindex of 0 should be given to elements that are essential for interacting with the web page such as

* Links (\<a>)
* Form Inputs like text fields, checkboxes, radio buttons, and Select Drop-downs.
* Buttons (\<buttons>).

On the other hand, Tabindex of -1 is useful for elements that don't need to be accessed directly by tabbing, or when you want to remove something from the default navigation flow, like:

1. Decorative Elements: Think of pretty but useless knick-knacks. They’re there for show, so no need to Tab over to them like, "Hey, check out this shiny thing!

{% embed url="<https://youtu.be/R2l9dJHjOGY?rel=0>" %}

1. Hidden Content: Imagine a magic bookshelf that reveals a hidden room only when you pull a certain book. It’s not something you casually stroll into.
2. Click Actions (like Image Carousels): Picture a spinning carousel of photos. It's like saying, “Click me if you’re using a mouse, but if you’re keyboarding, don't worry about it!
3. Duplicate Links or Buttons: This is like having two doors next to each other that lead to the same place. Mouse users might like options, but keyboard users just need one.
4. &#x20;Modal Dialogues: Imagine a pop-up window that's like, "Surprise! Now pay attention to me!" But when it's not open, it’s invisible to the Tab key, like it’s sneaking around in.

Fix your first logical flow issues with our easy-to-follow [step-by-step guide](https://docs.equally.ai/flowy/flowy-tools/logical-flow#a-step-by-step-guide)

{% embed url="<https://youtu.be/7JekhUeyFFA?rel=0>" %}
{% endtab %}
{% endtabs %}
