﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36553	Improve the semantic structure of admin widgets.	Antoliny	Antoliny	"Some of the widgets currently in the admin use `<p>` tags as their wrapper elements.

- [https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/widgets/date.html Date Field]
- [https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/widgets/time.html Time Field]
- [https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/widgets/split_datetime.html DateTime Field]
- [https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/widgets/url.html URL Field]

The current structure uses `<p>` tags, and for fields that can span multiple lines, such as `DateTime` and `URL` fields, `<br>` tags are used to provide visual line breaks.
Since `<p>` tags represent paragraphs, they are not suitable as wrappers for elements containing inputs, as is the case here. I believe this tag should be changed to a `<div>`.
Additionally, `<br>` tags are used for visual line breaks, but it would be more appropriate to remove them and implement the spacing using CSS.
"	Cleanup/optimization	assigned	contrib.admin	5.2	Normal		accessibility	Antoliny	Accepted	1	0	0	1	0	0
