diff options
| author | Johanan-Ayadata <johanan@workwithaya.com> | 2024-10-22 22:20:55 +0000 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-30 14:02:30 +0100 |
| commit | 97a6a678c406b0049bd17bcd34f1d71d96141994 (patch) | |
| tree | 350eb84507aca04d720e53e3ca4d43970e0a6a4c /docs | |
| parent | a8f8b5a477bbf6a4fdf3006987117b90634ffba7 (diff) | |
Added missing lang attributes to html elements in docs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/overview.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/flatpages.txt | 2 | ||||
| -rw-r--r-- | docs/topics/http/views.txt | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index 0c41446d01..af87a01bb4 100644 --- a/docs/intro/overview.txt +++ b/docs/intro/overview.txt @@ -309,7 +309,7 @@ Here's what the "base.html" template, including the use of :doc:`static files :caption: ``templates/base.html`` {% load static %} - <html> + <html lang="en"> <head> <title>{% block title %}{% endblock %}</title> </head> diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt index c82fb5de85..01e5553ff3 100644 --- a/docs/ref/contrib/flatpages.txt +++ b/docs/ref/contrib/flatpages.txt @@ -256,7 +256,7 @@ Here's a sample :file:`flatpages/default.html` template: .. code-block:: html+django <!DOCTYPE html> - <html> + <html lang="en"> <head> <title>{{ flatpage.title }}</title> </head> diff --git a/docs/topics/http/views.txt b/docs/topics/http/views.txt index 2985bfb72b..feb4eaa4ec 100644 --- a/docs/topics/http/views.txt +++ b/docs/topics/http/views.txt @@ -23,7 +23,7 @@ Here's a view that returns the current date and time, as an HTML document:: def current_datetime(request): now = datetime.datetime.now() - html = "<html><body>It is now %s.</body></html>" % now + html = '<html lang="en"><body>It is now %s.</body></html>' % now return HttpResponse(html) Let's step through this code one line at a time: @@ -225,7 +225,7 @@ Here's an example of an async view:: async def current_datetime(request): now = datetime.datetime.now() - html = "<html><body>It is now %s.</body></html>" % now + html = '<html lang="en"><body>It is now %s.</body></html>' % now return HttpResponse(html) You can read more about Django's async support, and how to best use async |
