Hello HashCode, I have a problem here, and I do not know how to cure it. I have a head.php file in which the function.php file is connected, so I had a javascript for data verification in this file, but then I decided to delete it. And after deleting this code, for some reason I have all the text on the entire site aligned with the center, although in the script, there was only 1 regular expression to check the entered numbers, and after deleting everything again in the center, moreover, when I deleted the entire check function and left only

<script></script> 

Without anything, everything is fine, but it is worth removing these empty tags, again in the center.

Here is an example of how W3 sees it: the very first error



    1 answer 1

    Incorrect tag order:

     <script></script><!DOCTYPE html><!DOCT 

    The script should be either in the head or in the body, but not before the doctype.
    Change the place of insertion of the script, and even better, move it to a separate js file.

    • Well, so I’m trying to remove this tag altogether (I don’t need it), and when deleting everything is centered ... - Angus123
    • It means most likely you initially did markup of your site relying on the fact that the browser stumbles upon an error at the very beginning of the page and parses it after that as one Cthulhu is known, and not as expected. Modify the styles so that everything is displayed as you want. - ReinRaus
    • Who are Cthulhu? - Angus123