mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Added alt attribute to img tags in docs.
This is a good practice for accessibility. Thanks Jessica McKellar for the report.
This commit is contained in:
@@ -380,10 +380,10 @@ full URL for the given relative path, e.g.:
|
||||
.. code-block:: html+django
|
||||
|
||||
{% load static from staticfiles %}
|
||||
<img src="{% static "css/base.css" %}" />
|
||||
<img src="{% static "images/hi.jpg" %}" alt="Hi!" />
|
||||
|
||||
The previous example is equal to calling the ``url`` method of an instance of
|
||||
:setting:`STATICFILES_STORAGE` with ``"css/base.css"``. This is especially
|
||||
:setting:`STATICFILES_STORAGE` with ``"images/hi.jpg"``. This is especially
|
||||
useful when using a non-local storage backend to deploy files as documented
|
||||
in :ref:`staticfiles-from-cdn`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user