Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Coding for Beginners: CSS Basics #49— Accessibility for Background Images?

  • Designers Learn Code
  • 2023-04-05
  • 33
Coding for Beginners: CSS Basics #49— Accessibility for Background Images?
HTMLCSScodingwebaccessibilitybackgroundaccessibility mattersalternative textalt textdecorative imageslearn to codeweb developmentalt text for imagesaccessibility and inclusion for allcoding lifeweb designdesigners learn codedaily code snippethtml elementstagscoding tutorialhtml tutorialcss tutorialhtml tutorial for beginnerscss tutorial for beginnersprogramming for beginnershtml css full courseimagebackground imagesimages
  • ok logo

Скачать Coding for Beginners: CSS Basics #49— Accessibility for Background Images? бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Coding for Beginners: CSS Basics #49— Accessibility for Background Images? или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Coding for Beginners: CSS Basics #49— Accessibility for Background Images? бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Coding for Beginners: CSS Basics #49— Accessibility for Background Images?

Interested in Web Access Pro to analyze and fix Accessibility Errors on your site? Get your 14 Day Free Trial: https://join.designerslearncode.com/w...

The Daily Code Snippet is part of our "Coding for Beginners" video series for designers to learn the basics of HTML and CSS coding. We teach a single, easy to understand concept in each video so that you can learn to code even if you have a busy schedule. Subscribe here:    / @designerslearncode  

------

In general, content is not meant to be conveyed with background images. Their use is for decorative purposes. This is why there is no attribute to add alternative text to a background image. Assistive technology will not announce the presence of background image nor convey content. So it is best practice to avoid including any information that would be critical to understanding the webpage's intent.

So if an image has important content, it should be rendered as a traditional image (img) and not a background-image.

However, there is a workaround for the instances where you may still want to add alternative text for a background-image anyway, maybe as a courtesy as the image is not essential towards discerning the purpose of the page.

The method involves add a role attribute and aria-label attributes. WAI-ARIA is a suite of Accessible Rich Internet Applications developed by the Web Accessibility Initiative to make web content more accessible. The role attribute set to "img" lets the browser know we are dealing with an image and the aria-label set to the alternative text desired will tell the browser the content of the image.

It is best to set these attributes on an empty span element within a div element because if there are other elements in the div, they may be obscured by the aria-label. Watch the video to see the html.

#HTML #CSS #coding #web #accessibility #background #accessibilitymatters #alternativetext #alttext #decorativeimages #learntocode #webdevelopment #alttextforimages #accessibilityandinclusionforall #codinglife #webdesign #designerslearncode #dailycodesnippet #htmlelements #tags #codingtutorial #htmltutorial #csstutorial #htmltutorialforbeginners #csstutorialforbeginners #programmingforbeginners #htmlcssfullcourse #image #backgroundimages #images

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]