You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current read template puts the fields and field values into a single DIV and separates them by <br> tags. The code is below for reference.
I have two suggestions for improvement. First, wrap each field label + value in a block element (div, p, or li). That would make them a lot easier to style and more friendly to screen readers and content scrapers.
Second, add a class or id to the containing div to make it CSS-helpful.
<div>
{# we have a form, just to make it easy to go through the data and display it #}
{% for field in form %}
<br/>
{{ field.label_tag }} {{ field.value }}
{% endfor %}
</div>
The text was updated successfully, but these errors were encountered:
The current read template puts the fields and field values into a single DIV and separates them by
<br>
tags. The code is below for reference.I have two suggestions for improvement. First, wrap each field label + value in a block element (
div
,p
, orli
). That would make them a lot easier to style and more friendly to screen readers and content scrapers.Second, add a class or id to the containing
div
to make it CSS-helpful.The text was updated successfully, but these errors were encountered: