At first, as a person from the 17th century, I tried stupidly to remove these types in the template code, but this process did not give a result and the validator continued to show warnings. The solution is simpler than it seems at first:
In the folder with the template, find JFactory::getDocument(); and below you need to call the setHtml5 method with the true parameter:
$doc = JFactory::getDocument(); $doc->setHtml5(true);