Which element should be used to display verification messages (errors) to the user? Which one is more semantic in HTML5?
You might consider adding an ARIA role for "alert" or "status." I don’t think that semantically any of the HTML elements is better than<div class="error">
<div class="error">
I would use javascript to display a javascript error window containing erro (s).
EDIT: For server-side validation, we use <div>one that populates after an ajax call.
<div>
div error notice, .
div
error
notice
Source: https://habr.com/ru/post/1767541/More articles:Use field name variable in jQuery validation rules - javascriptConfusion with floating point numbers - cXSL output method text, including spaces in xsl - methodsGSON does not fill out a list of objects - javaHow to add an icon file to the cab file of a mobile application? - c #Как определить, какая строка в пакетном файле имеет синтаксическую ошибку? - windowshow to get a field from a table for a combination of two fields - sapBest way to replace file on server - phpjQuery Live Get Text Div - jqueryapache portable binary for windows? - javaAll Articles